Example #1
0
 protected void AddCommand(INodeCommandWrapper command)
 {
     if (command == null)
     {
         throw new ArgumentNullException("command");
     }
     OnPropertyChanging(string.Format("{0}{1}", ObservableViewModel.HasCommandPrefix, command.Name));
     OnPropertyChanging(command.Name);
     commands.Add(command);
     OnPropertyChanged(command.Name);
     OnPropertyChanged(string.Format("{0}{1}", ObservableViewModel.HasCommandPrefix, command.Name));
 }
Example #2
0
 protected void AddCommand(INodeCommandWrapper command)
 {
     if (command == null)
     {
         throw new ArgumentNullException(nameof(command));
     }
     OnPropertyChanging($"{ObservableViewModel.HasCommandPrefix}{command.Name}");
     OnPropertyChanging(command.Name);
     commands.Add(command);
     OnPropertyChanged(command.Name);
     OnPropertyChanged($"{ObservableViewModel.HasCommandPrefix}{command.Name}");
 }
 public new void AddCommand(INodeCommandWrapper command)
 {
     base.AddCommand(command);
 }
 protected void AddCommand(INodeCommandWrapper command)
 {
     if (command == null) throw new ArgumentNullException(nameof(command));
     OnPropertyChanging($"{ObservableViewModel.HasCommandPrefix}{command.Name}");
     OnPropertyChanging(command.Name);
     commands.Add(command);
     OnPropertyChanged(command.Name);
     OnPropertyChanged($"{ObservableViewModel.HasCommandPrefix}{command.Name}");
 }
Example #5
0
 protected void AddCommand(INodeCommandWrapper command)
 {
     if (command == null) throw new ArgumentNullException("command");
     OnPropertyChanging(string.Format("{0}{1}", ObservableViewModel.HasCommandPrefix, command.Name));
     OnPropertyChanging(command.Name);
     commands.Add(command);
     OnPropertyChanged(command.Name);
     OnPropertyChanged(string.Format("{0}{1}", ObservableViewModel.HasCommandPrefix, command.Name));
 }
 public new void AddCommand(INodeCommandWrapper command)
 {
     base.AddCommand(command);
 }