예제 #1
0
		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);
		}
예제 #2
0
        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);
            }
        }