protected virtual void OnNameChange(UndoRedoEventArgs e) { EventHandler <UndoRedoEventArgs> handler = UndoRedoCommandEventArgs; if (handler != null) { handler(this, e); } }
void cat_UndoRedoCommandEventArgs(object sender, UndoRedoEventArgs e) { m_undoRedoManager.AddUndoableCommand(e.cmd); }