public FindAndReplacePresenter(NbiTextEditor editor)
        {
            this.FindCommand = new FindCommand(this, editor);
            this.CancelFindCommand = new CancelFindCommand(editor);
            this.ReplaceCommand = new ReplaceCommand(this, editor);
            this.ReplaceAllCommand = new ReplaceAllCommand(this, editor);

            this.TextToFind = string.Empty;
            this.TextToReplace = string.Empty;
            this.MatchWord = false;
            this.CaseSensitive = false;
        }
示例#2
0
 public ReplaceCommand(FindAndReplacePresenter presenter, NbiTextEditor editor)
 {
     this.presenter = presenter;
     this.editor = editor;
 }
 public FindAndReplaceCommand(NbiTextEditor editor)
 {
     this.editor = editor;
 }
示例#4
0
 public CancelFindCommand(NbiTextEditor editor)
 {
     this.editor = editor;
 }