blob: 98be45608d3dd784afbf65da4c5625a71fd2e0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
<UserControl x:Class="Tango.PPC.Maintenance.Dialogs.CleanerDispensingView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
xmlns:local="clr-namespace:Tango.PPC.Maintenance.Dialogs"
mc:Ignorable="d"
Background="{StaticResource TangoPrimaryBackgroundBrush}" d:DesignHeight="555" d:DesignWidth="560" Width="600" Height="950" d:DataContext="{d:DesignInstance Type=local:CleanerDispensingViewVM, IsDesignTimeCreatable=False}">
<Grid>
<StackPanel Margin="0 50 0 0" HorizontalAlignment="Center">
<Image Source="../Images/head_cleaning.png" RenderOptions.BitmapScalingMode="Fant" Stretch="Uniform" Height="120"></Image>
<TextBlock HorizontalAlignment="Center" FontSize="{StaticResource TangoTitleFontSize}" Margin="0 30 0 0">Dispense Cleaning Liquid</TextBlock>
<DockPanel Margin="20 40" HorizontalAlignment="Center">
<touch:TouchIcon Icon="Alert" Foreground="{StaticResource TangoErrorBrush}" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center" Foreground="{StaticResource TangoErrorBrush}">Please put on safety glasses</TextBlock>
</DockPanel>
<Label Margin="20 10" HorizontalAlignment="Center">
<Label.Style>
<Style TargetType="Label">
<Setter Property="Content">
<Setter.Value>
<TextBlock LineHeight="30" TextWrapping="Wrap">
<Run>1. Pull the thread aside and clean with Q tip when the liquid is dispensed.</Run>
<LineBreak/>
<Run>2. Dispense again if the liquid isn't enough for cleaning.</Run>
<LineBreak/>
<Run>3. When cleaning is completed, return the thread back to the V-Groove and press the 'Close Dyeing Head Lid' button to close the head lid</Run>
</TextBlock>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding MachineProvider.Machine.MachineHeadType}" Value="Arc">
<Setter Property="Content">
<Setter.Value>
<TextBlock LineHeight="30" TextWrapping="Wrap">
<Run>1. Open the dyeing head lid, pull the thread aside and clean with Q tip when the liquid is dispensed.</Run>
<LineBreak/>
<Run>2. Dispense again if the liquid isn't enough for cleaning.</Run>
<LineBreak/>
<Run>3. When cleaning is completed, return the thread back to the V-Groove and install the head lid back.</Run>
</TextBlock>
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</Label.Style>
</Label>
<Grid>
<touch:TouchButton Command="{Binding StartCommand}" Margin="0 100 0 0" Style="{StaticResource TangoHollowButton}" HorizontalAlignment="Center" Padding="80 15" CornerRadius="25">START</touch:TouchButton>
</Grid>
<StackPanel Margin="40 150 40 40">
<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Status}"></TextBlock>
<touch:TouchProgressBar Margin="0 5 0 0" VerticalAlignment="Bottom" Height="10" Minimum="0" Maximum="100" Value="0" IsIndeterminate="{Binding IsStarted}">
</touch:TouchProgressBar>
</StackPanel>
</StackPanel>
</Grid>
</UserControl>
|