Selaa lähdekoodia

无法获取打印机异常退出问题

主页面UI优化
大幅提升进入主页面的速度
设备检测不再在每次开始时检测
录制未完成不能退出
全局按钮样式调整
master
张剑 2 vuotta sitten
vanhempi
commit
28235b9aec

+ 3
- 3
XHWK.WKTool/App.config Näytä tiedosto

@@ -5,12 +5,12 @@
5 5
   </startup>
6 6
   <appSettings>
7 7
     <!--0正式 1测试-->
8
-    <add key="IsDebug" value="1" />
8
+    <add key="IsDebug" value="0" />
9 9
     <!--参数是否加密 0不加密 1加密-->
10 10
     <add key="IsParameterEncryption" value="0" />
11 11
     <!--版本号-->
12
-    <add key="VersionCode" value="110" />
13
-    <add key="VersionName" value="3.2.1" />
12
+    <add key="VersionCode" value="111" />
13
+    <add key="VersionName" value="3.2.2" />
14 14
     <!--皮肤样式 0白 1蓝 2黑色 -->
15 15
     <add key="SkinStyle" value="0" />
16 16
     <!--是否输出视频记录日志:0否-->

+ 3
- 3
XHWK.WKTool/CreateAMicroLessonWindow.xaml Näytä tiedosto

@@ -210,7 +210,7 @@
210 210
                                     FontWeight="Bold"
211 211
                                     Foreground="#FFFFFF"
212 212
                                     IsDefault="True"
213
-                                    Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
213
+                                    >
214 214
                                     <Button.Template>
215 215
                                         <ControlTemplate TargetType="{x:Type Button}">
216 216
                                             <Border
@@ -272,7 +272,7 @@
272 272
                     FontSize="16"
273 273
                     Foreground="#FFFFFF"
274 274
                     Text="创建微课" />
275
-                <!--<Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" VerticalAlignment="Top" Foreground="#FFFFFF" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>-->
275
+                <!--<Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" VerticalAlignment="Top" Foreground="#FFFFFF" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right"  Click="BtnDown_Click"/>-->
276 276
             </Grid>
277 277
             <Grid
278 278
                 x:Name="GridTitle_Black"
@@ -297,7 +297,7 @@
297 297
                     Cursor="Hand"
298 298
                     FontSize="30"
299 299
                     Foreground="#FF333333"
300
-                    Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
300
+                     />
301 301
             </Grid>
302 302
             <!--  第二行 讲解名称  -->
303 303
             <!--  第三行 存放路径  -->

+ 5
- 10
XHWK.WKTool/DeviceWindow.xaml Näytä tiedosto

@@ -181,8 +181,7 @@
181 181
                             Margin="0,0,0,0"
182 182
                             HorizontalAlignment="Stretch"
183 183
                             VerticalAlignment="Stretch"
184
-                            IsEnabled="False"
185
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
184
+                            IsEnabled="False">
186 185
                             <StackPanel Orientation="Horizontal">
187 186
                                 <Image
188 187
                                     Height="18"
@@ -203,8 +202,7 @@
203 202
                             Margin="0,0,0,0"
204 203
                             HorizontalAlignment="Stretch"
205 204
                             VerticalAlignment="Stretch"
206
-                            IsEnabled="False"
207
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
205
+                            IsEnabled="False">
208 206
                             <StackPanel Orientation="Horizontal">
209 207
                                 <Image
210 208
                                     Height="18"
@@ -226,8 +224,7 @@
226 224
                             HorizontalAlignment="Stretch"
227 225
                             VerticalAlignment="Stretch"
228 226
                             Cursor="Hand"
229
-                            IsEnabled="False"
230
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
227
+                            IsEnabled="False">
231 228
                             <StackPanel Orientation="Horizontal">
232 229
                                 <Image
233 230
                                     Height="18"
@@ -248,8 +245,7 @@
248 245
                             Margin="0,0,0,0"
