Browse Source

最新版本

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
35eef3f411

+ 2
- 2
XHWK.WKTool/App.config View File

@@ -33,8 +33,8 @@
33 33
     <!--上传每片大小 Mb-->
34 34
     <add key="UploadSliceLen" value="1" />
35 35
     <!--版本号-->
36
-    <add key="VersionCode" value="21" />
37
-    <add key="VersionName" value="1.2.0" />
36
+    <add key="VersionCode" value="23" />
37
+    <add key="VersionName" value="1.2.2" />
38 38
     <add key="ClientSettingsProvider.ServiceUri" value="" />
39 39
   </appSettings>
40 40
   <system.web>

+ 2
- 2
XHWK.WKTool/Properties/AssemblyInfo.cs View File

@@ -49,5 +49,5 @@ using System.Windows;
49 49
 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
50 50
 //通过使用 "*",如下所示:
51 51
 // [assembly: AssemblyVersion("1.0.*")]
52
-[assembly: AssemblyVersion("1.2.0.0")]
53
-[assembly: AssemblyFileVersion("1.2.0.0")]
52
+[assembly: AssemblyVersion("1.2.2.0")]
53
+[assembly: AssemblyFileVersion("1.2.2.0")]

+ 44
- 44
XHWK.WKTool/XHMicroLessonSystemWindow.xaml View File

@@ -355,45 +355,7 @@
355 355
                 <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,0"/>
356 356
                 <!--<TextBlock x:Name="txbTime" Text="123456" FontSize="20" Foreground="#000000" Margin="0,0,0,10" HorizontalAlignment="Left" VerticalAlignment="Bottom"/>-->
357 357
             </Grid>
358
-            <!--页码-->
359
-            <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
360
-                <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center" Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
361
-                    <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
362
-                    x:Name="last_button"
363
-                    Width="60" Height="20"
364
-                    Click="last_button_Click">
365
-
366
-                        <Button.Content>
367
-                            <StackPanel>
368
-                                <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
369
-                            </StackPanel>
370
-                        </Button.Content>
371
-                    </Button>
372
-                    <Grid Width="60"  Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
373
-                        <Grid.RowDefinitions>
374
-                            <RowDefinition Height="311*"/>
375
-                            <RowDefinition Height="483*"/>
376
-                        </Grid.RowDefinitions>
377
-                        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
378
-                            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
379
-                                <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
380
-                                <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
381
-                                <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
382
-                            </StackPanel>
383
-                        </StackPanel>
384
-                    </Grid>
385
-                    <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
386
-                    x:Name="next_btn"  Background="Transparent"
387
-                    Width="60" Height="20"
388
-                    Click="next_btn_Click">
389
-                        <Button.Content>
390
-                            <StackPanel>
391
-                                <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
392
-                            </StackPanel>
393
-                        </Button.Content>
394
-                    </Button>
395
-                </StackPanel>
396
-            </Grid>
358
+            
397 359
             <!--设置-->
398 360
             <ScrollViewer x:Name="gridSetUp" Grid.Row="1" VerticalScrollBarVisibility="Auto" Visibility="Collapsed">
399 361
                 <Grid Grid.Row="1"   Background="#FFFFFF" >
@@ -668,13 +630,51 @@
668 630
                     <RadioButton Cursor="Hand" x:Name="rbnFine" Content=" 细" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" IsChecked="True" Click="RbnFine_Click"/>
669 631
                     <RadioButton Cursor="Hand" x:Name="rbnIn" Content=" 中" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" Click="RbnIn_Click"/>
670 632
                     <RadioButton Cursor="Hand" x:Name="rbnCrude" Content=" 粗" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" Click="RbnCrude_Click"/>
671
-                    <StackPanel Orientation="Horizontal">
672
-                        <TextBlock Text="摄像头:" FontSize="14" Padding="20,3,0,0"/>
673
-                        <RadioButton Cursor="Hand" x:Name="rbnOpen" Content=" 开" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" Click="RbnOpen_Click"/>
674
-                        <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content=" 关" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
675
-                    </StackPanel>
676 633
                 </StackPanel>
634
+                <!--页码-->
635
+                <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed" MouseLeftButtonDown="Window_MouseLeftButtonDown_1" HorizontalAlignment="Center">
636
+                    <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center" Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
637
+                        <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
638
+                    x:Name="last_button"
639
+                    Width="60" Height="20"
640
+                    Click="last_button_Click">
641
+
642
+                            <Button.Content>
643
+                                <StackPanel>
644
+                                    <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
645
+                                </StackPanel>
646
+                            </Button.Content>
647
+                        </Button>
648
+                        <Grid Width="60"  Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
649
+                            <Grid.RowDefinitions>
650
+                                <RowDefinition Height="311*"/>
651
+                                <RowDefinition Height="483*"/>
652
+                            </Grid.RowDefinitions>
653
+                            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
654
+                                <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
655
+                                    <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
656
+                                    <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
657
+                                    <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
658
+                                </StackPanel>
659
+                            </StackPanel>
660
+                        </Grid>
661
+                        <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
662
+                    x:Name="next_btn"  Background="Transparent"
663
+                    Width="60" Height="20"
664
+                    Click="next_btn_Click">
665
+                            <Button.Content>
666
+                                <StackPanel>
667
+                                    <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
668
+                                </StackPanel>
669
+                            </Button.Content>
670
+                        </Button>
671
+                    </StackPanel>
672
+                </Grid>
673
+
677 674
                 <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,10,5">
