schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<Window x:Class="XHandler.View.SystemSettings"
             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:local="clr-namespace:XHandler.View"
             xmlns:localbase="clr-namespace:XHandler.View.Consumables"
             xmlns:str="clr-namespace:XHandler.Properties"
             xmlns:ctrls="clr-namespace:XHandler.Controls"
             xmlns:hc="https://handyorg.github.io/handycontrol"
             mc:Ignorable="d" 
             Height="auto" Width="auto" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" Background="#00FFFFFF"
             Loaded="SytemSettings_Loaded" PreviewKeyDown="Window_PreviewKeyDown" WindowStartupLocation = "CenterOwner">
    <Grid >
        <Border Background="{DynamicResource blueBrush}" CornerRadius="10 10 10 10" BorderThickness="2" BorderBrush="{DynamicResource blueBrush}" Width="550" Height="650">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="auto"/>
                </Grid.RowDefinitions>
 
                <Grid Grid.Row="0" MouseDown="Grid_MouseDown">
                    <Border Background="{DynamicResource blueBrush}" CornerRadius="10 10 0 0" BorderThickness="0">
                        <Grid>
                            <TextBlock Text="{x:Static str:Resources.strSystemSettingsTitle}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 0" FontSize="20"
                                       Foreground="White" FontWeight="Bold"/>
                            <Button Content="×" x:Name="btnClose" HorizontalAlignment="Right" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="10 0" FontSize="28" Width="40" Height="40"
                                    FontWeight="Bold" Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Visibility="Visible" Click="btnClose_Click"/>
                        </Grid>
                    </Border>
                </Grid>
 
                <Grid Grid.Row="1" Background="White" Name="gdTabButtons">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
 
                    <!--灯光设置-->
                    <Button Grid.Column="0" Content="{x:Static str:Resources.strSetLedBtnName}" x:Name="btnSetLed" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="10 0" FontSize="16" Width="100" Height="40"
                                     Foreground="#4ABAF9" BorderThickness="0"  Background="Transparent" Visibility="Visible" Click="btnSetLed_Click"/>
                    <!--台面示教Visibility="Visible" -->
                    <!--
                    <Button Grid.Column="2" Content="{x:Static str:Resources.strSetLatticeBtnName}" x:Name="btnSetLattice" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="10 0" FontSize="16" Width="100" Height="40"
                                     Foreground="#4ABAF9" BorderThickness="0"  Background="Transparent" Click="btnSetLattice_Click" Visibility="Collapsed"/>-->
 
                    <!--板架设置-->
                    <Button Grid.Column="1" Content="{x:Static str:Resources.strSetRack}" x:Name="btnSetRack" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="10 0" FontSize="16" Width="100" Height="40"
                                     Foreground="#4ABAF9" BorderThickness="0"  Background="Transparent" Click="btnSetRack_Click"/>
 
                    <!--通道设置Visibility="Visible" -->
                    <Button Grid.Column="2" Content="{x:Static str:Resources.strSetChannelBtnName}" x:Name="btnSetChannel" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="10 0" FontSize="16" Width="100" Height="40"
                                     Foreground="#4ABAF9" BorderThickness="0,0,0,0"  Background="Transparent" Click="btnSetChannel_Click" />
 
                    <!--其他设置-->
                    <Button Grid.Column="3" Content="{x:Static str:Resources.strOtherSetting}" x:Name="btnSetOther" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="10 0" FontSize="16" Width="100" Height="40"
                                     Foreground="#4ABAF9" BorderThickness="0"  Background="Transparent" Click="btnSetOther_Click"/>
                </Grid>
 
                <!--#region 通道设置 -->
                <Grid Grid.Row="2" Background="White" x:Name="gdSetChannelContent" Visibility="Visible">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <!--臂-->
                        <StackPanel x:Name="spChannelOne" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="0" Margin="0 0 230 0" Visibility="Collapsed">
                            <TextBlock x:Name="tbkChannelOne" Text="{x:Static str:Resources.strChannelSetting}" Grid.Column="0" FontSize="16" 
                   VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 25 15 0"></TextBlock>
                            <ctrls:TipsChannel x:Name="tipsChannelDisOne" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" TotalChannels="8" Height="70" Background="White" CanEdit="true"
                               HorizontalAlignment="Left"  VerticalAlignment="Top" Margin="0 15 15 0" SelectedChangedEvent="tipsChannelDisOne_SelectedChangedEvent" />
                        </StackPanel>
                    <StackPanel x:Name="spChannelTwo" Orientation="Horizontal" HorizontalAlignment="Right"  Grid.Row="1" Margin="0 0 230 0" Visibility="Collapsed">
                        <TextBlock x:Name="tbkChannelTwo" Text="{x:Static str:Resources.strChannelSetting}" Grid.Column="0" FontSize="16" 
                   VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 25 15 0"></TextBlock>
                            <ctrls:TipsChannel x:Name="tipsChannelDisTwo" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" TotalChannels="8" Height="70" Background="White" CanEdit="true"
                               HorizontalAlignment="Left"  VerticalAlignment="Top" Margin="0 15 15 0" SelectedChangedEvent="tipsChannelDisTwo_SelectedChangedEvent"/>
                        </StackPanel>
                    <StackPanel x:Name="spChannelThree" Orientation="Horizontal"  HorizontalAlignment="Right" Grid.Row="2" Margin="0 0 230 0" Visibility="Collapsed">
                            <TextBlock x:Name="tbkChannelThree" Text="{x:Static str:Resources.strChannelSetting}" Grid.Column="0" FontSize="16" 
                   VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 25 15 0"></TextBlock>
                            <ctrls:TipsChannel x:Name="tipsChannelDisThree" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" TotalChannels="8" Height="70" Background="White" CanEdit="true"
                               HorizontalAlignment="Left"  VerticalAlignment="Top" Margin="0 15 15 0" SelectedChangedEvent="tipsChannelDisThree_SelectedChangedEvent"/>
                        </StackPanel>
                    
                    <StackPanel x:Name="spChannelPump" Orientation="Horizontal"  Grid.Row="2" Margin="100 0 0 0" Visibility="Collapsed">
                        <TextBlock x:Name="tbkChannelPump" Text="{x:Static str:Resources.strPumpChannelSetting}" Grid.Column="0" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"></TextBlock>
                        <CheckBox x:Name="cbxPumpNumber1" Grid.Row="0" Grid.Column="1" IsChecked="True" Content="泵1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20 0" FontSize="16" />
                        <CheckBox x:Name="cbxPumpNumber2" Grid.Row="0" Grid.Column="2" IsChecked="True" Content="泵2" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20 0" FontSize="16" />
                        <CheckBox x:Name="cbxPumpNumber3" Grid.Row="0" Grid.Column="3" IsChecked="True" Content="泵3" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20 0" FontSize="16" />
                        <CheckBox x:Name="cbxPumpNumber4" Grid.Row="0" Grid.Column="4" IsChecked="True" Content="泵4" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20 0" FontSize="16" />
                        
                    </StackPanel>
                    <StackPanel x:Name="spChannelPumpDispens" Orientation="Horizontal"  Grid.Row="3" Margin="100 0 0 0" Visibility="Collapsed">
                        <TextBlock x:Name="tbkChannelPumpVolume" Text="{x:Static str:Resources.strVolue}" Grid.Column="0" FontSize="16" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 0 15 0"></TextBlock>
                        <TextBox  x:Name="txtVolume1" Height="30" Width="70" FontSize="16" VerticalAlignment="Top" Margin="0 0 0 0" 
                             Background="{DynamicResource lightGrayBrush}" BorderThickness="0" 
                              TextChanged="txtVolume1_TextChanged">
                            <!--<TextBox.Text>
                                <Binding XPath="pumpParams/volume"  Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
                                    <Binding.ValidationRules>
                                        <localbase:AspirateValidationRule  ValidateType="txtVolume1"/>
                                    </Binding.ValidationRules>
                                </Binding>
                            </TextBox.Text>-->
                            <TextBox.Text>
                                <Binding Path="Volume1" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
                                    <Binding.ValidationRules>
                                        <localbase:ConsumablesValidationRule  ValidateType="1,4@[2],5@[0-1000000]"/>
                                    </Binding.ValidationRules>
                                </Binding>
                            </TextBox.Text>
                        </TextBox>
                        <TextBox  x:Name="txtVolume2" Height="30" Width="70" FontSize="16" VerticalAlignment="Top" Margin="20 0 0 0" 
                             Background="{DynamicResource lightGrayBrush}" BorderThickness="0" 
                              TextChanged="txtVolume2_TextChanged">
                            <TextBox.Text>
                                <Binding Path="Volume2" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
                                    <Binding.ValidationRules>
                                        <localbase:ConsumablesValidationRule  ValidateType="1,4@[2],5@[0-1000000]"/>
                                    </Binding.ValidationRules>
                                </Binding>
                            </TextBox.Text>
                        </TextBox>
                        <TextBox  x:Name="txtVolume3" Height="30" Width="70" FontSize="16" VerticalAlignment="Top" Margin="17 0 0 0" 
                             Background="{DynamicResource lightGrayBrush}" BorderThickness="0" 
                              TextChanged="txtVolume3_TextChanged">
                            <TextBox.Text>
                                <Binding Path="Volume3" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
                                    <Binding.ValidationRules>
                                        <localbase:ConsumablesValidationRule  ValidateType="1,4@[2],5@[0-1000000]"/>
                                    </Binding.ValidationRules>
                                </Binding>
                            </TextBox.Text>
                        </TextBox>
                        <TextBox  x:Name="txtVolume4" Height="30" Width="70" FontSize="16" VerticalAlignment="Top" Margin="18 0 0 0" 
                             Background="{DynamicResource lightGrayBrush}" BorderThickness="0" 
                              TextChanged="txtVolume4_TextChanged">
                            <TextBox.Text>
                                <Binding Path="Volume4" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
                                    <Binding.ValidationRules>
                                        <localbase:ConsumablesValidationRule  ValidateType="1,4@[2],5@[0-1000000]"/>
                                    </Binding.ValidationRules>
                                </Binding>
                            </TextBox.Text>
                        </TextBox>
                       
                    </StackPanel>
                    <Button Content="排液" Grid.Row="3" x:Name="btnDispense" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="10 0 0 0" FontSize="16" Width="80" Height="30"
                            Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnDispense_Click" Visibility="Collapsed">
                    </Button>
                    <!--</Grid>-->
                    <!--<Grid Grid.Row="1" x:Name="gdArmContent0" Visibility="Hidden">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{x:Static str:Resources.strArmTextName}" Grid.Column="0"></TextBlock>
                        <Grid Grid.Column="1" Grid.ColumnSpan="2"></Grid>
                    </Grid>
                    <Grid Grid.Row="1" x:Name="gdArmContent1" Visibility="Hidden">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="40"></RowDefinition>
                            <RowDefinition Height="40"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{x:Static str:Resources.strArmChannelTextName}" Grid.Row="0" Grid.Column="0"></TextBlock>
                        <TextBox Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2" x:Name="tbxHeadType" Height="30" Background="{DynamicResource lightGrayBrush}" IsEnabled="False"
                             BorderThickness="0" FontSize="16" VerticalContentAlignment="Center" Text="">
                        </TextBox>
                        <TextBlock Text="{x:Static str:Resources.strSetChannelBtnName}" Grid.Row="1" Grid.Column="0"></TextBlock>
                        <ctrls:TipsChannel x:Name="tipsChannel" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" TotalChannels="8" Height="70" Background="White" CanEdit="False"
                                       HorizontalAlignment="Left"/>
                    </Grid>-->
                </Grid>
                <!--#endregion-->
 
                <!--#region 灯光设置 -->
                <Grid Grid.Row="2" Background="White" x:Name="gdSetLedContent" Visibility="Hidden">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="120"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
 
                    <!--#region UV -->
                    <Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="LightGray" BorderThickness="1" CornerRadius="8" Margin="30 10 30 10" IsEnabled="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="40"></RowDefinition>
                                <RowDefinition Height="40"></RowDefinition>
                                <RowDefinition Height="40"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <!--#region UV开关 -->
                            <TextBlock Text="{x:Static str:Resources.strSetLedUVTextName}" Grid.Row="0" Grid.Column="0" FontSize="16" HorizontalAlignment="Left" Margin="10"></TextBlock>
                            <StackPanel Grid.Row="1" Grid.Column="1"  Grid.ColumnSpan="2" Orientation="Horizontal">
                                <!--开启-->
                                <RadioButton x:Name="radioBtnUVStart" Content="{x:Static str:Resources.strSetLedUVStartName}" Height="30" VerticalContentAlignment="Center" FontSize="16" Margin="20 0" Checked="radioBtnUVStart_Checked"/>
                                <!--关闭-->
                                <RadioButton x:Name="radioBtnUVEnd" IsChecked="True" Content="{x:Static str:Resources.strSetLedUVEndName}" Height="30" VerticalContentAlignment="Center" FontSize="16" Margin="20 0" Checked="radioBtnUVEnd_Checked"/>
                            </StackPanel>
                            
                            
                            <!--#endregion-->
 
                            <!--#region 开启时段 -->
                            <!--<TextBlock Text="{x:Static str:Resources.strSetLedUVPoridName}" Grid.Row="1" Grid.Column="0" FontSize="16" HorizontalAlignment="Left" Margin="10"></TextBlock>
                            <TextBox x:Name="txtUVStartH" Grid.Row="2" Grid.Column="0" Height="30" Width="20" FontSize="16" HorizontalAlignment="Left" VerticalContentAlignment="Center" 
                                     Background="{DynamicResource lightGrayBrush}" BorderThickness="0" Text="0" Margin="20 0 0 0" />
                            <TextBox Height="30" Width="10" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="0"  FontSize="16" Margin="50,0,0,0" BorderThickness="0" Text=":" />
                            <TextBox x:Name="txtUVStartM" Grid.Row="2" Grid.Column="0" Height="30" Width="20" FontSize="16" HorizontalAlignment="Left" VerticalContentAlignment="Center"
                                     Background="{DynamicResource lightGrayBrush}" BorderThickness="0" Text="0" Margin="70 0 0 0" />
                            <TextBox Height="30" Width="10" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="0"  FontSize="16" Margin="100,0,0,0" BorderThickness="0" Text=":" />
                            <TextBox x:Name="txtUVStartS" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Height="30" Width="20" FontSize="16" HorizontalAlignment="Left" 
                                     VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}" BorderThickness="0" Text="0" Margin="120 0 0 0" />
                            <TextBox Height="30" Width="30" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" FontSize="16" Margin="0,0,0,0" BorderThickness="0" Text="  - " />
                            <TextBox x:Name="txtUVEndH" Grid.Row="2" Grid.Column="1" Height="30" Width="20" FontSize="16" HorizontalAlignment="Left" VerticalContentAlignment="Center" 
                                     Background="{DynamicResource lightGrayBrush}" BorderThickness="0" Text="23" Margin="20 0 0 0" />
                            <TextBox Height="30" Width="10" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1"  FontSize="16" Margin="50,0,0,0" BorderThickness="0" Text=":" />
                            <TextBox x:Name="txtUVEndM" Grid.Row="2" Grid.Column="1" Height="30" Width="20" FontSize="16" HorizontalAlignment="Left" VerticalContentAlignment="Center" 
                                     Background="{DynamicResource lightGrayBrush}" BorderThickness="0" Text="59" Margin="70 0 0 0" />
                            <TextBox Height="30" Width="10" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1"  FontSize="16" Margin="100,0,0,0" BorderThickness="0" Text=":" />
                            <TextBox x:Name="txtUVEndS" Grid.Row="2" Grid.Column="1" Height="30" Width="20" FontSize="16" HorizontalAlignment="Left" VerticalContentAlignment="Center" 
                                     Background="{DynamicResource lightGrayBrush}" BorderThickness="0" Text="59" Margin="120 0 0 0" />-->
                            <!--#endregion-->
 
                            <!--#region 寿命 -->
                            <!--<TextBlock Text="{x:Static str:Resources.strSetLedUVTimeName}" Grid.Row="1" Grid.Column="2" FontSize="16" HorizontalAlignment="Left" Margin="10"></TextBlock>
                            <TextBlock Height="30" Width="120" FontSize="16" Grid.Row="2" Grid.Column="2" Background="{DynamicResource lightGrayBrush}" Text="0" Margin="10 0 0 0" x:Name="tbxUVVal"/>-->
                            <!--#endregion-->
                        </Grid>
                    </Border>
                    <!--#endregion-->
 
                    <!--#region LED -->
                    <Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="LightGray" BorderThickness="1" CornerRadius="8" Margin="30 10 30 10" IsEnabled="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="40"></RowDefinition>
                                <RowDefinition Height="40"></RowDefinition>
                                <RowDefinition Height="40"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
 
                            <!--#region LED开关 -->
                            <TextBlock Text="{x:Static str:Resources.strSetLedTextName}" Grid.Row="0" Grid.Column="0" FontSize="16" HorizontalAlignment="Left" Margin="10"></TextBlock>
                            <StackPanel Grid.Row="1" Grid.Column="1"  Grid.ColumnSpan="2" Orientation="Horizontal">
                                <RadioButton x:Name="radioBtnLedStart" Content="{x:Static str:Resources.strSetLedUVStartName}" Height="30" VerticalContentAlignment="Center" FontSize="16" Margin="20 0" Checked="radioBtnLedStart_Checked"/>
                                <RadioButton x:Name="radioBtnLedEnd" IsChecked="True" Content="{x:Static str:Resources.strSetLedUVEndName}" Height="30" VerticalContentAlignment="Center" FontSize="16" Margin="20 0" Checked="radioBtnLedEnd_Checked"/>
                            </StackPanel>
                            <!--#endregion-->
                        </Grid>
                    </Border>
                    <!--#endregion-->
 
                    <!--#region FFU -->
                    <Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="LightGray" BorderThickness="1" CornerRadius="8" Margin="30 10 30 10" IsEnabled="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="40"></RowDefinition>
                                <RowDefinition Height="40"></RowDefinition>
                                <RowDefinition Height="40"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
 
                            <!--#region HEPA开关 -->
                            <TextBlock Text="{x:Static str:Resources.strSetLedHEPATextName}" Grid.Row="0" Grid.Column="0" FontSize="16" HorizontalAlignment="Left" Margin="10"></TextBlock>
                            <StackPanel Grid.Row="1" Grid.Column="1"  Grid.ColumnSpan="2" Orientation="Horizontal">
                                <RadioButton x:Name="radioBtnHEPAStart" Content="{x:Static str:Resources.strSetLedUVStartName}" Height="30" VerticalContentAlignment="Center" FontSize="16" Margin="20 0" Checked="radioBtnHEPAStart_Checked"/>
                                <RadioButton x:Name="radioBtnHEPAEnd" IsChecked="True" Content="{x:Static str:Resources.strSetLedUVEndName}" Height="30" VerticalContentAlignment="Center" FontSize="16" Margin="20 0" Checked="radioBtnHEPAEnd_Checked"/>
                            </StackPanel>
                            <!--#endregion-->
                        </Grid>
                    </Border>
                    <!--#endregion-->
 
                    <!--#region 风速计 -->
                    <!--<Border Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="LightGray" BorderThickness="1" CornerRadius="8" Margin="30 10 30 0" IsEnabled="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="40"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <TextBlock Text="{x:Static str:Resources.strSetWindTextName}" Grid.Row="0" Grid.Column="0" FontSize="16" HorizontalAlignment="Left" Margin="10"></TextBlock>
                            -->
                    <!--风速值-->
                    <!--
                            <TextBlock Text="{x:Static str:Resources.strSetWindValue}" Grid.Row="0" Grid.Column="1" FontSize="16" HorizontalAlignment="Left" Margin="10"></TextBlock>
                            <TextBlock x:Name="txtWindValue" Height="30" Width="120" FontSize="16" Grid.Row="0" Grid.Column="2" Background="{DynamicResource lightGrayBrush}"
                              Text="0" Margin="10 0 0 0" />
                        </Grid>
                    </Border>-->
                    <!--#endregion-->
                </Grid>
                <!--#endregion-->
 
                <!--#region 台面示教 -->
                <Grid Grid.Row="2" Background="White" x:Name="gdSetLatticeContent" Visibility="Hidden">
                </Grid>
                <!--#endregion-->
 
                <!--#region 暂存架 -->
                <Grid Grid.Row="2" Background="White" x:Name="gdSetRackContent" Visibility="Hidden">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="40"></RowDefinition>
                            <RowDefinition Height="50"></RowDefinition>
                            <RowDefinition Height="40"></RowDefinition>
                            <RowDefinition Height="40"></RowDefinition>
                            <RowDefinition Height="40"></RowDefinition>
 
                            <RowDefinition Height="310"></RowDefinition>
                            <RowDefinition Height="60"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
 
                        <CheckBox x:Name="cBoxEnableRack" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Content="启用暂存架" VerticalAlignment="Center"
                                  FontSize="16" Margin="50 0" HorizontalAlignment="Left" Click="cBoxEnableRack_Click"/>
 
                        <Button Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" x:Name="btnSetRackOk" Content="设置" Width="60" Height="30" VerticalContentAlignment="Center"
                                HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="14" Style="{DynamicResource BlueButtonStyle}" 
                                Background="{DynamicResource blueBrush}" Click="btnSetRackOk_Click" Margin="0,0,50,0"/>
 
 
 
                        <!--架数-->
                        <TextBlock Grid.Row="2" Grid.Column="0" Text="架数" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0"
                               FontSize="16"/>
                        <hc:NumericUpDown Grid.Row="2" Grid.Column="1" Name="numRackNum" Height="30" Width="180" FontSize="16" VerticalContentAlignment="Center"
                                 HorizontalAlignment="Left" Background="{DynamicResource lightGrayBrush}" BorderThickness="0"/>
 
                        <!--架数-->
                        <TextBlock Grid.Row="3" Grid.Column="0" Text="层数" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0"
                               FontSize="16"/>
                        <hc:NumericUpDown Grid.Row="3" Grid.Column="1" Name="numLayerNum" Height="30" Width="180" FontSize="16" VerticalContentAlignment="Center"
                                 HorizontalAlignment="Left" Background="{DynamicResource lightGrayBrush}" BorderThickness="0"/>
 
 
                        <TextBlock Grid.Row="4" Grid.Column="0" Text="有耗材" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0"
                               FontSize="16" Width="60" Background="PaleGreen"/>
                        <TextBlock Grid.Row="4" Grid.Column="1" Text="无耗材" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"
                               FontSize="16" Width="60" Background="Silver"/>
 
                        <ScrollViewer x:Name="stackScrolls" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3" HorizontalContentAlignment="Center" 
                                       CanContentScroll="True" PanningMode="HorizontalOnly" SnapsToDevicePixels="True" VerticalScrollBarVisibility="Visible" DataContext="{Binding}">
                            <WrapPanel Name="stackStackPanel" Orientation="Horizontal" ></WrapPanel>
                        </ScrollViewer>
 
                        <Rectangle Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3" Height="1" Fill="Gray" VerticalAlignment="Bottom" Margin="15 0"/>
 
                        <!--<Button Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3" x:Name="btnSetRackOk" Content="确定" Width="80" Height="40" VerticalContentAlignment="Center"
                                HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="16" Style="{DynamicResource BlueButtonStyle}" 
                                Background="{DynamicResource blueBrush}" Click="btnSetRackOk_Click" Margin="0,10,20,0"/>-->
                    </Grid>
                </Grid>
                <!--#endregion-->
 
                <!--#region 其他设置 -->
                <Grid Grid.Row="2" Background="White" x:Name="gdSetOtherContent" Visibility="Hidden">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="40"></RowDefinition>
                            <RowDefinition Height="60"></RowDefinition>
                            <RowDefinition Height="40"></RowDefinition>
 
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="150"></ColumnDefinition>
                            <ColumnDefinition Width="260"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
 
                        <!--系统全局运行速度-->
                        <TextBlock Text="{x:Static str:Resources.strSystemSpeed}" Grid.Row="1" Grid.Column="0" FontSize="16" HorizontalAlignment="Right" Margin="10"/>
                        <Slider x:Name="sldSystemTuneVal" Grid.Row="1" Minimum="0" Maximum="100" Value="50" Grid.Column="1" 
                                    Margin="10 10 10 0" Width="230" HorizontalAlignment="Left" TickFrequency="5" IsSnapToTickEnabled="True" 
                                    ValueChanged="sldSystemTuneVal_ValueChanged" MouseUp="sldSystemTuneVal_MouseUp" />
                        <TextBox x:Name="txtSystemSpeedVal" Height="30" Width="50" FontSize="16" Grid.Row="1" Grid.Column="2" Background="{DynamicResource lightGrayBrush}" 
                                     Text="50" HorizontalAlignment="Right" IsReadOnly="True" Margin="0 0 50 0"/>
 
                        <Grid Grid.Row="2" Grid.ColumnSpan="3">
                            <Button Content="重置枪头数量" x:Name="btnLoadImage" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10 0 0 0" FontSize="16" Width="160" Height="30"
                            Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnLoadImage_Click">
                            </Button>
                            <!--<Border Background="White" CornerRadius="10 10 10 10" BorderThickness="2" BorderBrush="{DynamicResource blueBrush}" Height="30" Width="160">
                        </Border>-->
                        </Grid>
                    </Grid>
                </Grid>
                <!--#endregion-->
            </Grid>
        </Border>
    </Grid>
</Window>