249 246
                             HorizontalAlignment="Stretch"
250 247
                             VerticalAlignment="Stretch"
251
-                            IsEnabled="False"
252
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
248
+                            IsEnabled="False">
253 249
                             <StackPanel Orientation="Horizontal">
254 250
                                 <Image
255 251
                                     Height="18"
@@ -386,8 +382,7 @@
386 382
                             Cursor="Hand"
387 383
                             FontSize="15"
388 384
                             Foreground="White"
389
-                            IsDefault="True"
390
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
385
+                            IsDefault="True">
391 386
                             <Button.Template>
392 387
                                 <ControlTemplate TargetType="{x:Type Button}">
393 388
                                     <Border

+ 5
- 5
XHWK.WKTool/LoginWindow.xaml Näytä tiedosto

@@ -236,7 +236,7 @@
236 236
                             FontSize="18"
237 237
                             Foreground="#FFFFFF"
238 238
                             IsDefault="True"
239
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
239
+                            >
240 240
                             <Button.Template>
241 241
                                 <ControlTemplate TargetType="{x:Type Button}">
242 242
                                     <Border
@@ -269,7 +269,7 @@
269 269
                             FontSize="18"
270 270
                             Foreground="#FFFFFF"
271 271
                             IsDefault="True"
272
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
272
+                            >
273 273
                             <Button.Template>
274 274
                                 <ControlTemplate TargetType="{x:Type Button}">
275 275
                                     <Border
@@ -296,7 +296,7 @@
296 296
                             Click="BtnServiceAddress_Click"
297 297
                             Cursor="Hand"
298 298
                             FontSize="{Binding WordSize12}"
299
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
299
+                            >
300 300
                             <Button.Template>
301 301
                                 <ControlTemplate TargetType="{x:Type Button}">
302 302
                                     <Grid>
@@ -427,7 +427,7 @@
427 427
                             FontWeight="Bold"
428 428
                             Foreground="#FFFFFF"
429 429
                             IsDefault="True"
430
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
430
+                            >
431 431
                             <Button.Template>
432 432
                                 <ControlTemplate TargetType="{x:Type Button}">
433 433
                                     <Border
@@ -461,7 +461,7 @@
461 461
                             FontWeight="Bold"
462 462
                             Foreground="#FFFFFF"
463 463
                             IsDefault="True"
464
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
464
+                            >
465 465
                             <Button.Template>
466 466
                                 <ControlTemplate TargetType="{x:Type Button}">
467 467
                                     <Border

+ 17
- 17
XHWK.WKTool/MainWindow.xaml Näytä tiedosto

@@ -352,7 +352,7 @@
352 352
                                 Click="BtnRecord_Click"
353 353
                                 Cursor="Hand"
354 354
                                 FontSize="14"
355
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
355
+                                 />
356 356
                             <Button
357 357
                                 x:Name="BtnRecordSuspend"
358 358
                                 Margin="5,0"
@@ -362,7 +362,7 @@
362 362
                                 Click="BtnRecord_Click"
363 363
                                 Cursor="Hand"
364 364
                                 FontSize="14"
365
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
365
+                                
366 366
                                 Visibility="Collapsed" />
367 367
                         </Grid>
368 368
                         <Grid Name="stop_grid" Grid.Column="3">
@@ -375,7 +375,7 @@
375 375
                                 Click="BtnStop_Click"
376 376
                                 Cursor="Hand"
377 377
                                 FontSize="14"
378
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
378
+                                 />
379 379
                         </Grid>
380 380
                     </Grid>
381 381
 
@@ -395,7 +395,7 @@
395 395
                             Click="BtnClose_Click"
396 396
                             Cursor="Hand"
397 397
                             FontSize="14"
398
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
398
+                             />
399 399
                     </Grid>
400 400
                     <!--  测试  -->
401 401
                     <Grid Grid.Column="2" Visibility="Collapsed">
