Пример #1
0
 private UICommand(CommandNoParamExecuteDelegate actionExecute,
     CommandNoParamCanExecuteDelegate actionCanExecute = null,
     bool startInThread = false)
 {
     mActionNoParamExecute = actionExecute;
     mActionNoParamCanExecute = actionCanExecute;
     mStartInThread = startInThread;
 }
Пример #2
0
 private UICommand
     (CommandNoParamExecuteDelegate actionExecute,
     CommandNoParamCanExecuteDelegate actionCanExecute = null,
     bool startInThread = false)
 {
     mActionNoParamExecute    = actionExecute;
     mActionNoParamCanExecute = actionCanExecute;
     mStartInThread           = startInThread;
 }
Пример #3
0
 public static UICommand Thread(CommandNoParamExecuteDelegate actionExecute,
     CommandNoParamCanExecuteDelegate actionCanExecute = null)
 {
     return new UICommand(actionExecute, actionCanExecute, true);
 }
Пример #4
0
 public static UICommand Regular(CommandNoParamExecuteDelegate actionExecute,
     CommandNoParamCanExecuteDelegate actionCanExecute = null)
 {
     return new UICommand(actionExecute, actionCanExecute, false);
 }
Пример #5
0
 public static UICommand Thread
     (CommandNoParamExecuteDelegate actionExecute,
     CommandNoParamCanExecuteDelegate actionCanExecute = null)
 {
     return(new UICommand(actionExecute, actionCanExecute, true));
 }
Пример #6
0
 public static UICommand Regular
     (CommandNoParamExecuteDelegate actionExecute,
     CommandNoParamCanExecuteDelegate actionCanExecute = null)
 {
     return(new UICommand(actionExecute, actionCanExecute, false));
 }