From 0f5d23b3a4d38e5a68436acf3a96822d59249f46 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 17 Jul 2018 20:21:16 +0300 Subject: *1. Implement Real Progress on Machine Emulator. *2. Add ParameterIgnore to Observable Entity validation props. *3. Block logging of similar continous job status events from embedded. (Add counter for embedded logs). *6. Make font size larger on Research module. *7. Open jobs on double click. *9. Add default sorting to job events. (NOT WORKING) *10. Add tool tips for job progress. *12. Test PPC Job Progress *13. Fix issue with inversed color conversion. --- .../EventLogging/DefaultEventLogger.cs | 11 +++++++++-- .../Tango.MachineStudio.Common/EventLogging/IEventLogger.cs | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs index 0a4af6218..b33b771ae 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs @@ -234,7 +234,7 @@ namespace Tango.MachineStudio.Common.EventLogging /// /// Type of the event. /// The message. - public void Log(EventTypes eventType, string message) + public void Log(EventTypes eventType, string message, bool write_to_db = true) { Init(); @@ -244,7 +244,14 @@ namespace Tango.MachineStudio.Common.EventLogging machineEvent.EventType = _eventTypesGuids[eventType]; machineEvent.EventTypeGuid = machineEvent.EventType.Guid; - Log(machineEvent); + if (write_to_db) + { + Log(machineEvent); + } + else + { + NewLog?.Invoke(this, machineEvent); + } } /// diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs index ce599a398..ceb399d24 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs @@ -30,7 +30,7 @@ namespace Tango.MachineStudio.Common.EventLogging /// /// Type of the event. /// The message. - void Log(EventTypes eventType, String message); + void Log(EventTypes eventType, String message, bool write_to_db = true); /// /// Logs the specified hardware event. -- cgit v1.3.1