aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-10 18:29:04 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-10 18:29:04 +0200
commita899cdbb2c5f36d9fb5d89744b69387289765cf8 (patch)
tree7063118161488afab380205772a634bed3ea26ef /Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications
parent6240aad18f5dc54d4e29bf2d39f49ef1ba39742f (diff)
downloadTango-a899cdbb2c5f36d9fb5d89744b69387289765cf8.tar.gz
Tango-a899cdbb2c5f36d9fb5d89744b69387289765cf8.zip
Improved Transporter keep alive and disconnection/connection procedures.
Added Disconnected machine state.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItem.cs1
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml10
2 files changed, 9 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItem.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItem.cs
index 0f8354157..a9de336a1 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItem.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItem.cs
@@ -21,6 +21,7 @@ namespace Tango.PPC.Common.Notifications.NotificationItems
Success,
Warning,
Error,
+ Critical,
}
private String _message;
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml
index dbd9a0eca..efb6a5447 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml
@@ -25,6 +25,9 @@
<DataTrigger Binding="{Binding MessageType}" Value="Error">
<Setter Property="Foreground" Value="{StaticResource TangoErrorBrush}"></Setter>
</DataTrigger>
+ <DataTrigger Binding="{Binding MessageType}" Value="Critical">
+ <Setter Property="Foreground" Value="{StaticResource TangoErrorBrush}"></Setter>
+ </DataTrigger>
</Style.Triggers>
</Style>
</ContentControl.Style>
@@ -41,10 +44,13 @@
<Setter Property="Icon" Value="Check"></Setter>
</DataTrigger>
<DataTrigger Binding="{Binding MessageType}" Value="Warning">
- <Setter Property="Icon" Value="Alert"></Setter>
+ <Setter Property="Icon" Value="AlertCircleOutline"></Setter>
</DataTrigger>
<DataTrigger Binding="{Binding MessageType}" Value="Error">
- <Setter Property="Icon" Value="AlertOctagon"></Setter>
+ <Setter Property="Icon" Value="AlertCircleOutline"></Setter>
+ </DataTrigger>
+ <DataTrigger Binding="{Binding MessageType}" Value="Critical">
+ <Setter Property="Icon" Value="Alert"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>