diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-01-07 16:06:38 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-01-07 16:06:38 +0200 |
| commit | e111c33bc87acf40202f9e5423e21b087a366f07 (patch) | |
| tree | fac6d85ec3589620b1daea9a9f740a2120b0ca10 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Events | |
| parent | 6da42fd28ffbb680d85bb9e695520713ff51022a (diff) | |
| download | Tango-e111c33bc87acf40202f9e5423e21b087a366f07.tar.gz Tango-e111c33bc87acf40202f9e5423e21b087a366f07.zip | |
Added new events !!!
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Events')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModels/MainViewVM.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModels/MainViewVM.cs index 81b6e5942..dd8b8041d 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModels/MainViewVM.cs @@ -60,11 +60,11 @@ namespace Tango.PPC.Events.ViewModels { InvokeUI(() => { - if (ev.Group != EventTypesGroups.Transport) + if (ev.Group != EventTypeGroups.Transport) { CurrentEvents.Insert(0, ev); - if (ev.Group != EventTypesGroups.Application && ev.Group != EventTypesGroups.Transport) + if (ev.Group != EventTypeGroups.Application && ev.Group != EventTypeGroups.Transport) { var notificationItem = new MessageNotificationItem(); notificationItem.CanClose = false; @@ -78,16 +78,16 @@ namespace Tango.PPC.Events.ViewModels switch (ev.Category) { - case EventTypesCategories.Info: + case EventTypeCategories.Info: notificationItem.MessageType = MessageNotificationItem.MessageNotificationItemTypes.Info; break; - case EventTypesCategories.Warning: + case EventTypeCategories.Warning: notificationItem.MessageType = MessageNotificationItem.MessageNotificationItemTypes.Warning; break; - case EventTypesCategories.Error: + case EventTypeCategories.Error: notificationItem.MessageType = MessageNotificationItem.MessageNotificationItemTypes.Error; break; - case EventTypesCategories.Critical: + case EventTypeCategories.Critical: notificationItem.MessageType = MessageNotificationItem.MessageNotificationItemTypes.Critical; break; } @@ -103,11 +103,11 @@ namespace Tango.PPC.Events.ViewModels { InvokeUI(() => { - if (ev.Group != EventTypesGroups.Transport) + if (ev.Group != EventTypeGroups.Transport) { CurrentEvents.Remove(ev); - if (ev.Group != EventTypesGroups.Application && ev.Group != EventTypesGroups.Transport) + if (ev.Group != EventTypeGroups.Application && ev.Group != EventTypeGroups.Transport) { if (_notifications.ContainsKey(ev.EventType.Type)) { |
