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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
<Window 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.Windows.BenchmarkWindow"
Title="Benchmark"
Icon="/Assets/Icons/UVtools.ico"
SizeToContent="WidthAndHeight"
WindowStartupLocation="CenterOwner"
CanResize="False"
>
<Grid
RowDefinitions="Auto,10,
Auto,10,
Auto,10,
Auto,20,
Auto,10,
Auto,20,
Auto"
>
<Border
Background="WhiteSmoke"
Padding="10"
BorderBrush="Black"
BorderThickness="1"
>
<TextBlock Text="{Binding Description}"/>
</Border>
<Grid
ColumnDefinitions="Auto,10,*"
Grid.Row="2"
Margin="10"
>
<TextBlock
VerticalAlignment="Center"
Text="Test:"/>
<ComboBox
Grid.Column="2"
HorizontalAlignment="Stretch"
SelectedIndex="{Binding TestSelectedIndex}"
Items="{Binding Tests}"
IsEnabled="{Binding !IsRunning}"
/>
</Grid>
<TextBlock
Margin="10,0"
Grid.Row="4"
FontWeight="Bold" Text="Your results:" />
<Grid
Grid.Row="6"
ColumnDefinitions="Auto,5,Auto"
RowDefinitions="Auto,5,Auto"
Margin="10,0"
>
<TextBlock
HorizontalAlignment="Right"
Text="Single Thread:" />
<TextBlock
Grid.Column="2"
Text="{Binding SingleThreadTDPS}" />
<TextBlock
Grid.Row="2"
HorizontalAlignment="Right"
Text="Multi Thread:" />
<TextBlock
Grid.Row="2"
Grid.Column="2"
Text="{Binding MultiThreadTDPS}" />
</Grid>
<TextBlock
Margin="10,0"
Grid.Row="8"
FontWeight="Bold" Text="Developer results:" />
<Grid
Grid.Row="10"
ColumnDefinitions="Auto,5,Auto"
RowDefinitions="Auto,5,Auto"
Margin="10,0"
>
<TextBlock
HorizontalAlignment="Right"
Text="Single Thread:" />
<TextBlock
Grid.Column="2"
Text="{Binding DevSingleThreadTDPS}" />
<TextBlock
Grid.Row="2"
HorizontalAlignment="Right"
Text="Multi Thread:" />
<TextBlock
Grid.Row="2"
Grid.Column="2"
Text="{Binding DevMultiThreadTDPS}" />
</Grid>
<Grid
Grid.Row="12"
ColumnDefinitions="*,Auto"
>
<ProgressBar
IsIndeterminate="{Binding IsRunning}"
IsEnabled="{Binding IsRunning}"
/>
<Button
Name="StartStopButton"
Grid.Column="1"
Padding="40,10"
IsDefault="True"
Content="{Binding StartStopButtonText}"
Command="{Binding StartStop}"
/>
</Grid>
</Grid>
</Window>
|