aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/EventsViews/GeneralView.xaml
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-06-19 01:54:33 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-06-19 01:54:33 +0300
commitd100f0eab0fa25c861cbae2ced60afc5dfa8da6b (patch)
treec9f5f37b59528def11fab39476ce451627a8e869 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/EventsViews/GeneralView.xaml
parent238beb908fc205fd30b97894095b8f1c1a4fb50b (diff)
downloadTango-d100f0eab0fa25c861cbae2ced60afc5dfa8da6b.tar.gz
Tango-d100f0eab0fa25c861cbae2ced60afc5dfa8da6b.zip
Job Failed Event Impl.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/EventsViews/GeneralView.xaml')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/EventsViews/GeneralView.xaml23
1 files changed, 22 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/EventsViews/GeneralView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/EventsViews/GeneralView.xaml
index 3610a2850..2b3435734 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/EventsViews/GeneralView.xaml
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/EventsViews/GeneralView.xaml
@@ -4,12 +4,33 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:entities="clr-namespace:Tango.BL.Entities;assembly=Tango.BL"
+ xmlns:converters="clr-namespace:Tango.PPC.Events.Converters"
xmlns:local="clr-namespace:Tango.PPC.Events.EventsViews"
mc:Ignorable="d"
d:DesignHeight="220" d:DesignWidth="750" d:DataContext="{d:DesignInstance Type=entities:MachinesEvent, IsDesignTimeCreatable=False}">
+ <UserControl.Resources>
+ <converters:MachineEventToMachineTypeConverter x:Key="MachineEventToMachineTypeConverter" />
+ </UserControl.Resources>
<Grid Background="{StaticResource TangoPrimaryBackgroundBrush}">
<DockPanel>
- <Image Stretch="None" Margin="20" DockPanel.Dock="Right" Source="../Images/machine_small.png" RenderOptions.BitmapScalingMode="Fant" />
+ <Image Margin="20" Stretch="None" DockPanel.Dock="Right" RenderOptions.BitmapScalingMode="Fant">
+ <Image.Style>
+ <Style TargetType="Image">
+ <Setter Property="Source" Value="../Images/machine_small.png"></Setter>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding Converter={StaticResource MachineEventToMachineTypeConverter}}" Value="TS1800">
+ <Setter Property="Source" Value="../Images/machine_small.png"></Setter>
+ </DataTrigger>
+ <DataTrigger Binding="{Binding Converter={StaticResource MachineEventToMachineTypeConverter}}" Value="Eureka">
+ <Setter Property="Source" Value="../Images/machine_small_X4.png"></Setter>
+ </DataTrigger>
+ <DataTrigger Binding="{Binding Converter={StaticResource MachineEventToMachineTypeConverter}}" Value="X1">
+ <Setter Property="Source" Value="../Images/machine_small_X4.png"></Setter>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Image.Style>
+ </Image>
<DockPanel Margin="35 20 20 20">
<TextBlock FontSize="{StaticResource TangoTitleFontSize}" FontWeight="SemiBold" DockPanel.Dock="Top" Text="{Binding EventType,Converter={StaticResource EventTypeTitleConverter},FallbackValue='Unknown Event'}"></TextBlock>