Browse Source

页面UI调整 截图后的图片 位置记录优化

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
1594ece2ae

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

@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
31 31
 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
32 32
 //通过使用 "*",如下所示:
33 33
 // [assembly: AssemblyVersion("1.0.*")]
34
-[assembly: AssemblyVersion("1.1.4.0")]
35
-[assembly: AssemblyFileVersion("1.1.4.0")]
34
+[assembly: AssemblyVersion("1.1.5.0")]
35
+[assembly: AssemblyFileVersion("1.1.5.0")]

+ 28
- 15
XHWK.WKTool/App.config View File

@@ -1,11 +1,11 @@
1
-<?xml version="1.0" encoding="utf-8" ?>
1
+<?xml version="1.0" encoding="utf-8"?>
2 2
 <configuration>
3
-    <startup> 
4
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
5
-    </startup>
3
+  <startup>
4
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
5
+  </startup>
6 6
   <appSettings>
7 7
     <!--0正式 1测试-->
8
-    <add key="IsDebug" value="1"/>
8
+    <add key="IsDebug" value="1" />
9 9
     <!--图片压缩等级-->
10 10
     <add key="ImageCompressionLevel" value="30" />
11 11
     <!--文件存放路径  路径\账户名\讲解名称_x.MP4-->
@@ -13,27 +13,40 @@
13 13
     <!--视频格式 1、MP4 2、FlV 3、AVI-->
14 14
     <add key="VideoType" value="1" />
15 15
     <!--声音 true 有 false 无-->
16
-    <add key="IsSound" value="true"/>
16
+    <add key="IsSound" value="true" />
17 17
     <!--图片压缩质量-->
18
-    <add key="ImageCompressionLevel" value="50"/>
18
+    <add key="ImageCompressionLevel" value="50" />
19 19
     <!--用户名-->
20 20
     <add key="userName" value="" />
21 21
     <!--记住密码-->
22 22
     <add key="isRemind" value="" />
23 23
     <!--API请求地址-->
24
-    <add key="APIRequestAddress" value="http://schoolapi.xhkjedu.com"/>
24
+    <add key="APIRequestAddress" value="http://schoolapi.xhkjedu.com" />
25 25
     <!--文件平台请求地址-->
26
-    <add key="FileRequestAddress" value="http://schoolfile.xhkjedu.com"/>
26
+    <add key="FileRequestAddress" value="http://schoolfile.xhkjedu.com" />
27 27
     <!--展示文件服务器请求地址-->
28
-    <add key="SchoolfileRequestAddress" value="http://schoolfile.xhkjedu.com"/>
28
+    <add key="SchoolfileRequestAddress" value="http://schoolfile.xhkjedu.com" />
29 29
     <!--认证请求地址-->
30
-    <add key="CertapiRequestAddress" value="http://certapi.xhkjedu.com"/>
30
+    <add key="CertapiRequestAddress" value="http://certapi.xhkjedu.com" />
31 31
     <!--摄像头位置 1.右上 2.左上 3.右下 4.左下-->
32
-    <add key="CameraPosition" value="1"/>
32
+    <add key="CameraPosition" value="1" />
33 33
     <!--上传每片大小 Mb-->
34
-    <add key="UploadSliceLen" value="1"/>
34
+    <add key="UploadSliceLen" value="1" />
35 35
     <!--版本号-->
36
-    <add key="VersionCode" value="16"/>
37
-    <add key="VersionName" value="1.1.5"/>
36
+    <add key="VersionCode" value="16" />
37
+    <add key="VersionName" value="1.1.5" />
38
+    <add key="ClientSettingsProvider.ServiceUri" value="" />
38 39
   </appSettings>
40
+  <system.web>
41
+    <membership defaultProvider="ClientAuthenticationMembershipProvider">
42
+      <providers>
43
+        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
44
+      </providers>
45
+    </membership>
46
+    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
47
+      <providers>
48
+        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
49
+      </providers>
50
+    </roleManager>
51
+  </system.web>
39 52
 </configuration>

+ 9
- 9
XHWK.WKTool/CreateAMicroLessonWindow.xaml View File

@@ -23,22 +23,22 @@
23 23
         <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Grid.ColumnSpan="2">