@@ -411,7 +411,7 @@
411 411
                             Click="BtnClose_Click"
412 412
                             Cursor="Hand"
413 413
                             FontSize="16"
414
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
414
+                            >
415 415
                             <Button.Template>
416 416
                                 <ControlTemplate TargetType="{x:Type Button}">
417 417
                                     <Grid>
@@ -535,7 +535,7 @@
535 535
                                 Click="BtnScreenshot_Click"
536 536
                                 Cursor="Hand"
537 537
                                 FontSize="16"
538
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
538
+                                 />
539 539
                         </Grid>
540 540
                         <!--  导入  -->
541 541
                         <Grid Grid.Row="3">
@@ -547,7 +547,7 @@
547 547
                                 Click="BtnImport_Click"
548 548
                                 Cursor="Hand"
549 549
                                 FontSize="16"
550
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
550
+                                 />
551 551
                         </Grid>
552 552
                         <!--  加页  -->
553 553
                         <Grid Grid.Row="4">
@@ -559,7 +559,7 @@
559 559
                                 Click="BtnAdd_Click"
560 560
                                 Cursor="Hand"
561 561
                                 FontSize="16"
562
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
562
+                                 />
563 563
                         </Grid>
564 564
                         <!--  打印  -->
565 565
                         <Grid Grid.Row="5">
@@ -571,7 +571,7 @@
571 571
                                 Click="BtnPrint_Click"
572 572
                                 Cursor="Hand"
573 573
                                 FontSize="16"
574
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
574
+                                 />
575 575
                         </Grid>
576 576
                         <!--  我的  -->
577 577
                         <Grid Grid.Row="6">
@@ -583,7 +583,7 @@
583 583
                                 Click="BtnUpload_Click"
584 584
                                 Cursor="Hand"
585 585
                                 FontSize="16"
586
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
586
+                                 />
587 587
                         </Grid>
588 588
                         <!--  检测  -->
589 589
                         <Grid Grid.Row="7">
@@ -595,7 +595,7 @@
595 595
                                 Click="BtnDevice_Click"
596 596
                                 Cursor="Hand"
597 597
                                 FontSize="16"
598
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
598
+                                 />
599 599
                         </Grid>
600 600
                         <!--  设置  -->
601 601
                         <Grid Grid.Row="8">
@@ -607,7 +607,7 @@
607 607
                                 Click="BtnSetUp_Click"
608 608
                                 Cursor="Hand"
609 609
                                 FontSize="16"
610
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
610
+                                 />
611 611
                         </Grid>
612 612
                         <!--  测试  -->
613 613
                         <Grid
@@ -621,7 +621,7 @@
621 621
                                 Click="BtnSetUp_Click"
622 622
                                 Cursor="Hand"
623 623
                                 FontSize="18"
624
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
624
+                                >
625 625
                                 <Button.Template>
626 626
                                     <ControlTemplate TargetType="{x:Type Button}">
627 627
                                         <Grid>
@@ -919,7 +919,7 @@
919 919
                                         Height="20"
920 920
                                         Click="last_button_Click"
921 921
                                         Cursor="Hand"
922
-                                        Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
922
+                                        >
923 923
                                         <StackPanel>
924 924
                                             <Image
925 925
                                                 Width="16"
@@ -965,7 +965,7 @@
965 965
                                         Background="Transparent"
966 966
                                         Click="next_btn_Click"
967 967
                                         Cursor="Hand"
968
-                                        Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
968
+                                        >
969 969
                                         <StackPanel>
970 970
                                             <Image
971 971
                                                 Width="16"
@@ -1231,7 +1231,7 @@
1231 1231
                                                 VerticalAlignment="Center"
1232 1232
                                                 Click="BtnSkinWhite_Click"
1233 1233
                                                 Cursor="Hand"
1234
-                                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
1234
+                                                >
1235 1235
                                                 <Button.Template>
1236 1236
                                                     <ControlTemplate TargetType="{x:Type Button}">
