aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-14 14:30:42 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-14 14:30:42 +0200
commit7d9ab3b87aed944167d77244b00fbdd4224725e2 (patch)
tree9a2a56059a0332182a7ecf4aa4237eae132f97f7 /Software/Visual_Studio/PPC/Modules
parentc19568d8dc2677fe8dd57d55a737535c718f52f5 (diff)
downloadTango-7d9ab3b87aed944167d77244b00fbdd4224725e2.tar.gz
Tango-7d9ab3b87aed944167d77244b00fbdd4224725e2.zip
Added support for SMS notifications on TS & X4.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml
index 694658be6..5a08c5cd1 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml
@@ -386,6 +386,28 @@
</StackPanel>
</touch:TouchExpander>
+ <!--SMS-->
+ <touch:TouchExpander Margin="0 20 0 0" Header="SMS Notifications" IsExpanded="True" FontSize="{StaticResource TangoExpanderHeaderFontSize}">
+ <StackPanel>
+ <controls:TableGrid Margin="10" RowHeight="60" MakeFirstColumnVerticalAlignmentBottom="False" TextElement.FontSize="{StaticResource TangoDefaultFontSize}">
+ <TextBlock VerticalAlignment="Center">Enable Notifications</TextBlock>
+ <touch:TouchToggleSlider x:Name="chkEnableSMS" IsChecked="{Binding Settings.SMSNotificationSettings.Enable}" Margin="0 0 100 0" DockPanel.Dock="Right" HorizontalAlignment="Right" Width="90"/>
+
+ <TextBlock VerticalAlignment="Center">Notify When Job Completes</TextBlock>
+ <touch:TouchToggleSlider IsEnabled="{Binding ElementName=chkEnableSMS,Path=IsChecked}" Style="{StaticResource TouchToggleDisabledGray}" IsChecked="{Binding Settings.SMSNotificationSettings.SendWhenJobCompletes}" Margin="0 0 100 0" DockPanel.Dock="Right" HorizontalAlignment="Right" Width="90"/>
+
+ <TextBlock VerticalAlignment="Center">Notify When Job Fails</TextBlock>
+ <touch:TouchToggleSlider IsEnabled="{Binding ElementName=chkEnableSMS,Path=IsChecked}" Style="{StaticResource TouchToggleDisabledGray}" IsChecked="{Binding Settings.SMSNotificationSettings.SendWhenJobFails}" Margin="0 0 100 0" DockPanel.Dock="Right" HorizontalAlignment="Right" Width="90"/>
+
+ <TextBlock VerticalAlignment="Bottom">Minimum meters for notification</TextBlock>
+ <touch:TouchNumericTextBox IsEnabled="{Binding ElementName=chkEnableSMS,Path=IsChecked}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="200" Minimum="1" Maximum="60" Value="{Binding Settings.SMSNotificationSettings.MinimumNotificationMeters}" HasDecimalPoint="False" KeyboardContainer="{Binding ElementName=Container}"></touch:TouchNumericTextBox>
+ </controls:TableGrid>
+
+ <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" ><Run>Phone Numbers</Run> <Run FontSize="12" Foreground="{StaticResource TangoGrayTextBrush}"> (comma separated)</Run></TextBlock>
+ <touch:TouchMultiLineTextBox IsEnabled="{Binding ElementName=chkEnableSMS,Path=IsChecked}" Height="80" Text="{Binding Settings.SMSNotificationSettings.Numbers}" FontSize="16" CaretBrush="Black"></touch:TouchMultiLineTextBox>
+ </StackPanel>
+ </touch:TouchExpander>
+
<!--TECHNICIAN-->
<touch:TouchExpander Visibility="{Binding ApplicationManager.IsInTechnicianMode,Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0 20 0 0" Header="Advanced" IsExpanded="True" FontSize="{StaticResource TangoExpanderHeaderFontSize}">