コード例 #1
0
 public PlainCommand(object model, MethodInfo execute, PropertyInfo?canExecute, CommandContainer container)
 {
     CommandContainer = container;
     _model           = model;
     _execute         = execute;
     _canExecutep     = canExecute;
     if (_canExecutep != null)
     {
         _functionName = _canExecutep.Name;
     }
     HookUpNotifiers();
 }
コード例 #2
0
 public PlainCommand(object model, MethodInfo execute, MethodInfo canExecuteM, CommandContainer container)
 {
     CommandContainer = container;
     _model           = model;
     _execute         = execute;
     _canExecuteM     = canExecuteM;
     if (_canExecuteM != null)
     {
         _functionName = canExecuteM.Name;
     }
     HookUpNotifiers();
 }
コード例 #3
0
 public BasicGameCommand(IBasicEnableProcess model, MethodInfo execute, PropertyInfo?canExecute, CommandContainer container)
 {
     CommandContainer = container;
     _model           = model;
     _execute         = execute;
     _canExecutep     = canExecute;
     if (_canExecutep != null)
     {
         _functionName = _canExecutep.Name;
     }
     HookUpNotifiers();
 }
コード例 #4
0
 public BasicGameCommand(IBasicEnableProcess model, MethodInfo execute, MethodInfo canExecuteM, CommandContainer container)
 {
     CommandContainer = container;
     _model           = model;
     _execute         = execute;
     _canExecuteM     = canExecuteM;
     if (_canExecuteM != null)
     {
         _functionName = canExecuteM.Name;
     }
     HookUpNotifiers();
 }
コード例 #5
0
 public LimitedGameCommand(IBasicEnableProcess model, MethodInfo execute, MethodInfo canExecuteM, CommandContainer container) : base(model, execute, canExecuteM, container)
 {
     BusyCategory = EnumCommandBusyCategory.Limited;
 }
コード例 #6
0
 } = "";                                        //the purpose of this is so it can search and get the proper command.
 public BoardCommand(object model, MethodInfo execute, CommandContainer container, string name) : base(model, execute, canExecuteM: null !, container)
コード例 #7
0
 protected override void AddCommand()
 {
     CommandContainer.AddOpen(this);
 }
コード例 #8
0
 public OpenCommand(object model, MethodInfo execute, PropertyInfo?canExecute, CommandContainer container) : base(model, execute, canExecute, container)
 {
 }
コード例 #9
0
 public OpenCommand(object model, MethodInfo execute, MethodInfo canExecuteM, CommandContainer container) : base(model, execute, canExecuteM, container)
 {
 }