diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-07-06 21:58:07 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-07-06 21:58:07 +0300 |
| commit | 9fa564ba8bdc768425f979eba55c95c03efea09e (patch) | |
| tree | f6d47c5acdc705b61d886922e7f5463736bdb6b2 /Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs | |
| parent | cb84ea0240829179a36f6fdcce378154e6abc03e (diff) | |
| download | Tango-9fa564ba8bdc768425f979eba55c95c03efea09e.tar.gz Tango-9fa564ba8bdc768425f979eba55c95c03efea09e.zip | |
Completed auto/start ink filling change.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityView.xaml | 4 | ||||
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityViewVM.cs | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityView.xaml index d2fe31387..d9ec6d1c2 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityView.xaml @@ -12,9 +12,9 @@ <Grid DockPanel.Dock="Bottom"> <touch:TouchButton HorizontalAlignment="Right" CornerRadius="25" Command="{Binding OKCommand}" Style="{StaticResource TangoHollowButton}" Width="150" Height="50" VerticalAlignment="Bottom">CLOSE</touch:TouchButton> - <StackPanel HorizontalAlignment="Left" Visibility="{Binding IsAutoInkFillingDisabled,Converter={StaticResource BooleanToVisibilityConverter}}"> + <StackPanel HorizontalAlignment="Left" Visibility="{Binding IsAutoInkFillingEnabled,Converter={StaticResource BooleanToVisibilityInverseConverter}}"> <TextBlock HorizontalAlignment="Center" Foreground="{StaticResource TangoErrorBrush}">Auto ink filling is disabled</TextBlock> - <touch:TouchButton CornerRadius="25" Margin="0 5 0 0" Command="{Binding EnableAutoInkFillingCommand}" Style="{StaticResource TangoHollowButton}" Width="300" Height="50" VerticalAlignment="Bottom">ENABLE AUTO INK FILLING</touch:TouchButton> + <touch:TouchButton CornerRadius="25" Margin="0 5 0 0" Command="{Binding StartAutoInkFillingCommand}" Style="{StaticResource TangoHollowButton}" Width="300" Height="50" VerticalAlignment="Bottom">START INK FILLING</touch:TouchButton> </StackPanel> </Grid> <StackPanel DockPanel.Dock="Top"> diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityViewVM.cs index 6d4c90e21..20f1fc18a 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/InsufficientLiquidQuantityViewVM.cs @@ -13,22 +13,22 @@ namespace Tango.PPC.UI.Dialogs { public InsufficientLiquidQuantityException Exception { get; set; } - public bool IsAutoInkFillingDisabled { get; set; } + public bool IsAutoInkFillingEnabled { get; set; } - public bool EnableAutoInkFillingOnExit { get; set; } + public bool StartAutoInkFillingOnExit { get; set; } - public RelayCommand EnableAutoInkFillingCommand { get; set; } + public RelayCommand StartAutoInkFillingCommand { get; set; } - public InsufficientLiquidQuantityViewVM(InsufficientLiquidQuantityException ex,bool isAutoInkFillingDisabled) + public InsufficientLiquidQuantityViewVM(InsufficientLiquidQuantityException ex,bool isAutoInkFillingEnabled) { Exception = ex; - IsAutoInkFillingDisabled = isAutoInkFillingDisabled; - EnableAutoInkFillingCommand = new RelayCommand(EnableAutoInkFilling); + IsAutoInkFillingEnabled = isAutoInkFillingEnabled; + StartAutoInkFillingCommand = new RelayCommand(StartAutoInkFilling); } - private void EnableAutoInkFilling() + private void StartAutoInkFilling() { - EnableAutoInkFillingOnExit = true; + StartAutoInkFillingOnExit = true; Accept(); } } |
