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;
        }
 public ReplaceCommand(FindAndReplacePresenter presenter, NbiTextEditor editor)
 {
     this.presenter = presenter;
     this.editor = editor;
 }
 public FindAndReplaceCommand(NbiTextEditor editor)
 {
     this.editor = editor;
 }
 public CancelFindCommand(NbiTextEditor editor)
 {
     this.editor = editor;
 }