private void menuRedo_Click(object sender, EventArgs e) { if (hUndo != null && hUndo.CanRedo) { hUndo.Redo(); } }
protected void OnRedo() { IUndoHandler editable = GetContent <IUndoHandler> (); if (editable != null) { editable.Redo(); } }
private void menuEditRedo_Click(object sender, EventArgs e) { IUndoHandler h = this.DockPanel.ActiveContent as IUndoHandler; if (h != null && h.CanRedo) { h.Redo(); } }
public override void Run() { IUndoHandler editable = WorkbenchSingleton.Workbench.ActiveContent as IUndoHandler; if (editable != null) { editable.Redo(); } }
/// <summary> /// Perform an redo in the sourcecode editor. /// </summary> public void Redo() { if (undoTracker.CanRedo) { undoHandler.Redo(); TxtDocDirty = true; undoTracker.RedoAction(); OnUndoRedo(); } }