From 950da7fa1fbec7a886d0e603b95665d9fbbcc3b0 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 14 Oct 2020 08:21:06 +0300 Subject: Added Persistent column to event types. --- .../Tango.EventsTypesGenerator/Events.xlsx | Bin 53943 -> 0 bytes .../Tango.EventsTypesGenerator/Program.cs | 3 ++ .../Tango.EventsTypesGenerator.csproj | 36 +++------------------ 3 files changed, 7 insertions(+), 32 deletions(-) delete mode 100644 Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Events.xlsx (limited to 'Software/Visual_Studio/Utilities') diff --git a/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Events.xlsx b/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Events.xlsx deleted file mode 100644 index a9183ec04..000000000 Binary files a/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Events.xlsx and /dev/null differ diff --git a/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Program.cs b/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Program.cs index ef2e67909..e5f94d95e 100644 --- a/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Program.cs +++ b/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Program.cs @@ -33,6 +33,7 @@ namespace Tango.EventsTypesGenerator public String ActionsEmbedded { get; set; } public String NotificationTime { get; set; } public String Guidance { get; set; } + public String Persistent { get; set; } public override string ToString() { @@ -143,6 +144,7 @@ namespace Tango.EventsTypesGenerator if (te.NotificationTime != ev.NotificationTime) return true; if (te.Guidance != ev.Guidance) return true; if (te.RequiresUserIntervention != ev.RequiresUserIntervention) return true; + if (te.Persistent != ev.Persistent) return true; return false; } @@ -160,6 +162,7 @@ namespace Tango.EventsTypesGenerator ev.NotificationTime = (EventTypeNotificationTimes)Enum.Parse(typeof(EventTypeNotificationTimes), evx.NotificationTime.Replace(" ", ""), true); ev.Guidance = !String.IsNullOrWhiteSpace(evx.Guidance) ? evx.Guidance : null; ev.RequiresUserIntervention = evx.UserInterventionRequired == "Yes"; + ev.Persistent = evx.Persistent == "Yes"; } } } diff --git a/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Tango.EventsTypesGenerator.csproj b/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Tango.EventsTypesGenerator.csproj index 9bb8729dc..7461a88a8 100644 --- a/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Tango.EventsTypesGenerator.csproj +++ b/Software/Visual_Studio/Utilities/Tango.EventsTypesGenerator/Tango.EventsTypesGenerator.csproj @@ -56,43 +56,15 @@ - - Tango alarm events handling chart_Rev11.xlsx - PreserveNewest - - - Tango alarm events handling chart_Rev12.xlsx - PreserveNewest - - - Tango alarm events handling chart_Rev13.xlsx - PreserveNewest - - - Tango alarm events handling chart_Rev17.xlsx - PreserveNewest - - - Tango alarm events handling chart_Rev21.xlsx - PreserveNewest - - - Tango alarm events handling chart_Rev23.xlsx - PreserveNewest - - - Tango alarm events handling chart_Rev24.xlsx - PreserveNewest - - + Tango alarm events handling chart_Rev25.xlsx PreserveNewest + + Tango alarm events handling chart_Rev25_Persistent.xlsx + - - PreserveNewest - -- cgit v1.3.1