/// <summary>
 /// Executes the command logics.
 /// </summary>
 public override void Invoke()
 {
     var textToFind = this.editor.SelectedText;
     var presenter = new FindAndReplacePresenter(this.editor) { TextToFind = textToFind };
     var window = new FindAndReplaceWindow(presenter);
     window.Show(editor);
 }
Example #2
0
 public ReplaceCommand(FindAndReplacePresenter presenter, NbiTextEditor editor)
 {
     this.presenter = presenter;
     this.editor = editor;
 }
 public FindAndReplaceWindow(FindAndReplacePresenter presenter)
 {
     this.InitializeComponent();
     this.Presenter = presenter;
 }