Esempio n. 1
0
		void UndoCommandService_OnEvent(object? sender, UndoCommandServiceEventArgs e) {
			var buffer = HexUndoableDocumentsProvider.TryGetHexBuffer(e.UndoObject);
			if (buffer is null)
				return;

			if (e.Type == UndoCommandServiceEventType.Saved)
				OnDocumentSaved(buffer);
			else if (e.Type == UndoCommandServiceEventType.Dirty)
				OnDocumentDirty(buffer);
		}
Esempio n. 2
0
        void UndoCommandService_OnEvent(object sender, UndoCommandServiceEventArgs e)
        {
            var doc = HexUndoableDocumentsProvider.TryGetAsmEdHexDocument(e.UndoObject);

            if (doc == null)
            {
                return;
            }

            if (e.Type == UndoCommandServiceEventType.Saved)
            {
                OnDocumentSaved(doc);
            }
            else if (e.Type == UndoCommandServiceEventType.Dirty)
            {
                OnDocumentDirty(doc);
            }
        }
Esempio n. 3
0
 void UndoCommandService_OnEvent(object sender, UndoCommandServiceEventArgs e) => ClearTextInputCommand();