1237 1237
                                                         <StackPanel>
@@ -1262,7 +1262,7 @@
1262 1262
                                                 VerticalAlignment="Center"
1263 1263
                                                 Click="BtnSkinTechnologyBlue_Click"
1264 1264
                                                 Cursor="Hand"
1265
-                                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
1265
+                                                >
1266 1266
                                                 <Button.Template>
1267 1267
                                                     <ControlTemplate TargetType="{x:Type Button}">
1268 1268
                                                         <StackPanel>

+ 1
- 1
XHWK.WKTool/MinToolbar.xaml Näytä tiedosto

@@ -16,7 +16,7 @@
16 16
         <Grid>
17 17
             <Border Background="White" CornerRadius="3">
18 18
                 <!--<Grid x:Name="buttonMin" Height="25" Width="3"
19
-                        Margin="0.5"  Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
19
+                        Margin="0.5"  
20 20
                         MouseEnter="buttonMin_MouseEnter">
21 21
                     <Button.Template>
22 22
                         <ControlTemplate TargetType="{x:Type Button}">

+ 1
- 1
XHWK.WKTool/ProductVerification.xaml Näytä tiedosto

@@ -87,7 +87,7 @@
87 87
                     Background="White"
88 88
                     Click="close_click"
89 89
                     Cursor="Hand"
90
-                    Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
90
+                    >
91 91
                     <Button.Template>
92 92
                         <ControlTemplate TargetType="{x:Type Button}">
93 93
                             <Border

+ 2
- 2
XHWK.WKTool/PromptWindow.xaml Näytä tiedosto

@@ -26,10 +26,10 @@
26 26
        
27 27
         <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,30,0,0">
28 28
             <Border x:Name="borCancel" Background="#E5E5E5" CornerRadius="6" >
29
-                <Button x:Name="btnCancel" Width="104" Height="42" Content="取消" FontSize="18" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="Transparent"/>
29
+                <Button x:Name="btnCancel" Width="104" Height="42" Content="取消" FontSize="18"  Background="Transparent"/>
30 30
             </Border>
31 31
             <Border Background="#E5E5E5" CornerRadius="6" Margin="30,0,20,0">
32
-                <Button Width="104" Height="42" Content="确定" FontSize="18" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="Transparent"/>
32
+                <Button Width="104" Height="42" Content="确定" FontSize="18"  Background="Transparent"/>
33 33
             </Border>
34 34
         </StackPanel>
35 35
     </Grid>

+ 8
- 8
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml Näytä tiedosto

@@ -39,7 +39,7 @@
39 39
                     x:Name="BtnRecordingScreen"
40 40
                     Click="BtnRecordingScreen_Click"
41 41
                     Cursor="Hand"
42
-                    Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
42
+                    
43 43
                     ToolTip="开始"
44 44
                     Visibility="Visible">
45 45
                     <Button.Template>
@@ -63,7 +63,7 @@
63 63
                     x:Name="BtnRecordingScreenPause"
64 64
                     Click="BtnRecordingScreen_Click"
65 65
                     Cursor="Hand"
66
-                    Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
66
+                    
67 67
                     ToolTip="暂停"
68 68
                     Visibility="Collapsed">
69 69
                     <Button.Template>
@@ -110,7 +110,7 @@
110 110
                         x:Name="BtnStopRecordingScreen"
111 111
                         Click="BtnStopRecordingScreen_Click"
112 112
                         Cursor="Hand"
113
-                        Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
113
+                        
114 114
                         ToolTip="停止">
115 115
                         <Button.Template>
116 116
                             <ControlTemplate TargetType="{x:Type Button}">
@@ -178,7 +178,7 @@
178 178
                         x:Name="BtnPenBlue"
179 179
                         Click="BtnBrush_Click"
180 180
                         Cursor="Hand"
181
-                        Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
181
+                        
182 182
                         ToolTip="蓝笔">