24 24
             <Grid>
25 25
                 <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
26
-                <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="BtnDown_Click"/>
26
+                <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="28" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
27 27
             </Grid>
28 28
         </Border>
29 29
         <!--第二行 讲解名称-->
30
-        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,1" Grid.ColumnSpan="2">
31
-            <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
32
-            <TextBlock Text="讲解名称" FontSize="18" Padding="2,15,10,0"/>
30
+        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,40,0,1" Grid.ColumnSpan="2">
31
+            <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
32
+            <TextBlock Text="讲解名称" FontSize="18" Padding="2,23,10,0"/>
33 33
             <!--输入框-->
34 34
             <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
35 35
                 <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
36 36
             </Border>
37 37
         </StackPanel>
38 38
         <!--第三行 存放路径-->
39
-        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,1" Grid.ColumnSpan="2">
40
-            <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
41
-            <TextBlock Text="存放路径" FontSize="18" Padding="2,15,10,0"/>
39
+        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,10,0,1" Grid.ColumnSpan="2">
40
+            <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
41
+            <TextBlock Text="存放路径" FontSize="18" Padding="2,23,10,0"/>
42 42
             <!--输入框-->
43 43
             <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
44 44
                 <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
@@ -62,13 +62,13 @@
62 62
             </Button>
63 63
         </StackPanel>
64 64
         <!--第四行 开始按钮-->
65
-        <Button  Cursor="Hand" Grid.Row="3" x:Name="btnStart" Content="开始" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" Click="BtnStart_Click" Grid.ColumnSpan="2">
65
+        <Button  Cursor="Hand" Grid.Row="3" x:Name="btnStart" Content="开始" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="48" Margin="10,0,10,0" Click="BtnStart_Click" Grid.ColumnSpan="2">
66 66
             <Button.Template>
67 67
                 <ControlTemplate TargetType="{x:Type Button}">
68 68
                     <Border
69 69
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
70 70
                                 BorderThickness="1"
71
-                                CornerRadius="2">
71
+                                CornerRadius="3">
72 72
                         <Border.Background>#2D8CF0</Border.Background>
73 73
                         <ContentPresenter
74 74
                                     HorizontalAlignment="Center"

+ 2
- 1
XHWK.WKTool/KeyVerification.xaml.cs View File

@@ -64,11 +64,12 @@ namespace XHWK.WKTool
64 64
                 APP.BackgroundWorkerHelper.RunWorkerAsync(InvokeActivationAddHistoryServering, InvokeActivationAddHistoryServerCompate);
65 65
                 Dispatcher.Invoke(new Action(() =>
66 66
                 {
67
+                    Hide();
67 68
                     CreateAMicroLessonWindow win = new CreateAMicroLessonWindow();
68 69
                     //win.Topmost = true;
69 70
                     win.Show();
70 71
 
71
-                    Hide();
72
+                    
72 73
                     Thread.Sleep(200);
73 74
                     Close();
74 75
                 }));

+ 10
- 10
XHWK.WKTool/LoginWindow.xaml View File

@@ -17,8 +17,8 @@
17 17
         <!--分5行-->
18 18
         <Grid.RowDefinitions>
19 19
             <RowDefinition Height="45"/>
20
-            <RowDefinition Height="70"/>
21
-            <RowDefinition Height="70"/>
20
+            <RowDefinition Height="80"/>
21
+            <RowDefinition Height="80"/>
22 22
             <RowDefinition Height="50"/>
23 23
             <RowDefinition Height="*"/>
24 24
         </Grid.RowDefinitions>
@@ -30,19 +30,19 @@
30 30
             </Grid>
31 31
         </Border>
32 32
         <!--第二行 登陆 账号-->
33
-        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="20,20,0,0">
33
+        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="20,30,0,0">
34 34
             <TextBlock Text="登陆" FontSize="18" Padding="2,15,10,0"/>
35 35
             <!--输入框-->
36
-            <Border Background="#cccbce" Width="371" Height="43" CornerRadius="3" Margin="0,0,0,1">
37
-                <TextBox x:Name="txbAccountNumber" Text="" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="369" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
36
+            <Border Background="#cccbce" Width="369" Height="43" CornerRadius="3" Margin="0,0,0,1">
37
+                <TextBox x:Name="txbAccountNumber" Text="" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="367" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
38 38
             </Border>
