private void EnsureInvokeCommand() { if (_InvokeCommand == null) { _InvokeCommand = ViewModelFactory.CreateViewModel<SimpleCommandViewModel.Factory>().Invoke( DataContext, this, ValueInputTaskViewModelResources.InvokeCommand_Name, ValueInputTaskViewModelResources.InvokeCommand_Tooltip, Invoke, null, null); _InvokeCommand.IsDefault = true; } }
private void EnsureCancelCommand() { if (_CancelCommand == null) { _CancelCommand = ViewModelFactory.CreateViewModel<SimpleCommandViewModel.Factory>().Invoke( DataContext, this, ValueInputTaskViewModelResources.CancelCommand_Name, ValueInputTaskViewModelResources.CancelCommand_Tooltip, Cancel, null, null); _CancelCommand.IsCancel = true; } }