183 183
                         <Button.Template>
184 184
                             <ControlTemplate TargetType="{x:Type Button}">
@@ -199,7 +199,7 @@
199 199
                         x:Name="BtnPenBlue_CL"
200 200
                         Click="BtnBrush_Click"
201 201
                         Cursor="Hand"
202
-                        Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
202
+                        
203 203
                         ToolTip="批注"
204 204
                         Visibility="Collapsed">
205 205
                         <Button.Template>
@@ -215,7 +215,7 @@
215 215
                         x:Name="BtnPenRed"
216 216
                         Click="BtnBlackPenTwo_Click"
217 217
                         Cursor="Hand"
218
-                        Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
218
+                        
219 219
                         ToolTip="批注">
220 220
                         <Button.Template>
221 221
                             <ControlTemplate TargetType="{x:Type Button}">
@@ -236,7 +236,7 @@
236 236
                         x:Name="BtnPenRed_CL"
237 237
                         Click="BtnBlackPenTwo_Click"
238 238
                         Cursor="Hand"
239
-                        Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
239
+                        
240 240
                         ToolTip="批注"
241 241
                         Visibility="Collapsed">
242 242
                         <Button.Template>
@@ -265,7 +265,7 @@
265 265
                         x:Name="BtnReturn"
266 266
                         Click="BtnReturn_Click"
267 267
                         Cursor="Hand"
268
-                        Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
268
+                        
269 269
                         ToolTip="返回">
270 270
                         <Button.Template>
271 271
                             <ControlTemplate TargetType="{x:Type Button}">

+ 2
- 2
XHWK.WKTool/UControl/Uc_VideoItem.xaml Näytä tiedosto

@@ -31,7 +31,7 @@
31 31
                             VerticalAlignment="Stretch"
32 32
                             Click="BtnVideoPlay_Click"
33 33
                             Cursor="Hand"
34
-                            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
34
+                            >
35 35
                             <Image
36 36
                                 x:Name="ImgVideo"
37 37
                                 Cursor="Hand"
@@ -60,7 +60,7 @@
60 60
                                 VerticalAlignment="Center"
61 61
                                 Click="Button_Click"
62 62
                                 Cursor="Hand"
63
-                                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
63
+                                >
64 64
                                 <Image
65 65
                                     x:Name="ImgSetUp"
66 66
                                     Source="/Images/Clip_Clip.png"

+ 3
- 3
XHWK.WKTool/UploadWindow.xaml Näytä tiedosto

@@ -50,7 +50,7 @@
50 50
                 Cursor="Hand"
51 51
                 FontSize="25"
52 52
                 Foreground="#FFFFFF"
53
-                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
53
+                 />
54 54
         </Grid>
55 55
         <Grid
56 56
             x:Name="GridTitle_Black"
@@ -74,7 +74,7 @@
74 74
                 Cursor="Hand"
75 75
                 FontSize="25"
76 76
                 Foreground="#FF333333"
77
-                Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
77
+                 />
78 78
         </Grid>
79 79
         <!--  第三行 教材  -->
80 80
         <ComboBox
@@ -132,7 +132,7 @@
132 132
             FontSize="18"
133 133
             Foreground="#FFFFFF"
134 134
             IsDefault="True"
135
-            Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
135
+            >
136 136
             <Button.Template>
137 137
                 <ControlTemplate TargetType="{x:Type Button}">
138 138
                     <Border

+ 13
- 3
XHWK.WKTool/Utils/ZPrintUtils.cs Näytä tiedosto

@@ -1,4 +1,6 @@
1
-using System.Collections.Generic;
1
+using Common.system;
2
+
3
+using System.Collections.Generic;
2 4
 using System.Drawing.Printing;
3 5
 using System.Runtime.InteropServices;
4 6
 
@@ -27,6 +29,14 @@ namespace XHWK.WKTool.Utils
27 29
             try