39 39
         </StackPanel>
40 40
         <!--第三行 密码-->
41
-        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="20,20,0,1">
41
+        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="20,30,0,1">
42 42
             <TextBlock Text="密码" FontSize="18" Padding="2,15,10,0"/>
43 43
             <!--输入框-->
44
-            <Border Background="#cccbce" Width="371" Height="43" CornerRadius="3">
45
-                <PasswordBox x:Name="pobPassword" FontSize="16" Foreground="#333333" PasswordChar="*" Padding="5,12,2,2" Width="369" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
44
+            <Border Background="#cccbce" Width="369" Height="43" CornerRadius="3">
45
+                <PasswordBox x:Name="pobPassword" FontSize="16" Foreground="#333333" PasswordChar="*" Padding="5,12,2,2" Width="367" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
46 46
             </Border>
47 47
         </StackPanel>
48 48
         <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="20,10,0,0">
@@ -53,13 +53,13 @@
53 53
         </StackPanel>
54 54
 
55 55
         <!--第五行 开始按钮-->
56
-        <Button  Cursor="Hand" Grid.Row="4" x:Name="btnStart" Content="登录" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="50" Margin="10,0,10,0" Click="BtnStart_Click">
56
+        <Button  Cursor="Hand" Grid.Row="4" x:Name="btnStart" Content="登录" FontSize="18" Foreground="#FFFFFF" FontWeight="Bold" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="48" Margin="10,0,10,0" Click="BtnStart_Click">
57 57
             <Button.Template>
58 58
                 <ControlTemplate TargetType="{x:Type Button}">
59 59
                     <Border
60 60
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
61 61
                                 BorderThickness="1"
62
-                                CornerRadius="7">
62
+                                CornerRadius="3">
63 63
                         <Border.Background>#2D8CF0</Border.Background>
64 64
                         <ContentPresenter
65 65
                                     HorizontalAlignment="Center"

+ 5
- 5
XHWK.WKTool/MessageWindow.xaml View File

@@ -7,7 +7,7 @@
7 7
         mc:Ignorable="d" 
8 8
         Title="星火微课" WindowStartupLocation="CenterScreen"
9 9
     WindowStyle="None" AllowsTransparency="True"    WindowState="Normal"
10
-    ShowInTaskbar="False" Topmost="True" ResizeMode="NoResize" 
10
+    ShowInTaskbar="False"  Topmost="True" ResizeMode="NoResize" 
11 11
         d:DesignHeight="250" Width="600" Height="220"  MouseMove="Window_MouseMove"  BorderThickness="7">
12 12
     <Window.Effect>
13 13
         <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
@@ -19,17 +19,17 @@
19 19
             <RowDefinition Height="70"/>
20 20
         </Grid.RowDefinitions>
21 21
         <Grid Grid.Row="0">
22
-            <Label x:Name="lblTitle" Content="提示" HorizontalAlignment="Left" Margin="14,20,0,0" VerticalAlignment="Top" Foreground="#FF333333" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" FontSize="17" FontWeight="Bold"/>
22
+            <Label x:Name="lblTitle" Content="提示" HorizontalAlignment="Left" Margin="14,10,0,0" VerticalAlignment="Top" Foreground="#FF333333" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" FontSize="20" FontWeight="Bold"/>
23 23
         </Grid>
24 24
         <Grid Grid.Row="1">
25
-            <TextBlock x:Name="tbkContent" Margin="20,5,20,0" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="15" Foreground="#FF919191" Grid.Row="1" HorizontalAlignment="Center" Text=""/>
25
+            <TextBlock x:Name="tbkContent" Margin="20,0,20,0" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="20" Foreground="#FF919191" Grid.Row="1" HorizontalAlignment="Center" Text=""/>
26 26
         </Grid>
27 27
         <Grid Grid.Row="2" Margin="0,0,0,0">
28 28
             <Border x:Name="borOk" Background="#2D8CF0" CornerRadius="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,30,20">
