示例#1
0
 private UICommand(CommandExecuteDelegate actionExecute, CommandCanExecuteDelegate actionCanExecute = null,
     bool startInThread = false)
 {
     mActionExecute = actionExecute;
     mActionCanExecute = actionCanExecute;
     mStartInThread = startInThread;
 }
示例#2
0
 private UICommand
     (CommandExecuteDelegate actionExecute, CommandCanExecuteDelegate actionCanExecute = null,
     bool startInThread = false)
 {
     mActionExecute    = actionExecute;
     mActionCanExecute = actionCanExecute;
     mStartInThread    = startInThread;
 }
示例#3
0
 public static UICommand Regular(CommandExecuteDelegate actionExecute,
     CommandCanExecuteDelegate actionCanExecute = null)
 {
     return new UICommand(actionExecute, actionCanExecute, false);
 }
示例#4
0
 public TargetCommand(CommandDelegate <T> method, CommandCanExecuteDelegate <T> canExecute)
 {
     _method     = method;
     _canExecute = canExecute;
 }
示例#5
0
 public static UICommand Regular(CommandExecuteDelegate actionExecute,
                                 CommandCanExecuteDelegate actionCanExecute = null)
 {
     return(new UICommand(actionExecute, actionCanExecute, false));
 }