2021-07-23 09:42:22 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2023-01-25 15:58:05 +08:00
|
|
|
|
namespace AIStudio.Wpf.DiagramDesigner.Additionals.Commands
|
2021-07-23 09:42:22 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Interface that defines if the object instance is active
|
|
|
|
|
|
/// and notifies when the activity changes.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public interface IActiveAware
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets a value indicating whether the object is active.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <value><see langword="true" /> if the object is active; otherwise <see langword="false" />.</value>
|
|
|
|
|
|
bool IsActive { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Notifies that the value for <see cref="IsActive"/> property has changed.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
event EventHandler IsActiveChanged;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|