Browse Source

Merge remote-tracking branch 'origin/zhangxueyang' into zyy

# Conflicts:
#	XHWK.WKTool/UControl/Uc_VideoItem.xaml
tags/录制修改前
耀 4 years ago
parent
commit
fbfade160f

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

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

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

1
-<?xml version="1.0" encoding="utf-8" ?>
1
+<?xml version="1.0" encoding="utf-8"?>
2
 <configuration>
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
   <appSettings>
6
   <appSettings>
7
     <!--0正式 1测试-->
7
     <!--0正式 1测试-->
8
-    <add key="IsDebug" value="1"/>
8
+    <add key="IsDebug" value="1" />
9
     <!--图片压缩等级-->
9
     <!--图片压缩等级-->
10
     <add key="ImageCompressionLevel" value="30" />
10
     <add key="ImageCompressionLevel" value="30" />
11
     <!--文件存放路径  路径\账户名\讲解名称_x.MP4-->
11
     <!--文件存放路径  路径\账户名\讲解名称_x.MP4-->
13
     <!--视频格式 1、MP4 2、FlV 3、AVI-->
13
     <!--视频格式 1、MP4 2、FlV 3、AVI-->
14
     <add key="VideoType" value="1" />
14
     <add key="VideoType" value="1" />
15
     <!--声音 true 有 false 无-->
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
     <add key="userName" value="" />
20
     <add key="userName" value="" />
21
     <!--记住密码-->
21
     <!--记住密码-->
22
     <add key="isRemind" value="" />
22
     <add key="isRemind" value="" />
23
     <!--API请求地址-->
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
     <!--摄像头位置 1.右上 2.左上 3.右下 4.左下-->
31
     <!--摄像头位置 1.右上 2.左上 3.右下 4.左下-->
32
-    <add key="CameraPosition" value="1"/>
32
+    <add key="CameraPosition" value="1" />
33
     <!--上传每片大小 Mb-->
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="17" />
37
+    <add key="VersionName" value="1.1.6" />
38
+    <add key="ClientSettingsProvider.ServiceUri" value="" />
38
   </appSettings>
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
 </configuration>
52
 </configuration>

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

23
         <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Grid.ColumnSpan="2">
23
         <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Grid.ColumnSpan="2">
24
             <Grid>
24
             <Grid>
25
                 <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
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
             </Grid>
27
             </Grid>
28
         </Border>
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
             <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
34
             <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
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"/>
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
             </Border>
36
             </Border>
37
         </StackPanel>
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
             <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
43
             <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
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"/>
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
             </Button>
62
             </Button>
63
         </StackPanel>
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
             <Button.Template>
66
             <Button.Template>
67
                 <ControlTemplate TargetType="{x:Type Button}">
67
                 <ControlTemplate TargetType="{x:Type Button}">
68
                     <Border
68
                     <Border
69
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
69
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
70
                                 BorderThickness="1"
70
                                 BorderThickness="1"
71
-                                CornerRadius="2">
71
+                                CornerRadius="3">
72
                         <Border.Background>#2D8CF0</Border.Background>
72
                         <Border.Background>#2D8CF0</Border.Background>
73
                         <ContentPresenter
73
                         <ContentPresenter
74
                                     HorizontalAlignment="Center"
74
                                     HorizontalAlignment="Center"

BIN
XHWK.WKTool/Images/Toobar30.png View File


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

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

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

17
         <!--分5行-->
17
         <!--分5行-->
18
         <Grid.RowDefinitions>
18
         <Grid.RowDefinitions>
19
             <RowDefinition Height="45"/>
19
             <RowDefinition Height="45"/>
20
-            <RowDefinition Height="70"/>
21
-            <RowDefinition Height="70"/>
20
+            <RowDefinition Height="80"/>
21
+            <RowDefinition Height="80"/>
22
             <RowDefinition Height="50"/>
22
             <RowDefinition Height="50"/>
23
             <RowDefinition Height="*"/>
23
             <RowDefinition Height="*"/>
24
         </Grid.RowDefinitions>
24
         </Grid.RowDefinitions>
30
             </Grid>
30
             </Grid>
31
         </Border>
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
             <TextBlock Text="登陆" FontSize="18" Padding="2,15,10,0"/>
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
             </Border>
38
             </Border>
39
         </StackPanel>
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
             <TextBlock Text="密码" FontSize="18" Padding="2,15,10,0"/>
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
             </Border>
46
             </Border>
47
         </StackPanel>
