void UndoCommandManager_OnEvent(object sender, UndoCommandManagerEventArgs e) { var doc = UndoCommandManager.Instance.TryGetAsmEdHexDocument(e.UndoObject); if (doc == null) return; if (e.Type == UndoCommandManagerEventType.Saved) OnDocumentSaved(doc); else if (e.Type == UndoCommandManagerEventType.Dirty) OnDocumentDirty(doc); }
void UndoCommandManager_OnEvent(object sender, UndoCommandManagerEventArgs e) { var doc = UndoCommandManager.Instance.TryGetAsmEdHexDocument(e.UndoObject); if (doc == null) { return; } if (e.Type == UndoCommandManagerEventType.Saved) { OnDocumentSaved(doc); } else if (e.Type == UndoCommandManagerEventType.Dirty) { OnDocumentDirty(doc); } }