Esempio n. 1
0
        private bool SpecializedEvaluateCanExecute(object parameter)
        {
            var activeSelection = SelectionProvider.ActiveSelection();

            if (!activeSelection.HasValue)
            {
                return(false);
            }
            return(_extractInterfaceRefactoring.CanExecute(_state, activeSelection.Value.QualifiedName));
        }
 private bool SpecialEvaluateCanExecute(object parameter)
 {
     return(_state.Status == ParserState.Ready &&
            parameter is CodeExplorerComponentViewModel node &&
            _refactoring.CanExecute(_state, node.QualifiedSelection.Value.QualifiedName));
 }