47
         </StackPanel>
48
         <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="20,10,0,0">
48
         <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="20,10,0,0">
53
         </StackPanel>
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
             <Button.Template>
57
             <Button.Template>
58
                 <ControlTemplate TargetType="{x:Type Button}">
58
                 <ControlTemplate TargetType="{x:Type Button}">
59
                     <Border
59
                     <Border
60
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
60
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
61
                                 BorderThickness="1"
61
                                 BorderThickness="1"
62
-                                CornerRadius="7">
62
+                                CornerRadius="3">
63
                         <Border.Background>#2D8CF0</Border.Background>
63
                         <Border.Background>#2D8CF0</Border.Background>
64
                         <ContentPresenter
64
                         <ContentPresenter
65
                                     HorizontalAlignment="Center"
65
                                     HorizontalAlignment="Center"

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

7
         mc:Ignorable="d" 
7
         mc:Ignorable="d" 
8
         Title="星火微课" WindowStartupLocation="CenterScreen"
8
         Title="星火微课" WindowStartupLocation="CenterScreen"
9
     WindowStyle="None" AllowsTransparency="True"    WindowState="Normal"
9
     WindowStyle="None" AllowsTransparency="True"    WindowState="Normal"
10
-    ShowInTaskbar="False" Topmost="True" ResizeMode="NoResize" 
10
+    ShowInTaskbar="False"  Topmost="True" ResizeMode="NoResize" 
11
         d:DesignHeight="250" Width="600" Height="220"  MouseMove="Window_MouseMove"  BorderThickness="7">
11
         d:DesignHeight="250" Width="600" Height="220"  MouseMove="Window_MouseMove"  BorderThickness="7">
12
     <Window.Effect>
12
     <Window.Effect>
13
         <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
13
         <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
19
             <RowDefinition Height="70"/>
19
             <RowDefinition Height="70"/>
20
         </Grid.RowDefinitions>
20
         </Grid.RowDefinitions>
21
         <Grid Grid.Row="0">
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
         </Grid>
23
         </Grid>
24
         <Grid Grid.Row="1">
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
         </Grid>
26
         </Grid>
27
         <Grid Grid.Row="2" Margin="0,0,0,0">
27
         <Grid Grid.Row="2" Margin="0,0,0,0">
28
             <Border x:Name="borOk" Background="#2D8CF0" CornerRadius="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,30,20">
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
             </Border>
30
             </Border>
31
             <Border x:Name="borCancel" Background="#E5E5E5" CornerRadius="6"  HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,150,20">
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
             </Border>
33
             </Border>
34
         </Grid>
34
         </Grid>
35
 
35
 

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

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

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

385
             {
385
             {
386
                 APP.W_ScreenRecordingToolbarWindow.flg = 1;
386
                 APP.W_ScreenRecordingToolbarWindow.flg = 1;
387
             }
387
             }
388
+            blackboard_canvas.Strokes.Clear();
388
             APP.W_ScreenRecordingToolbarWindow.ReturnPractice();
389
             APP.W_ScreenRecordingToolbarWindow.ReturnPractice();
389
             //Hide();
390
             //Hide();
390
         }
391
         }

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

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

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

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

+ 3
- 5
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs View File

88
 
88
 
89
                 borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
89
                 borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
90
                 borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
90
                 borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
91
-
91
+            flg = 0;
92
 
92
 
93
 
93
 
94
             k_hook = new KeyboardHookCommon();
94
             k_hook = new KeyboardHookCommon();
543
                 Directory.CreateDirectory(tempPath);
543
                 Directory.CreateDirectory(tempPath);
544
             }
544
             }
545
             string imagePath = Path.Combine(tempPath, time + ".jpg");
545
             string imagePath = Path.Combine(tempPath, time + ".jpg");
546
-            this.Hide();
546
+
547
             ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);
547
             ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);
548
-            this.Show();
548
+
549
             try
549
             try
550
             {
550
             {
551
                 if (flg == 11)
551
                 if (flg == 11)
826
             }
826
             }
827
             string imagePath = Path.Combine(tempPath, time + ".jpg");
827
             string imagePath = Path.Combine(tempPath, time + ".jpg");
828
 
828
 
829
-            this.Hide();
830
             ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);
829
             ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);
831
-            this.Show();
832
             try
830
             try
