aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-12-08 16:38:25 +0200
committerRoy <Roy.mail.net@gmail.com>2022-12-08 16:38:25 +0200
commit03405603d0706435ad51182c8adc732af1aced9d (patch)
tree9a46e36b21ab87b515b0cfca93a597a8c4dcd3c7 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance
parent88416618b921c57d88f08877c3397be6324b8605 (diff)
downloadTango-03405603d0706435ad51182c8adc732af1aced9d.tar.gz
Tango-03405603d0706435ad51182c8adc732af1aced9d.zip
Added "long head cleaning".
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningView.xaml2
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningViewVM.cs4
2 files changed, 5 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningView.xaml
index f640d5cec..01b8dd8f8 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningView.xaml
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningView.xaml
@@ -31,6 +31,8 @@
</TextBlock.Style>
</TextBlock>
+ <touch:TouchCheckBox Margin="110 20 0 0" IsChecked="{Binding IsLongCleaning}" Visibility="{Binding IsStarted,Converter={StaticResource BooleanToVisibilityInverseConverter}}">Perform Long Cleaning</touch:TouchCheckBox>
+
<Grid>
<touch:TouchButton Visibility="{Binding IsStarted,Converter={StaticResource BooleanToVisibilityInverseConverter}}" Command="{Binding StartCommand}" Margin="0 100 0 0" Style="{StaticResource TangoHollowButton}" HorizontalAlignment="Center" Padding="80 15" CornerRadius="25">START</touch:TouchButton>
<touch:TouchButton Visibility="{Binding IsStarted,Converter={StaticResource BooleanToVisibilityConverter}}" IsEnabled="{Binding IsAborting,Converter={StaticResource BooleanInverseConverter}}" Command="{Binding AbortCommand}" Margin="0 100 0 0" Style="{StaticResource TangoHollowButton}" HorizontalAlignment="Center" Padding="80 15" CornerRadius="25">ABORT</touch:TouchButton>
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningViewVM.cs
index 59d119f21..ede913c47 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Dialogs/HeadCleaningViewVM.cs
@@ -62,6 +62,8 @@ namespace Tango.PPC.Maintenance.Dialogs
set { _status = value; RaisePropertyChangedAuto(); }
}
+ public bool IsLongCleaning { get; set; }
+
public RelayCommand StartCommand { get; set; }
public RelayCommand AbortCommand { get; set; }
@@ -79,7 +81,7 @@ namespace Tango.PPC.Maintenance.Dialogs
{
CanClose = false;
IsStarted = true;
- _handler = await MachineProvider.MachineOperator.PerformHeadCleaning();
+ _handler = await MachineProvider.MachineOperator.PerformHeadCleaning(IsLongCleaning);
_handler.Completed += _handler_Completed;
_handler.Failed += _handler_Failed;
_handler.StatusChanged += _handler_StatusChanged;