Beispiel #1
0
 /// <summary>
 /// The Redo menu item handler
 /// </summary>
 /// <param name="sender">The sending object</param>
 /// <param name="e">The event arguments</param>
 private void OnRedo(object sender, EventArgs e)
 {
     try
     {
         MiscActions.Redo(textEditor.TextArea.GetTextEditorData());
     }
     catch (Exception err)
     {
         ShowError(err);
     }
 }
Beispiel #2
0
        public void TestRedo()
        {
            // Undo/Redo subsystem is tested separately, this only checks if the action is working.
            var data = Create("foo$");

            data.InsertAtCaret("bar");
            Check(data, "foobar$");
            MiscActions.Undo(data);
            Check(data, "foo$");
            MiscActions.Redo(data);
            Check(data, "foobar$");
        }
Beispiel #3
0
 /// <summary>
 /// The Redo menu item handler
 /// </summary>
 /// <param name="sender">The sending object</param>
 /// <param name="e">The event arguments</param>
 private void OnRedo(object sender, EventArgs e)
 {
     MiscActions.Redo(textEditor.TextArea.GetTextEditorData());
 }