blob: de378c1695611584dbae1c2db0f6be1a2c713ce5 (
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
67
68
69
70
|
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="UVtools.WPF.Controls.Tools.ToolIPrintedThisFileControl">
<Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto"
ColumnDefinitions="Auto,10,Auto">
<TextBlock Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center"
ToolTip.Tip="The material you want to consume from (remaining in current bottle / total in stock)"
Text="Material:"/>
<ComboBox Grid.Row="0" Grid.Column="2"
HorizontalAlignment="Stretch"
MinWidth="600"
Items="{Binding Operation.Manager}"
SelectedItem="{Binding Operation.MaterialItem}"/>
<TextBlock Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center"
Text="Volume:"/>
<StackPanel Grid.Row="2" Grid.Column="2"
Orientation="Horizontal" Spacing="5">
<NumericUpDown Minimum="1"
Maximum="1000000"
Increment="1"
MinWidth="200"
Value="{Binding Operation.Volume}"/>
<TextBlock VerticalAlignment="Center" Text="ml"/>
</StackPanel>
<TextBlock Grid.Row="4" Grid.Column="0"
VerticalAlignment="Center"
Text="Print time:"/>
<StackPanel Grid.Row="4" Grid.Column="2"
Orientation="Horizontal" Spacing="5">
<NumericUpDown Minimum="1"
Maximum="100000000"
Increment="1"
MinWidth="200"
FormatString="F2"
Value="{Binding Operation.PrintTime}"/>
<TextBlock VerticalAlignment="Center"
Text="{Binding Operation.PrintTimeHours, StringFormat=s / {0:N4}h}"/>
</StackPanel>
<TextBlock Grid.Row="6" Grid.Column="0"
VerticalAlignment="Center"
ToolTip.Tip="Number of time(s) the file has been printed.

Half numbers can be used to consume from a failed print. Example: 0.5x if a print canceled at 50% progress."
Text="Multiplier:"/>
<StackPanel Grid.Row="6" Grid.Column="2"
Orientation="Horizontal" Spacing="5">
<NumericUpDown Minimum="0.01"
Maximum="500"
Increment="1"
MinWidth="200"
Value="{Binding Operation.Multiplier}"/>
<TextBlock VerticalAlignment="Center"
Text="time(s)"/>
</StackPanel>
</Grid>
</UserControl>
|