コード例 #1
0
 // Two constructors
 public MoreDelegateCommand(Action <object> execute, Func <object, bool> canExecute,
                            MoreDelegateCommand group = null)
 {
     this.execute    = execute;
     this.canExecute = canExecute;
     this.AddToGroup(group);
 }
コード例 #2
0
 private void SetGroup(MoreDelegateCommand group)
 {
     this.Group = group;
     if (this.Group != null)
     {
         this.Group.AddToGroup(this);
     }
 }
コード例 #3
0
 public MoreDelegateCommand(Action <object> execute, MoreDelegateCommand group = null)
 {
     this.execute    = execute;
     this.canExecute = this.AlwaysCanExecute;
     this.AddToGroup(group);
 }