/// <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); } }
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$"); }
/// <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()); }