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)); }
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}"); }
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)); }