28 30
             {
29 31
                 fPrinters.Add(DefaultPrinter()); //默认打印机始终出现在列表的第一项
32
+            }
33
+            catch (System.Exception ex)
34
+            {
35
+                LogHelper.WriteErrLog("添加默认打印机" + ex.Message, ex);
36
+            }
37
+
38
+            try
39
+            {
30 40
                 foreach (string fPrinterName in PrinterSettings.InstalledPrinters)
31 41
                 {
32 42
                     if (!fPrinters.Contains(fPrinterName))
@@ -35,9 +45,9 @@ namespace XHWK.WKTool.Utils
35 45
                     }
36 46
                 }
37 47
             }
38
-            catch (System.Exception)
48
+            catch (System.Exception ex)
39 49
             {
40
-                throw;
50
+                LogHelper.WriteErrLog("添加其它打印机" + ex.Message, ex);
41 51
             }
42 52
             return fPrinters;
43 53
         }

+ 3
- 3
XHWK.WKTool/VideoClipWindow.xaml Näytä tiedosto

@@ -268,7 +268,7 @@
268 268
         </Grid.RowDefinitions>
269 269
         <Grid Background="#3f6fff" Grid.Row="0" MouseLeftButtonDown="Title_MouseLeftButtonDown">
270 270
             <TextBlock Text="视频剪辑" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
271
-            <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="Button_Click"/>
271
+            <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right"  Click="Button_Click"/>
272 272
         </Grid>
273 273
         <Grid x:Name="GridMovie" Grid.Row="1" Background="Black">
274 274
             <MediaElement Stretch="Fill" LoadedBehavior="Manual" Name="QS_Movie" MediaOpened="Element_MediaOpened" Loaded="QS_Movie_Loaded" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="2" Volume="1"/>
@@ -283,7 +283,7 @@
283 283
                 <ColumnDefinition Width="60*"/>
284 284
             </Grid.ColumnDefinitions>
285 285
             <Grid Grid.Column="0">
286
-                <Button Cursor="Hand" x:Name="Play" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0" Click="Play_Click" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
286
+                <Button Cursor="Hand" x:Name="Play"  Margin="0" Click="Play_Click" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
287 287
                     <StackPanel Orientation="Vertical">
288 288
                         <Image x:Name="ImgPlay" Source="/Images/Clip_Play.png" Visibility="Visible"/>
289 289
                         <Image x:Name="ImgPause" Source="/Images/Clip_Pause.png" Visibility="Collapsed"/>
@@ -346,7 +346,7 @@
346 346
             </Grid>
347 347
             <Grid Grid.Row="1" Grid.Column="2">
348 348
 
349
-                <Button x:Name="BtnClip" Cursor="Hand" Content="  剪  辑  " Foreground="White" FontSize="{Binding WordSize20}" Click="BtnClip_Click" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Center" VerticalAlignment="Center">
349
+                <Button x:Name="BtnClip" Cursor="Hand" Content="  剪  辑  " Foreground="White" FontSize="{Binding WordSize20}" Click="BtnClip_Click"  HorizontalAlignment="Center" VerticalAlignment="Center">
350 350
                     <Button.Template>
351 351
                         <ControlTemplate TargetType="{x:Type Button}">
352 352
                             <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="8" Padding="10,5">

+ 1
- 1
星火微课/星火微课-正式.iss Näytä tiedosto

@@ -3,7 +3,7 @@
3 3
 
4 4
 #define MyAppName "星火微课"  
5 5
 #define MyAppDir "xhwk"
6
-#define MyAppVersion "3.2.1"
6
+#define MyAppVersion "3.2.2"
7 7
 #define MyAppPublisher "河南星火燎原软件科技有限公司"
8 8
 #define MyAppURL "http://www.xhkjedu.com/"
9 9
 #define MySourcePath "D:\Project\CSharp\xhwkclient\XHWK.WKTool\bin\x86\Debug\"

Loading…
Peruuta
Tallenna