833
             {
831
             {
834
                 if (flg == 10)
832
                 if (flg == 10)

+ 11
- 4
XHWK.WKTool/UControl/Uc_VideoItem.xaml View File

5
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
5
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
6
              xmlns:local="clr-namespace:XHWK.WKTool.UControl"
6
              xmlns:local="clr-namespace:XHWK.WKTool.UControl"
7
              mc:Ignorable="d" 
7
              mc:Ignorable="d" 
8
-             d:DesignHeight="270" d:DesignWidth="250">
8
+             d:DesignHeight="260" d:DesignWidth="250">
9
     <Grid>
9
     <Grid>
10
         <Button x:Name="BtnVideoPlay" HorizontalAlignment="Center" Width="200" Height="130" Margin="25,10,25,0" VerticalAlignment="Top" Cursor="Hand" Click="BtnVideoPlay_Click">
10
         <Button x:Name="BtnVideoPlay" HorizontalAlignment="Center" Width="200" Height="130" Margin="25,10,25,0" VerticalAlignment="Top" Cursor="Hand" Click="BtnVideoPlay_Click">
11
             <Image x:Name="ImgVideo" VerticalAlignment="Top"  Width="200" Height="130" Margin="0,0,0,0" Cursor="Hand" Stretch="Fill"/>
11
             <Image x:Name="ImgVideo" VerticalAlignment="Top"  Width="200" Height="130" Margin="0,0,0,0" Cursor="Hand" Stretch="Fill"/>
29
             </Button.Resources>
29
             </Button.Resources>
30
             <Image Source="/星火微课;component/Images/VideoList_OK.png"></Image>
30
             <Image Source="/星火微课;component/Images/VideoList_OK.png"></Image>
31
         </Button>
31
         </Button>
32
-        <Label x:Name="lblDateSize" Content="2020-10-10 10:10:00|1000.00MB" HorizontalAlignment="Center" Margin="0,180,0,0" VerticalAlignment="Top" Height="30" Width="240" Foreground="#FF9A9A9A" FontSize="13" HorizontalContentAlignment="Center"/>
33
-        <Button x:Name="BtnUpload" Content="上传" HorizontalAlignment="Left" Margin="25,220,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,220,25,0" VerticalAlignment="Top" Width="90" Height="34" Foreground="White" FontSize="18" Background="#FFF0582C" Click="BtnDelVideo_Click"/>
35
 
32
 
33
+        <Label x:Name="lblDateSize" Content="2020-10-10 10:10:00|1000.00MB" HorizontalAlignment="Center" Margin="0,175,0,0" VerticalAlignment="Top" Height="30" Width="240" Foreground="#FF9A9A9A" FontSize="13" HorizontalContentAlignment="Center"/>
34
+        <Border x:Name="BorUploadBtn" CornerRadius="3" HorizontalAlignment="Left" Margin="25,210,0,0" VerticalAlignment="Top" Width="90" Height="40" Background="#FF3492F4">
35
+            <Button x:Name="BtnUpload" Content="上传" HorizontalAlignment="Left"  Width="90" Height="40" Foreground="White" FontSize="18" Click="BtnUpload_Click"  Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"/>
36
+        </Border>
37
+        <Border CornerRadius="3" Width="90" Height="40" Background="#FFF0582C" HorizontalAlignment="Right" Margin="0,210,25,0" VerticalAlignment="Top">
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
     </Grid>
43
     </Grid>
37
 </UserControl>
44
 </UserControl>

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

75
             if (VideoModel.IsUpload)
75
             if (VideoModel.IsUpload)
76
             {
76
             {
77
                 //BtnUpload.Visibility = Visibility.Hidden;
77
                 //BtnUpload.Visibility = Visibility.Hidden;
78
-                BtnUpload.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#9EA0A7"));
78
+                BorUploadBtn.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#DDDDDD"));
79
                 BtnUpload.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#999999"));
79
                 BtnUpload.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#999999"));
80
                 BtnUpload.IsEnabled = false;
80
                 BtnUpload.IsEnabled = false;
81
             }
81
             }
355
             {
355
             {
356
                 W_UploadWindow.Close();
356
                 W_UploadWindow.Close();
357
                 //BtnUpload.Visibility = Visibility.Hidden;
357
                 //BtnUpload.Visibility = Visibility.Hidden;
358
-                BtnUpload.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#9EA0A7"));
358
+                BorUploadBtn.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#DDDDDD"));
359
                 BtnUpload.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#999999"));
359
                 BtnUpload.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#999999"));
360
                 BtnUpload.IsEnabled = false;
360
                 BtnUpload.IsEnabled = false;
361
             }
361
             }

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

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
                     <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
220
                     <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
221
                         <StackPanel Orientation="Vertical">
221
                         <StackPanel Orientation="Vertical">
222
                             <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
222
                             <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
279
                             <TextBlock Text="上传" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
279
                             <TextBlock Text="上传" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
280
                         </StackPanel>
280
                         </StackPanel>
281
                     </Button>-->
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
                         <StackPanel Orientation="Vertical">
283
                         <StackPanel Orientation="Vertical">
284
                             <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Visible"/>
284
                             <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Visible"/>
285
                             <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Collapsed"/>
285
                             <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Collapsed"/>
619
                 </Border>
619
                 </Border>
620
             </Grid>
620
             </Grid>
621
 
621
 
622
-            <Grid x:Name="GridMyVideo" Grid.Row="1" Margin="0" Background="White" Visibility="Hidden">
622
+
623
+            <Grid x:Name="GridMyVideo" Grid.Row="1" Margin="0" Background="White" Visibility="Collapsed">
623
                 <Grid.RowDefinitions>
624
                 <Grid.RowDefinitions>
624
                     <RowDefinition Height="*"/>
625
                     <RowDefinition Height="*"/>
625
                     <RowDefinition Height="50"/>
626
                     <RowDefinition Height="50"/>

+ 19
- 10
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

933
                             X = 0.1,
933
                             X = 0.1,
934
                             Y = 0.1
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
                         APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
938
                         APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
943
                         imgCanvas.Source = bitImg;
939
                         imgCanvas.Source = bitImg;
944
                         imgCanvas.Width = bitImg.Width;
940
                         imgCanvas.Width = bitImg.Width;
945
                         imgCanvas.Height = bitImg.Height;
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
                         ImgPrint.Visibility = Visibility.Visible;//截图成功可打印
947
                         ImgPrint.Visibility = Visibility.Visible;//截图成功可打印
947
                         ImgPrintTwo.Visibility = Visibility.Collapsed;
948
                         ImgPrintTwo.Visibility = Visibility.Collapsed;
948
                         btnPrint.IsEnabled = true;
949
                         btnPrint.IsEnabled = true;
971
         private void imgCanvas_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
972
         private void imgCanvas_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
972
         {
973
         {
973
             imgCanvas.Source = null;
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
         /// <summary>
978
         /// <summary>
976
         /// 导入事件
979
         /// 导入事件
1151
                         }
1154
                         }
1152
                             catch (Exception ex)
1155
                             catch (Exception ex)
1153
                             {
1156
                             {
1154
-                                MessageWindow.Show("文件无效或者文件被加密!");
1157
+                            Dispatcher.Invoke(new Action(() =>
1158
+                            {
1159
+                                MessageWindow.Show("文件无效或处于打开状态!");
1160
+                            }));
1161
+                            
1155
                                 LogHelper.WriteErrLog("【打开ppt】(OpenDialog PPT)" + ex.Message, ex);
1162
                                 LogHelper.WriteErrLog("【打开ppt】(OpenDialog PPT)" + ex.Message, ex);
1156
                             }
1163
                             }
1157
                         }
1164
                         }
