示例#1
0
 public DefaultRecorder(INotifyStateChanged objectItem, string taskGroupName = null)
     : base(objectItem, taskGroupName)
 {
     this.Initialize();
 }
示例#2
0
 public void Register(INotifyStateChanged listener)
 {
     listeners.Add(listener);
     listener.StateChanged += (sender, e) => Update();
     Update();
 }
示例#3
0
 protected Command(CommandProvider provider, INotifyStateChanged notify)
 {
     Provider           = provider;
     NotifyStateChanged = notify;
 }
示例#4
0
 public RecorderCreatedEventArgs(INotifyStateChanged item, UndoTask task)
 {
     this.Item = item;
     this.Task = task;
 }
示例#5
0
 public BaseRecorder(INotifyStateChanged objectItem, string taskGroupName = null)
 {
     this.IsAutoRecord  = true;
     this.objectItem    = objectItem;
     this.TaskGroupName = taskGroupName;
 }
示例#6
0
 public virtual void Dispose()
 {
     this.objectItem = (INotifyStateChanged)null;
     GC.SuppressFinalize((object)this);
 }