Пример #1
0
 private void InitCommand()
 {
     Open = new CommandBase(obj => {
         DictionaryOperation?.Invoke(this, new CommandArgs(obj, nameof(Open)));
     });
     ReName = new CommandBase(obj => { DictionaryOperation?.Invoke(this, new CommandArgs(obj, nameof(ReName))); });
     ReMove = new CommandBase(obj => { DictionaryOperation?.Invoke(this, new CommandArgs(obj, nameof(ReMove))); });
     Select = new CommandBase(obj => { DictionaryOperation?.Invoke(this, new CommandArgs(obj, nameof(Select))); });
 }
Пример #2
0
 private void NotifyDictionaryOperation(TKey key, TValue value, TDictionaryOperation operation)
 {
     DictionaryOperation?.Invoke(this, new DictionaryOperationEventArgs <TKey, TValue>(key, value, operation));
 }