Zetbox.Client.Presentables.ValueInputTaskViewModel.EnsureCancelCommand C# (CSharp) Method

EnsureCancelCommand() private method

private EnsureCancelCommand ( ) : void
return void
        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;
            }
        }