1245
                                 ImgScreenshotTwo.Visibility = Visibility.Collapsed;
1252
                                 ImgScreenshotTwo.Visibility = Visibility.Collapsed;
1246
                                 btnScreenshot.IsEnabled = true;
1253
                                 btnScreenshot.IsEnabled = true;
1247
                             }
1254
                             }
1248
-                            APP.myloading.Hide();
1249
-                        }
1255
+                    }
1250
                         else//word
1256
                         else//word
1251
                         {
1257
                         {
1252
                             try
1258
                             try
1313
                         }
1319
                         }
1314
                             catch (Exception ex)
1320
                             catch (Exception ex)
1315
                             {
1321
                             {
1316
-                                APP.myloading.Hide();
1317
-                                LogHelper.WriteErrLog("【XHMicroLessonSystemWindow】(OpenDialog 导入文档)" + ex.Message, ex);
1322
+                            Dispatcher.Invoke(new Action(() =>
1323
+                            {
1324
+                                MessageWindow.Show("文件无效或处于打开状态!");
1325
+                            }));
1326
+                            LogHelper.WriteErrLog("【XHMicroLessonSystemWindow】(OpenDialog 导入文档)" + ex.Message, ex);
1318
                             }
1327
                             }
1319
                         }
1328
                         }
1320
                     }
1329
                     }

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

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

Loading…
Cancel
Save