29
-                <Button x:Name="BtnOK" Width="104" Height="42" Content="确定" FontSize="17"  Background="#00000000"  BorderBrush="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="White"  Cursor="Hand" Click="BtnOK_Click"/>
29
+                <Button x:Name="BtnOK" Width="104" Height="42" Content="确定" FontSize="20"  Background="#00000000"  BorderBrush="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="White"  Cursor="Hand" Click="BtnOK_Click"/>
30 30
             </Border>
31 31
             <Border x:Name="borCancel" Background="#E5E5E5" CornerRadius="6"  HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,150,20">
32
-                <Button x:Name="BtnCancel" Width="104" Height="42" Content="取消" FontSize="17" Background="#00000000" BorderBrush="{x:Null}"  Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  Cursor="Hand" Click="BtnCancel_Click"/>
32
+                <Button x:Name="BtnCancel" Width="104" Height="42" Content="取消" FontSize="20" Background="#00000000" BorderBrush="{x:Null}"  Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  Cursor="Hand" Click="BtnCancel_Click"/>
33 33
             </Border>
34 34
         </Grid>
35 35
 

+ 1
- 0
XHWK.WKTool/MessageWindow.xaml.cs View File

@@ -1,5 +1,6 @@
1 1
 using System.Windows;
2 2
 using System.Windows.Input;
3
+using System.Windows.Media;
3 4
 
4 5
 namespace XHWK.WKTool
5 6
 {

+ 3
- 0
XHWK.WKTool/ProductVerification.xaml.cs View File

@@ -73,6 +73,7 @@ namespace XHWK.WKTool
73 73
                     }