675
+                    <TextBlock Text="摄像头:" FontSize="14" Padding="20,3,0,0"/>
676
+                    <RadioButton Cursor="Hand" x:Name="rbnOpen" Content=" 开" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" Click="RbnOpen_Click"/>
677
+                    <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content=" 关"  Style="{StaticResource radBase}" FontSize="14" Margin="5,4,20,0" IsChecked="True" Click="RbnTurnOff_Click"/>
678 678
                     <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,4,0,0"/>
679 679
                     <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,4,5,0"/>
680 680
                 </StackPanel>

+ 42
- 2
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

@@ -106,6 +106,10 @@ namespace XHWK.WKTool
106 106
         #endregion
107 107
         private double screeHeight = SystemParameters.FullPrimaryScreenHeight;
108 108
         private double screeWidth = SystemParameters.FullPrimaryScreenWidth;
109
+        /// <summary>
110
+        /// 键盘钩子
111
+        /// </summary>
112
+        private KeyboardHookCommon k_hook;
109 113
         #endregion
110 114
 
111 115
         #region 初始化
@@ -183,8 +187,9 @@ namespace XHWK.WKTool
183 187
             APP.pageData.currpage = APP.pageData.pagenum;
184 188
             btnStop.IsEnabled = false;//停止录制按钮不可点击
185 189
             #endregion
186
-
187
-
190
+            k_hook = new KeyboardHookCommon();
191
+            k_hook.KeyDownEvent += K_hook_KeyDownEvent;
192
+            k_hook.Start();//安装键盘钩子
188 193
 
189 194
             APP.CameraPosition = FileToolsCommon.GetConfigValue("CameraPosition");
190 195
             //创建 DrawingAttributes 类的一个实例  
@@ -204,6 +209,39 @@ namespace XHWK.WKTool
204 209
             ImgPDFPath = new string[300];
205 210
 
206 211
         }
212
+        /// <summary>
213
+        /// 快捷键
214
+        /// </summary>
215
+        /// <param name="sender"></param>
216
+        /// <param name="e"></param>
217
+        private void K_hook_KeyDownEvent(object sender, System.Windows.Forms.KeyEventArgs e)
218
+        {
219
+            if (e.KeyValue == (int)System.Windows.Forms.Keys.Left)
220
+            {
221
+                if(APP.pageData.currpage > 1 )
222
+                {
223
+                    //上一页
224
+                    last_button_Click(null, null);
225
+                }
226
+            }
227
+            if (e.KeyValue == (int)System.Windows.Forms.Keys.Right)
228
+            {
229
+                if ( APP.pageData.currpage < APP.pageData.pagenum)
230
+                {
231
+                    //下一页
232
+                    next_btn_Click(null, null);
233
+                }
234
+            }
235
+            //if (e.KeyValue == (int)System.Windows.Forms.Keys.Delete)
236
+            //{
237
+            //    if (APP.pageData.currpage < APP.pageData.pagenum)
238
+            //    {
239
+            //        //下一页
240
+            //        next_btn_Click(null, null);
241
+            //    }
242
+            //}
243
+        }
244
+
207 245
         /// <summary>
208 246
         /// 开始
209 247
         /// </summary>
@@ -3510,6 +3548,7 @@ namespace XHWK.WKTool
3510 3548
                 //}
3511 3549
                 APP.pageData.currpage -= 1;
3512 3550
                 myblackboard.changepage(APP.pageData.currpage - 1);
3551
+                scroMain.ScrollToVerticalOffset(0);
3513 3552
                 if (btnImport.IsEnabled == true)
3514 3553
                 {
3515 3554
                     ///截图可用
@@ -3611,6 +3650,7 @@ namespace XHWK.WKTool
3611 3650
                 //}
3612 3651
                 APP.pageData.currpage += 1;
3613 3652
                 myblackboard.changepage(APP.pageData.currpage - 1);
3653
+                scroMain.ScrollToVerticalOffset(0);
3614 3654
                 if (btnImport.IsEnabled == true)
3615 3655
                 {
3616 3656
                     ///截图可用

Loading…
Cancel
Save