diff options
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml | 22 |
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}"> |