74 74
                     Dispatcher.Invoke(new Action(() =>
75 75
                     {
76
+                        this.Hide();
76 77
                         CreateAMicroLessonWindow win = new CreateAMicroLessonWindow();
77 78
                         win.Show();
78 79
                         Close();
@@ -82,6 +83,7 @@ namespace XHWK.WKTool
82 83
                 {
83 84
                     Dispatcher.Invoke(new Action(() =>
84 85
                     {
86
+                        this.Hide();
85 87
                         KeyVerification wins = new KeyVerification
86 88
                         {
87 89
                             Topmost = true
@@ -96,6 +98,7 @@ namespace XHWK.WKTool
96 98
                 LogHelper.WriteErrLog("ProductVerification(解析失败)" + ex.Message, ex);
97 99
                 Dispatcher.Invoke(new Action(() =>
98 100
                 {
101
+                    this.Hide();
99 102
                     KeyVerification wins = new KeyVerification
100 103
                     {
101 104
                         Topmost = true

+ 1
- 1
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs View File

@@ -88,7 +88,7 @@ namespace XHWK.WKTool
88 88
 
89 89
                 borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
90 90
                 borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
91
-
91
+            flg = 0;
92 92
 
93 93
 
94 94
             k_hook = new KeyboardHookCommon();

+ 9
- 2
XHWK.WKTool/UControl/Uc_VideoItem.xaml View File

@@ -30,8 +30,15 @@
30 30
             <Image Source="/星火微课;component/Images/VideoList_OK.png"></Image>
31 31
         </Button>
32 32
         <Label x:Name="lblDateSize" Content="2020-10-10 10:10:00|1000.00MB" HorizontalAlignment="Center" Margin="0,205,0,0" VerticalAlignment="Top" Height="30" Width="240" Foreground="#FF9A9A9A" FontSize="13" HorizontalContentAlignment="Center"/>
33
-        <Button x:Name="BtnUpload" Content="上传" HorizontalAlignment="Left" Margin="25,248,0,0" VerticalAlignment="Top" Width="90" Height="34" Background="#FF3492F4" Foreground="White" FontSize="18" Click="BtnUpload_Click"/>
34
-        <Button x:Name="BtnDelVideo" Content="删除" HorizontalAlignment="Right" Margin="0,248,25,0" VerticalAlignment="Top" Width="90" Height="34" Foreground="White" FontSize="18" Background="#FFF0582C" Click="BtnDelVideo_Click"/>
33
+        <Border CornerRadius="3" HorizontalAlignment="Left" Margin="25,248,0,0" VerticalAlignment="Top" Width="90" Height="40" Background="#5399ff">
34
+            <Button x:Name="BtnUpload" Content="上传" HorizontalAlignment="Left"  Width="90" Height="40" Background="Transparent" Foreground="White" FontSize="18" Click="BtnUpload_Click"  Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"/>
35
+        </Border>
36
+        <Border CornerRadius="3" Width="90" Height="40" Background="#FFF0582C" HorizontalAlignment="Right" Margin="0,248,25,0" VerticalAlignment="Top">
35 37
 
38
+
39
+            <Button x:Name="BtnDelVideo" Content="删除"  Width="90" Height="40" Foreground="White" FontSize="18" Background="Transparent" Click="BtnDelVideo_Click"  Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
40
+      
41
+        </Button>
42
+        </Border>
36 43
     </Grid>
37 44
 </UserControl>

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

@@ -216,7 +216,7 @@
216 216
 
217 217
                 <!--第二行-->
218 218
 
219
-                <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0,0,5" HorizontalAlignment="Left">
219
+                <StackPanel  Grid.Row="1" Orientation="Horizontal" Margin="10,0,0,5" HorizontalAlignment="Left">
220 220
                     <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
221 221
                         <StackPanel Orientation="Vertical">
222 222
                             <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
@@ -279,7 +279,7 @@
279 279
                             <TextBlock Text="上传" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
280 280
                         </StackPanel>
281 281
                     </Button>-->
282
-                    <Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
282
+                    <Button Cursor="Hand"  x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
283 283
                         <StackPanel Orientation="Vertical">
284 284
                             <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Visible"/>
285 285
                             <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Collapsed"/>
@@ -619,7 +619,7 @@
619 619
                 </Border>
620 620
             </Grid>
621 621
 
622
-            <Grid x:Name="GridMyVideo" Grid.Row="1" Margin="0" Background="White" Visibility="Visible">
622
+            <Grid x:Name="GridMyVideo" Grid.Row="1" Margin="0" Background="White" Visibility="Collapsed">
623 623
                 <Grid.RowDefinitions>
624 624
                     <RowDefinition Height="*"/>
625 625
                     <RowDefinition Height="50"/>

+ 8
- 5
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

@@ -933,16 +933,17 @@ namespace XHWK.WKTool
933 933
                             X = 0.1,
934 934
                             Y = 0.1
935 935
                         };
936
-                        APP.PageDrawList[APP.pageData.currpage - 1].ImageSizes = new ScaleTransform
937
-                        {
938
-                            CenterX = 475,
939
-                            CenterY = 538
940
-                        };
936
+                     
941 937
 
942 938
                         APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
943 939
                         imgCanvas.Source = bitImg;
944 940
                         imgCanvas.Width = bitImg.Width;
945 941
                         imgCanvas.Height = bitImg.Height;
942
+                        APP.PageDrawList[APP.pageData.currpage - 1].ImageSizes = new ScaleTransform
943
+                        {
944
+                            CenterX = imgCanvas.Width,
945
+                            CenterY = imgCanvas.Height
946
+                        };
946 947
                         ImgPrint.Visibility = Visibility.Visible;//截图成功可打印
947 948
                         ImgPrintTwo.Visibility = Visibility.Collapsed;
948 949
                         btnPrint.IsEnabled = true;
@@ -971,6 +972,8 @@ namespace XHWK.WKTool
971 972
         private void imgCanvas_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
972 973
         {
973 974
             imgCanvas.Source = null;
975
+            APP.PageDrawList[APP.pageData.currpage - 1].PdfImagePath = null;
976
+            APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath = null;
974 977
         }
975 978
         /// <summary>
976 979
         /// 导入事件

+ 1
- 0
XHWK.WKTool/XHWK.WKTool.csproj View File

@@ -90,6 +90,7 @@
90 90
     <Reference Include="System.Data" />
91 91
     <Reference Include="System.Drawing" />
92 92
     <Reference Include="System.Management" />
93
+    <Reference Include="System.Web.Extensions" />
93 94
     <Reference Include="System.Windows.Forms" />
94 95
     <Reference Include="System.Xml" />
95 96
     <Reference Include="Microsoft.CSharp" />

Loading…
Cancel
Save