Catrobat.IDE.Core.ViewModels.Editor.Formula.ChangeVariableViewModel.SaveCommand_CanExecute C# (CSharp) Method

SaveCommand_CanExecute() private method

private SaveCommand_CanExecute ( ) : bool
return bool
        private bool SaveCommand_CanExecute()
        {
            return !string.IsNullOrEmpty(UserVariableName) &&
                   !VariableHelper.VariableNameExistsCheckSelf(CurrentProgram, SelectedSprite, UserVariable, UserVariableName);
        }