Example #1
0
        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;
        }
Example #2
0
 public ReplaceCommand(FindAndReplacePresenter presenter, NbiTextEditor editor)
 {
     this.presenter = presenter;
     this.editor    = editor;
 }
Example #3
0
 public FindAndReplaceCommand(NbiTextEditor editor)
 {
     this.editor = editor;
 }
Example #4
0
 public CancelFindCommand(NbiTextEditor editor)
 {
     this.editor = editor;
 }