private void RefreshCanExecute()
 {
     FindNextCommand.RaiseCanExecuteChanged();
     FindPreviousCommand.RaiseCanExecuteChanged();
     FindInDocumentCommand.RaiseCanExecuteChanged();
     HighlightAllCommand.RaiseCanExecuteChanged();
     ReplaceCommand.RaiseCanExecuteChanged();
     ReplaceAllCommand.RaiseCanExecuteChanged();
 }
Exemplo n.º 2
0
        public ImportRuleViewModel(ImportRuleInfo importRuleInfo)
        {
            ImportRuleInfo = importRuleInfo;

            WarningHeader = $"Rule '{importRuleInfo.NewRegexRule.RuleName}' Already Exists";
            WarningBody   = "Do you want to update the existing rule, rename it, or skip this import?";

            ReplaceAllCommand  = new ReplaceAllCommand(this);
            ReplaceRuleCommand = new ReplaceRuleCommand(this);
            RenameAllCommand   = new RenameAllCommand(this);
            RenameRuleCommand  = new RenameRuleCommand(this);
            SkipAllCommand     = new SkipAllCommand(this);
            SkipRuleCommand    = new SkipRuleCommand(this);
        }