Browse Source

zhao:新版微课

tags/录制修改前
耀 3 years ago
parent
commit
70f4da6d78
100 changed files with 1819 additions and 713 deletions
  1. 21
    0
      XHWK.Model/Model_Page.cs
  2. 3
    1
      XHWK.Model/Model_ResourceAdd.cs
  3. 2
    0
      XHWK.Model/Model_UserInfo.cs
  4. 67
    67
      XHWK.WKTool/App.config
  5. 5
    2
      XHWK.WKTool/App.cs
  6. 7
    11
      XHWK.WKTool/App.xaml
  7. 128
    50
      XHWK.WKTool/CreateAMicroLessonWindow.xaml
  8. 183
    62
      XHWK.WKTool/CreateAMicroLessonWindow.xaml.cs
  9. 2
    2
      XHWK.WKTool/DAL/DAL_Upload.cs
  10. 1
    0
      XHWK.WKTool/DAL/Interface.cs
  11. 88
    49
      XHWK.WKTool/DeviceWindow.xaml
  12. 43
    15
      XHWK.WKTool/DeviceWindow.xaml.cs
  13. 1
    0
      XHWK.WKTool/FileDirectoryWindow.xaml.cs
  14. 6
    0
      XHWK.WKTool/JieTuWindow.xaml.cs
  15. 1
    0
      XHWK.WKTool/KeyVerification.xaml.cs
  16. 86
    58
      XHWK.WKTool/LoginWindow.xaml
  17. 26
    21
      XHWK.WKTool/LoginWindow.xaml.cs
  18. 22
    15
      XHWK.WKTool/MinToolbar.xaml.cs
  19. 1
    1
      XHWK.WKTool/PracticeWindow.xaml.cs
  20. 1
    0
      XHWK.WKTool/ProductVerification.xaml.cs
  21. 2
    2
      XHWK.WKTool/Properties/AssemblyInfo.cs
  22. 194
    128
      XHWK.WKTool/ScreenRecordingToolbarWindow.xaml
  23. 176
    229
      XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs
  24. 99
    0
      XHWK.WKTool/Skin/SkinConfig.cs
  25. 328
    0
      XHWK.WKTool/Skin/SkinDictionary_TechnologyBlue.xaml
  26. 326
    0
      XHWK.WKTool/Skin/SkinDictionary_White.xaml
  27. BIN
      XHWK.WKTool/SkinImages/ImgCarousel/CM_Carousel.gif
  28. BIN
      XHWK.WKTool/SkinImages/ImgCarousel/CM_Carousel_1.png
  29. BIN
      XHWK.WKTool/SkinImages/ImgCarousel/CM_Carousel_2.png
  30. BIN
      XHWK.WKTool/SkinImages/ImgCarousel/CM_Carousel_3.png
  31. BIN
      XHWK.WKTool/SkinImages/ImgCarousel/CM_RightDown.png
  32. BIN
      XHWK.WKTool/SkinImages/Other/Dev_AcousticWave1.gif
  33. BIN
      XHWK.WKTool/SkinImages/Other/Dev_AcousticWave2.gif
  34. BIN
      XHWK.WKTool/SkinImages/SR/SR_Out.png
  35. BIN
      XHWK.WKTool/SkinImages/SR/SR_Out_MI.png
  36. BIN
      XHWK.WKTool/SkinImages/SR/SR_Out_N.png
  37. BIN
      XHWK.WKTool/SkinImages/SR/SR_Pause.png
  38. BIN
      XHWK.WKTool/SkinImages/SR/SR_Pause_MI.png
  39. BIN
      XHWK.WKTool/SkinImages/SR/SR_PenBlue.png
  40. BIN
      XHWK.WKTool/SkinImages/SR/SR_PenBlue_CL.png
  41. BIN
      XHWK.WKTool/SkinImages/SR/SR_PenBlue_MI.png
  42. BIN
      XHWK.WKTool/SkinImages/SR/SR_PenBlue_N.png
  43. BIN
      XHWK.WKTool/SkinImages/SR/SR_PenRed.png
  44. BIN
      XHWK.WKTool/SkinImages/SR/SR_PenRed_CL.png
  45. BIN
      XHWK.WKTool/SkinImages/SR/SR_PenRed_MI.png
  46. BIN
      XHWK.WKTool/SkinImages/SR/SR_PenRed_N.png
  47. BIN
      XHWK.WKTool/SkinImages/SR/SR_Start.png
  48. BIN
      XHWK.WKTool/SkinImages/SR/SR_Start_MI.png
  49. BIN
      XHWK.WKTool/SkinImages/SR/SR_Stop.png
  50. BIN
      XHWK.WKTool/SkinImages/SR/SR_Stop_MI.png
  51. BIN
      XHWK.WKTool/SkinImages/SR/SR_Stop_N.png
  52. BIN
      XHWK.WKTool/SkinImages/Skin/Skin_Select.png
  53. BIN
      XHWK.WKTool/SkinImages/Skin/Skin_TechnologyBlue.png
  54. BIN
      XHWK.WKTool/SkinImages/Skin/Skin_TechnologyBlue_MI.png
  55. BIN
      XHWK.WKTool/SkinImages/Skin/Skin_White.png
  56. BIN
      XHWK.WKTool/SkinImages/Skin/Skin_White_MI.png
  57. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/HM_BJTitle.png
  58. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/HM_BJTool.png
  59. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/HM_Close.png
  60. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/HM_Close_MI.png
  61. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/HM_LZIMG.png
  62. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/HM_PenState.png
  63. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DR.png
  64. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DR_CL.png
  65. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DR_MI.png
  66. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DR_N.png
  67. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DY.png
  68. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DY_CL.png
  69. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DY_MI.png
  70. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DY_N.png
  71. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JC.png
  72. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JC_CL.png
  73. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JC_MI.png
  74. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JC_N.png
  75. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JT.png
  76. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JT_CL.png
  77. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JT_MI.png
  78. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JT_N.png
  79. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JY.png
  80. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JY_CL.png
  81. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JY_MI.png
  82. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JY_N.png
  83. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LP.png
  84. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LP_CL.png
  85. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LP_MI.png
  86. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LP_N.png
  87. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZ.png
  88. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZZT.png
  89. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZZT_MI.png
  90. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZZT_N.png
  91. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZ_MI.png
  92. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZ_N.png
  93. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_MY.png
  94. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_MY_CL.png
  95. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_MY_MI.png
  96. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_MY_N.png
  97. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_SZ.png
  98. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_SZ_CL.png
  99. BIN
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_SZ_MI.png
  100. 0
    0
      XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_SZ_N.png

+ 21
- 0
XHWK.Model/Model_Page.cs View File

@@ -38,5 +38,26 @@ namespace XHWK.Model
38 38
         {
39 39
             menuList = new ObservableCollection<Model_Canvas>();
40 40
         }
41
+
42
+        /// <summary>
43
+        /// 文字大小20px
44
+        /// </summary>
45
+        public double WordSize20 { get; set; }
46
+        /// <summary>
47
+        /// 文字大小18px
48
+        /// </summary>
49
+        public double WordSize18 { get; set; }
50
+        /// <summary>
51
+        /// 文字大小16px
52
+        /// </summary>
53
+        public double WordSize16 { get; set; }
54
+        /// <summary>
55
+        /// 文字大小14px
56
+        /// </summary>
57
+        public double WordSize14 { get; set; }
58
+        /// <summary>
59
+        /// 文字大小12px
60
+        /// </summary>
61
+        public double WordSize12 { get; set; }
41 62
     }
42 63
 }

+ 3
- 1
XHWK.Model/Model_ResourceAdd.cs View File

@@ -36,6 +36,8 @@
36 36
         /// 视频时长(秒)
37 37
         /// </summary>
38 38
         public int duration { get; set; }
39
+        public string subjectid { get; set; }
40
+        
39 41
         /// <summary>
40 42
         /// 
41 43
         /// </summary>
@@ -57,7 +59,7 @@
57 59
         /// </summary>
58 60
         public int resourcebelong { get; set; }
59 61
         /// <summary>
60
-        /// 资源分类1音频2视频3图片4文档
62
+        /// 资源分类1word2ppt3pdf4图片5视频6音频7压缩包10其他
61 63
         /// </summary>
62 64
         public int resourceclass { get; set; }
63 65
         /// <summary>

+ 2
- 0
XHWK.Model/Model_UserInfo.cs View File

@@ -70,6 +70,7 @@ namespace XHWK.Model
70 70
         /// </summary>
71 71
         private int _schoollevel;
72 72
         private List<Model_WKData> _wkdata;
73
+        private string _cloudcode;
73 74
 
74 75
         public int Userid { get => _userid; set => _userid = value; }
75 76
         public string Username { get => _username; set => _username = value; }
@@ -95,5 +96,6 @@ namespace XHWK.Model
95 96
         /// 微课列表信息
96 97
         /// </summary>
97 98
         public List<Model_WKData> Wkdata { get => _wkdata; set => _wkdata = value; }
99
+        public string cloudcode { get => _cloudcode; set => _cloudcode = value; }
98 100
     }
99 101
 }

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

@@ -1,70 +1,70 @@
1 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>
6
-  <appSettings>
7
-    <!--0正式 1测试-->
8
-    <add key="IsDebug" value="1" />
9
-    <!--参数是否加密 0不加密 1加密-->
10
-    <add key="IsParameterEncryption" value="0" />
11
-    <!--版本号-->
12
-    <add key="VersionCode" value="67" />
13
-    <add key="VersionName" value="2.5.17" />
14
-    <!--皮肤样式 Blue蓝 Black黑色-->
15
-    <add key="SkinStyle" value="Black" />
16
-    <!--是否输出视频记录日志:0否-->
17
-    <add key="OutputVideoLog" value="0" />
18
-    <!--是否输出其他测试日志-->
19
-    <add key="IsOutputInfoLog" value="0" />
20
-    <!--文件存放路径  路径\账户名\讲解名称_x.MP4-->
21
-    <add key="VideoSavePath" value="D:\星火微课" />
22
-    <!--视频格式 1、MP4 2、FlV 3、AVI-->
23
-    <add key="VideoType" value="1" />
24
-    <!--声音 true 有 false 无-->
25
-    <add key="IsSound" value="true" />
26
-    <!--图片压缩质量 0最差 100最佳-->
27
-    <add key="ImageCompressionLevel" value="70" />
28
-    <!--用户名-->
29
-    <add key="userName" value="" />
30
-    <!--记住密码-->
31
-    <add key="isRemind" value="" />
32
-    <!--API请求地址-->
33
-    <add key="APIRequestAddress" value="http://schoolapi.xhkjedu.com" />
34
-    <!--文件平台请求地址-->
35
-    <add key="FileRequestAddress" value="http://schoolfile.xhkjedu.com" />
36
-    <!--展示文件服务器请求地址-->
37
-    <add key="SchoolfileRequestAddress" value="http://schoolfile.xhkjedu.com" />
38
-    <!--认证请求地址-->
39
-    <add key="CertapiRequestAddress" value="http://certapi.xhkjedu.com" />
40
-    <!--TQL铺码API-->
41
-    <add key="TmatrixCode" value="http://111.231.240.239:8030" />
42
-    <!--摄像头位置 1.右上 2.左上 3.右下 4.左下-->
43
-    <add key="CameraPosition" value="1" />
44
-    <!--上传每片大小 Mb-->
45
-    <add key="UploadSliceLen" value="1" />
46
-    <!--是否隐藏录屏工具栏 1 隐藏 0不隐藏-->
47
-    <add key="IsHideSRTool" value="1" />
48
-    <add key="ClientSettingsProvider.ServiceUri" value="" />
49
-  </appSettings>
50
-  <system.web>
51
-    <membership defaultProvider="ClientAuthenticationMembershipProvider">
52
-      <providers>
53
-        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
54
-      </providers>
55
-    </membership>
56
-    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
57
-      <providers>
58
-        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
59
-      </providers>
60
-    </roleManager>
61
-  </system.web>
62
-  <runtime>
63
-    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
64
-      <dependentAssembly>
65
-        <assemblyIdentity name="itextsharp" publicKeyToken="8354ae6d2174ddca" culture="neutral" />
66
-        <bindingRedirect oldVersion="0.0.0.0-5.5.13.2" newVersion="5.5.13.2" />
67
-      </dependentAssembly>
68
-    </assemblyBinding>
69
-  </runtime>
3
+	<startup>
4
+		<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
5
+	</startup>
6
+	<appSettings>
7
+		<!--0正式 1测试-->
8
+		<add key="IsDebug" value="0" />
9
+		<!--参数是否加密 0不加密 1加密-->
10
+		<add key="IsParameterEncryption" value="0" />
11
+		<!--版本号-->
12
+		<add key="VersionCode" value="74" />
13
+		<add key="VersionName" value="2.5.24" />
14
+		<!--皮肤样式 0白 1蓝 2黑色 -->
15
+		<add key="SkinStyle" value="0" />
16
+		<!--是否输出视频记录日志:0否-->
17
+		<add key="OutputVideoLog" value="0" />
18
+		<!--是否输出其他测试日志-->
19
+		<add key="IsOutputInfoLog" value="0" />
20
+		<!--文件存放路径  路径\账户名\讲解名称_x.MP4-->
21
+		<add key="VideoSavePath" value="D:\星火微课" />
22
+		<!--视频格式 1、MP4 2、FlV 3、AVI-->
23
+		<add key="VideoType" value="1" />
24
+		<!--声音 true 有 false 无-->
25
+		<add key="IsSound" value="true" />
26
+		<!--图片压缩质量 0最差 100最佳-->
27
+		<add key="ImageCompressionLevel" value="70" />
28
+		<!--用户名-->
29
+		<add key="userName" value="" />
30
+		<!--记住密码-->
31
+		<add key="isRemind" value="" />
32
+		<!--API请求地址-->
33
+		<add key="APIRequestAddress" value="http://schoolapi.xhkjedu.com" />
34
+		<!--文件平台请求地址-->
35
+		<add key="FileRequestAddress" value="http://schoolfile.xhkjedu.com" />
36
+		<!--展示文件服务器请求地址-->
37
+		<add key="SchoolfileRequestAddress" value="http://schoolfile.xhkjedu.com" />
38
+		<!--认证请求地址-->
39
+		<add key="CertapiRequestAddress" value="http://certapi.xhkjedu.com" />
40
+		<!--TQL铺码API-->
41
+		<add key="TmatrixCode" value="http://111.231.240.239:8030" />
42
+		<!--摄像头位置 1.右上 2.左上 3.右下 4.左下-->
43
+		<add key="CameraPosition" value="1" />
44
+		<!--上传每片大小 Mb-->
45
+		<add key="UploadSliceLen" value="1" />
46
+		<!--是否隐藏录屏工具栏 1 隐藏 0不隐藏-->
47
+		<add key="IsHideSRTool" value="1" />
48
+		<add key="ClientSettingsProvider.ServiceUri" value="" />
49
+	</appSettings>
50
+	<system.web>
51
+		<membership defaultProvider="ClientAuthenticationMembershipProvider">
52
+			<providers>
53
+				<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
54
+			</providers>
55
+		</membership>
56
+		<roleManager defaultProvider="ClientRoleProvider" enabled="true">
57
+			<providers>
58
+				<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
59
+			</providers>
60
+		</roleManager>
61
+	</system.web>
62
+	<runtime>
63
+		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
64
+			<dependentAssembly>
65
+				<assemblyIdentity name="itextsharp" publicKeyToken="8354ae6d2174ddca" culture="neutral" />
66
+				<bindingRedirect oldVersion="0.0.0.0-5.5.13.2" newVersion="5.5.13.2" />
67
+			</dependentAssembly>
68
+		</assemblyBinding>
69
+	</runtime>
70 70
 </configuration>

+ 5
- 2
XHWK.WKTool/App.cs View File

@@ -17,6 +17,7 @@ using TStudyDigitalPen.HID;
17 17
 
18 18
 using XHWK.Model;
19 19
 using XHWK.WKTool.Helpers;
20
+using XHWK.WKTool.Skin;
20 21
 
21 22
 namespace XHWK.WKTool
22 23
 {
@@ -40,7 +41,7 @@ namespace XHWK.WKTool
40 41
         /// </summary>
41 42
         public static bool IsHideSRTool = FileToolsCommon.GetConfigValue("IsHideSRTool") != "0";
42 43
         /// <summary>
43
-        /// 皮肤样式 Blue蓝 Black黑色
44
+        /// 皮肤样式 0白 1蓝 2黑色
44 45
         /// </summary>
45 46
         public static string SkinStyle = FileToolsCommon.GetConfigValue("SkinStyle");
46 47
         /// <summary>
@@ -315,7 +316,6 @@ namespace XHWK.WKTool
315 316
 
316 317
                 //}
317 318
                 #endregion
318
-
319 319
                 try
320 320
                 {
321 321
                     if (Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + "temp"))//清除临时文件
@@ -337,6 +337,7 @@ namespace XHWK.WKTool
337 337
                         KeyVerification wins = new KeyVerification();
338 338
                         // 定义Application对象作为整个应用程序入口
339 339
                         Application app = new Application();
340
+                        SkinConfig.InitSkin();
340 341
                         app.Run(wins);
341 342
                     }
342 343
                     else
@@ -370,6 +371,7 @@ namespace XHWK.WKTool
370 371
                     {
371 372
                         ProductVerification wins = new ProductVerification();
372 373
                         Application app = new Application();
374
+                        SkinConfig.InitSkin();
373 375
                         app.Run(wins);
374 376
                     }
375 377
                     else
@@ -396,6 +398,7 @@ namespace XHWK.WKTool
396 398
                         Environment.Exit(0);
397 399
 
398 400
                     }
401
+
399 402
                 }
400 403
             }
401 404
             catch (Exception ex)

+ 7
- 11
XHWK.WKTool/App.xaml View File

@@ -2,17 +2,13 @@
2 2
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 3
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 4
              xmlns:local="clr-namespace:XHWK.WKTool"
5
-             StartupUri="MainWindow.xaml">
5
+             >
6 6
     <Application.Resources>
7
-      <!--<UserControl.Resources>
8
-            <ResourceDictionary>
9
-                <ResourceDictionary.MergedDictionaries>
10
-                    <ResourceDictionary>
11
-                        <FontFamily x:Key="youyuan">/Presentation/Resources/font/#youyuan</FontFamily>
12
-                    </ResourceDictionary>
13
-                </ResourceDictionary.MergedDictionaries>
14
-            </ResourceDictionary>
15
-        </UserControl.Resources>-->
16
-
7
+        <ResourceDictionary>
8
+            <ResourceDictionary.MergedDictionaries>
9
+                <ResourceDictionary Source="Skin\SkinDictionary_White.xaml"></ResourceDictionary>
10
+				<!--<ResourceDictionary Source="Skin\SkinDictionary_TechnologyBlue.xaml"></ResourceDictionary>-->
11
+            </ResourceDictionary.MergedDictionaries>
12
+        </ResourceDictionary>
17 13
     </Application.Resources>
18 14
 </Application>

+ 128
- 50
XHWK.WKTool/CreateAMicroLessonWindow.xaml View File

@@ -5,7 +5,7 @@
5 5
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6 6
         xmlns:local="clr-namespace:XHWK.WKTool"
7 7
         mc:Ignorable="d"
8
-        Title="星火微课" Height="346" Width="457"   AllowsTransparency="True"
8
+        Title="星火微课" Height="450" Width="800"   AllowsTransparency="True"
9 9
     WindowStartupLocation="CenterScreen"
10 10
     WindowStyle="None" Loaded="Window_Loaded" Margin="0"  BorderThickness="7">
11 11
     <Window.Effect>
@@ -37,58 +37,136 @@
37 37
         </Style>
38 38
     </Window.Resources>
39 39
     <Grid>
40
-        <!--分4行-->
41
-        <Grid.RowDefinitions>
42
-            <RowDefinition Height="45"/>
43
-            <RowDefinition Height="110"/>
44
-            <RowDefinition Height="70"/>
45
-            <RowDefinition Height="*"/>
46
-        </Grid.RowDefinitions>
47
-        <!--第一行 标题 FFE9E9E9  FF2D8CF0-->
48
-        <Grid x:Name="GridTitle" Visibility="Visible" Margin="-1,0" Grid.Row="0" Background="#FF38ADFF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
49
-            <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
50
-            <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"/>
51
-        </Grid>
52
-        <Grid x:Name="GridTitle_Black" Visibility="Collapsed" Margin="0,0" Grid.Row="0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
53
-            <TextBlock Text="创建微课" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0"/>
54
-            <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown_Black" Content="×" VerticalAlignment="Top" Foreground="#FF333333" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
55
-        </Grid>
56
-        <!--第二行 讲解名称-->
57
-        <Grid Grid.Row="1">
58
-        <StackPanel Orientation="Horizontal" Margin="30,20,30,1" Grid.ColumnSpan="2">
59
-            <Label Content="*" FontSize="18" Padding="0,37.5,0,0" Foreground="#FF0000"/>
60
-            <TextBlock Text="讲解名称" FontSize="18" Padding="2,33,10,0"/>
61
-            <!--输入框-->
62
-            <Border Background="#CDD6E0" Width="291" Height="43" CornerRadius="3">
63
-                <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="289" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
64
-            </Border>
65
-        </StackPanel>
66
-        </Grid>
67
-        <!--第三行 存放路径-->
68
-        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,0,30,1" Grid.ColumnSpan="2">
69
-            <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
70
-            <TextBlock Text="存放路径" FontSize="18" Padding="2,23,10,0"/>
71
-            <!--输入框-->
72
-            <Border Background="#CDD6E0" Width="200" Height="43" CornerRadius="3">
73
-                <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="198" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
74
-            </Border>
75
-            <!--浏览按钮-->
76
-            <Button Cursor="Hand" x:Name="btnBrowse" FontSize="18" Width="80" Height="43" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}"
40
+        <Grid Background="#FF4B95FF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
41
+            <Grid.ColumnDefinitions>
42
+                <ColumnDefinition Width="520*"/>
43
+                <ColumnDefinition Width="280*"/>
44
+            </Grid.ColumnDefinitions>
45
+            <!--轮播图-->
46
+            <Grid Grid.Column="0">
47
+                <Grid.RowDefinitions>
48
+                    <RowDefinition Height="28*"/>
49
+                    <RowDefinition Height="380*"/>
50
+                    <RowDefinition Height="28*"/>
51
+                </Grid.RowDefinitions>
52
+                <Grid.ColumnDefinitions>
53
+                    <ColumnDefinition Width="15*"/>
54
+                    <ColumnDefinition Width="481*"/>
55
+                    <ColumnDefinition Width="15*"/>
56
+                </Grid.ColumnDefinitions>
57
+                <!--<MediaElement Grid.Row="1" Grid.Column="1" Source="/SkinImages/ImgCarousel/CM_Carousel.gif" Width="500" Height="389" HorizontalAlignment="Center" VerticalAlignment="Center">
58
+                    --><!--<MediaElement.Effect>
59
+                        <DropShadowEffect Color="#FFD3D3D3" Direction="-50" ShadowDepth="4" Opacity="0.9" />
60
+                    </MediaElement.Effect>--><!--
61
+                </MediaElement >-->
62
+                <Grid Grid.Row="1" Grid.Column="1" ClipToBounds="True">
63
+                    <StackPanel x:Name="SplCarouse" Orientation="Horizontal" HorizontalAlignment="Left" Margin="0" >
64
+                        <Image x:Name="ImgCarouse1" Source="/SkinImages/ImgCarousel/CM_Carousel_1.png"/>
65
+                        <Image Source="/SkinImages/ImgCarousel/CM_Carousel_2.png"/>
66
+                        <Image Source="/SkinImages/ImgCarousel/CM_Carousel_3.png"/>
67
+                        <Image Source="/SkinImages/ImgCarousel/CM_Carousel_1.png"/>
68
+                    </StackPanel>
69
+                </Grid>
70
+                <Grid Grid.Row="1" Grid.Column="0" Background="#FF4B95FF"></Grid>
71
+                <Grid Grid.Row="1" Grid.Column="2" Background="#FF4B95FF"></Grid>
72
+            </Grid>
73
+            <!--创建-->
74
+            <Grid Grid.Column="1">
75
+                <Border Background="White" Margin="10,31,30,30"  CornerRadius="15" >
76
+                    <Grid>
77
+                        <Image Source="/SkinImages/ImgCarousel/CM_RightDown.png" HorizontalAlignment="Right" VerticalAlignment="Top" Width="65" />
78
+                        <!--创建内页 375-->
79
+                        <Grid Margin="20,0">
80
+                            <Grid.RowDefinitions>
81
+                                <RowDefinition Height="100*"/>
82
+                                <RowDefinition Height="80*"/>
83
+                                <RowDefinition Height="80*"/>
84
+                                <RowDefinition Height="115*"/>
85
+                            </Grid.RowDefinitions>
86
+                            <Grid Grid.Row="0">
87
+                                <Label Content="创建" FontSize="21" Foreground="#FF4B62EA" VerticalAlignment="Top" HorizontalAlignment="Left"  Margin="0,42,0,0"/>
88
+                            </Grid>
89
+                            <!--讲解名称-->
90
+                            <Grid Grid.Row="1">
91
+                                <StackPanel VerticalAlignment="Center">
92
+                                    <Label Content="讲解名称:" FontSize="12" Foreground="#FF666666"/>
93
+                                    <TextBox x:Name="txbExplainName" Text="微课1" FontSize="14" Foreground="#FF999999" BorderBrush="{x:Null}" BorderThickness="0" Margin="5,5"/>
94
+                                    <Label Background="#FF317EEC" Height="1.5"/>
95
+                                </StackPanel>
96
+                            </Grid>
97
+                            <!--存放路径-->
98
+                            <Grid Grid.Row="2">
99
+
100
+                                <StackPanel VerticalAlignment="Center">
101
+                                    <Label Content="存放路径:" FontSize="12" Foreground="#FF666666"/>
102
+                                    <Grid>
103
+                                        <Grid.ColumnDefinitions>
104
+                                            <ColumnDefinition Width="150"/>
105
+                                            <ColumnDefinition Width="45"/>
106
+                                        </Grid.ColumnDefinitions>
107
+                                        <TextBox Grid.Column="0" x:Name="txbStoragePath" Text="D:\" FontSize="14" Foreground="#FF999999" BorderBrush="{x:Null}" BorderThickness="0" Margin="5,5"/>
108
+                                        <Button Grid.Column="1" Cursor="Hand" x:Name="btnBrowse" FontSize="14" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}" Background="#F7F7F7" Margin="0,5,0,0"/>
109
+                                    </Grid>
110
+                                    <Label Background="#FF317EEC" Height="1.5"/>
111
+                                </StackPanel>
112
+                                <!--<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,0,30,1" Grid.ColumnSpan="2">
113
+                                <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
114
+                                <TextBlock Text="存放路径" FontSize="18" Padding="2,23,10,0"/>
115
+                                -->
116
+                                <!--输入框-->
117
+                                <!--
118
+                                <Border Background="#CDD6E0" Width="200" Height="43" CornerRadius="3">
119
+                                    <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="198" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
120
+                                </Border>
121
+                                -->
122
+                                <!--浏览按钮-->
123
+                                <!--
124
+                                <Button Cursor="Hand" x:Name="btnBrowse" FontSize="18" Width="80" Height="43" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}"
77 125
                                 Background="#F7F7F7" Margin="11,0,0,0"/>
78
-        </StackPanel>
79
-        <!--第四行 开始按钮-->
80
-        <Button  Cursor="Hand" Grid.Row="3" x:Name="btnStart" IsDefault="True" Content="开始" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="386" Height="48" Margin="30,0,30,0" Click="BtnStart_Click" Grid.ColumnSpan="2">
81
-            <Button.Template>
82
-                <ControlTemplate TargetType="{x:Type Button}">
83
-                    <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="3">
84
-                        <Border.Background>#38ADFF</Border.Background>
85
-                        <ContentPresenter
126
+                            </StackPanel>-->
127
+                            </Grid>
128
+                            <!--按钮-->
129
+                            <Grid Grid.Row="3">
130
+                                <Label x:Name="LblCreate" Content="创建微课中..." FontSize="12" Foreground="#FF999999" HorizontalAlignment="Right" Visibility="Hidden"/>
131
+                                <Button  Cursor="Hand" Grid.Row="3" x:Name="BtnStart" IsDefault="True" Content="开始" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,0,30" Click="BtnStart_Click" Grid.ColumnSpan="2" Width="195" HorizontalAlignment="Center" VerticalAlignment="Center" HorizontalContentAlignment="Center" Height="33">
132
+                                    <Button.Template>
133
+                                        <ControlTemplate TargetType="{x:Type Button}">
134
+                                            <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="20">
135
+                                                <Border.Background>#FF1D64DA</Border.Background>
136
+                                                <ContentPresenter
86 137
                                     HorizontalAlignment="Center"
87 138
                                     VerticalAlignment="Center"
88 139
                                     Content="{TemplateBinding ContentControl.Content}" />
89
-                    </Border>
90
-                </ControlTemplate>
91
-            </Button.Template>
92
-        </Button>
140
+                                            </Border>
141
+                                        </ControlTemplate>
142
+                                    </Button.Template>
143
+                                </Button>
144
+                            </Grid>
145
+                        </Grid>
146
+                    </Grid>
147
+                </Border>
148
+            </Grid>
149
+            <Button Grid.Column="1" Cursor="Hand" x:Name="btnDown" Content="×" VerticalAlignment="Top" Foreground="#FFFFFF" FontSize="25" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" Padding="5,0"/>
150
+        </Grid>        
151
+        <Grid Visibility="Collapsed">
152
+            <!--分4行-->
153
+            <Grid.RowDefinitions>
154
+                <RowDefinition Height="45"/>
155
+                <RowDefinition Height="110"/>
156
+                <RowDefinition Height="70"/>
157
+                <RowDefinition Height="*"/>
158
+            </Grid.RowDefinitions>
159
+            <!--第一行 标题 FFE9E9E9  FF2D8CF0-->
160
+            <Grid x:Name="GridTitle" Visibility="Visible" Margin="-1,0" Grid.Row="0" Background="#FF38ADFF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
161
+                <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
162
+                <!--<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"/>-->
163
+            </Grid>
164
+            <Grid x:Name="GridTitle_Black" Visibility="Collapsed" Margin="0,0" Grid.Row="0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
165
+                <TextBlock Text="创建微课" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0"/>
166
+                <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown_Black" Content="×" VerticalAlignment="Top" Foreground="#FF333333" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
167
+            </Grid>
168
+            <!--第二行 讲解名称-->
169
+            <!--第三行 存放路径-->
170
+        </Grid>
93 171
     </Grid>
94 172
 </Window>

+ 183
- 62
XHWK.WKTool/CreateAMicroLessonWindow.xaml.cs View File

@@ -7,6 +7,7 @@ using System.Windows.Forms;
7 7
 using System.Windows.Input;
8 8
 
9 9
 using XHWK.Model;
10
+using XHWK.WKTool.Skin;
10 11
 
11 12
 namespace XHWK.WKTool
12 13
 {
@@ -19,28 +20,12 @@ namespace XHWK.WKTool
19 20
         private FolderBrowserDialog ofd;
20 21
         private DialogResult result;
21 22
         #endregion
22
-
23 23
         /// <summary>
24 24
         /// 创建微课
25 25
         /// </summary>
26 26
         public CreateAMicroLessonWindow()
27 27
         {
28 28
             InitializeComponent();
29
-            if (APP.SkinStyle == "Blue")
30
-            {
31
-                GridTitle.Visibility = Visibility.Visible;
32
-                GridTitle_Black.Visibility = Visibility.Collapsed;
33
-            }
34
-            else if (APP.SkinStyle == "Black")
35
-            {
36
-                GridTitle.Visibility = Visibility.Collapsed;
37
-                GridTitle_Black.Visibility = Visibility.Visible;
38
-            }
39
-            else
40
-            {
41
-                GridTitle.Visibility = Visibility.Visible;
42
-                GridTitle_Black.Visibility = Visibility.Collapsed;
43
-            }
44 29
             ResizeMode = ResizeMode.NoResize;
45 30
             new Thread(o =>
46 31
             {
@@ -73,8 +58,106 @@ namespace XHWK.WKTool
73 58
             }
74 59
             txbStoragePath.Text = FileToolsCommon.GetConfigValue("VideoSavePath");
75 60
             //APP.FFmpeg.GetMToFFmpeg();
61
+
62
+            LoadingCarouseImg();
76 63
         }
77 64
 
65
+        #region 轮播图
66
+        /// <summary>
67
+        /// 图片宽度,每次切换的宽度
68
+        /// </summary>
69
+        double ImgWidth = 502.00;
70
+        /// <summary>
71
+        /// 轮播时移动增加的宽度
72
+        /// </summary>
73
+        double ImgMove = 1;
74
+        /// <summary>
75
+        /// 当前展示的图片序号Index从0开始
76
+        /// </summary>
77
+        int ImgNumIndex = 0;
78
+        /// <summary>
79
+        /// 加载录播图
80
+        /// </summary>
81
+        void LoadingCarouseImg()
82
+        {
83
+            new Thread(new ThreadStart(new Action(() =>
84
+            {
85
+                Thread.Sleep(3000);
86
+                Dispatcher.Invoke(() =>
87
+                {
88
+                    ImgWidth = ImgCarouse1.ActualWidth;
89
+                    ImgMove = ImgWidth / 250.00;
90
+                    CarouseImg();
91
+                    //timesCarouse = new System.Timers.Timer(2000);
92
+                    //timesCarouse.Elapsed += TimesCarouse_Elapsed; ;
93
+                    //timesCarouse.Start();
94
+                });
95
+            }))).Start();
96
+        }
97
+        /// <summary>
98
+        /// 轮播图
99
+        /// </summary>
100
+        void CarouseImg()
101
+        {
102
+            new Thread(new ThreadStart(new Action(() =>
103
+            {
104
+                while(true)
105
+                {
106
+                    for (double i = ImgMove; i < ImgWidth; i += ImgMove)
107
+                    {
108
+                        Dispatcher.Invoke(() =>
109
+                        {
110
+                            if (Math.Abs(i + ImgMove) < ImgWidth)
111
+                            {
112
+                            //图片移动轮播
113
+                            SplCarouse.Margin = new Thickness(SplCarouse.Margin.Left - ImgMove, 0, 0, 0);
114
+                            }
115
+                            else
116
+                            {
117
+                                if (ImgNumIndex >= 2)
118
+                                {
119
+                                    ImgNumIndex = 0;
120
+                                    SplCarouse.Margin = new Thickness(0, 0, 0, 0);
121
+                                }
122
+                                else
123
+                                {
124
+                                    ImgNumIndex++;
125
+                                    SplCarouse.Margin = new Thickness(-(ImgNumIndex * ImgWidth), 0, 0, 0);
126
+                                }
127
+                            }
128
+                        });
129
+                        Thread.Sleep(3);
130
+                    }
131
+                    bool IsBreak = false;
132
+                    Dispatcher.Invoke(() =>
133
+                    {
134
+                        if (this.Visibility != Visibility.Visible)
135
+                        {
136
+                            SplCarouse.Margin = new Thickness(0);
137
+                            IsBreak = true;
138
+                        }
139
+                    });
140
+                    Thread.Sleep(5000);
141
+                    if (IsBreak)
142
+                    {
143
+                        break;
144
+                    }
145
+                }
146
+
147
+            }))).Start();
148
+        }
149
+        /// <summary>
150
+        /// 轮播图切换
151
+        /// </summary>
152
+        /// <param name="sender"></param>
153
+        /// <param name="e"></param>
154
+        private void TimesCarouse_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
155
+        {
156
+            //SplCarouse
157
+            //ImgCarouse1
158
+        }
159
+        #endregion
160
+
78 161
         #region 事件
79 162
         /// <summary>
80 163
         /// 关闭
@@ -115,6 +198,7 @@ namespace XHWK.WKTool
115 198
                 }
116 199
             }
117 200
         }
201
+        bool IsPressButton = false;
118 202
         /// <summary>
119 203
         /// 开始
120 204
         /// </summary>
@@ -122,6 +206,21 @@ namespace XHWK.WKTool
122 206
         /// <param name="e"></param>
123 207
         private void BtnStart_Click(object sender, RoutedEventArgs e)
124 208
         {
209
+            #region 防止连击
210
+            if (IsPressButton)
211
+            {
212
+                return;
213
+            }
214
+            else
215
+            {
216
+                IsPressButton = true;
217
+                new Thread(new ThreadStart(new Action(() =>
218
+                {
219
+                    Thread.Sleep(500);
220
+                    IsPressButton = false;
221
+                }))).Start();
222
+            }
223
+            #endregion
125 224
             #region 合法性判断
126 225
             if (string.IsNullOrWhiteSpace(txbExplainName.Text.Trim()))
127 226
             {
@@ -133,56 +232,78 @@ namespace XHWK.WKTool
133 232
                 MessageWindow.Show("路径不可为空!");
134 233
                 return;
135 234
             }
136
-            #endregion
137
-            string wkpath = FileToolsCommon.GetLegalPath(txbStoragePath.Text) + txbExplainName.Text.Trim() + "/";
138
-            //读取微课数据
139
-            APP.ReadWkData(wkpath);
140
-            if (APP.WKData == null)
235
+            try
141 236
             {
142
-                APP.WKData = new Model.Model_WKData
143
-                {
144
-                    WkPath = wkpath,
145
-                    WkName = txbExplainName.Text,
146
-                    WkCreateDateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
147
-                };
237
+                FileToolsCommon.CreateDirectory(txbStoragePath.Text.Trim());
148 238
             }
149
-            //创建文件夹
150
-            FileToolsCommon.CreateDirectory(APP.WKData.WkPath);
151
-            FileToolsCommon.DeleteDirectory(wkpath + "temp");
152
-            FileToolsCommon.DeleteDirectory(wkpath + "temprs");
153
-            //存储文件
154
-            FileToolsCommon.SetConfigValue("VideoSavePath", txbStoragePath.Text);
155
-            APP.ReadDrawData();
156
-            #region 微课不允许有多个视频 废弃
157
-            ////判断微课是否存在,存在则询问
158
-            //if (APP.WKDataList != null&& APP.WKDataList.Count>0)
159
-            //{
160
-            //    if (APP.WKDataList.Exists(x => x.WkName == APP.WKData.WkName))
161
-            //    {
162
-            //        MessageBoxResult dr = MessageWindow.Show("此微课已存在是否覆盖?", "提示", MessageBoxButton.OKCancel);
163
-            //        if (dr == MessageBoxResult.OK)
164
-            //        {
165
-            //            FileToolsCommon.DeleteDirectory(APP.WKData.WkPath);
166
-            //            FileToolsCommon.CreateDirectory(APP.WKData.WkPath);
167
-            //            APP.WKDataList.RemoveAll(x => x.WkName == APP.WKData.WkName);
168
-            //        }
169
-            //        else
170
-            //        {
171
-            //            return;
172
-            //        }
173
-            //    }
174
-            //}
175
-            #endregion
176
-            if (APP.W_XHMicroLessonSystemWindow == null)
239
+            catch (Exception ex)
177 240
             {
178
-                //double proportion = 1036.0 / 1276.0;
179
-                APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
180
-                //APP.W_XHMicroLessonSystemWindow.Width = proportion * (PrimaryScreen.ScaleScreenSize().Height-40);
181
-                //APP.W_XHMicroLessonSystemWindow.Height =/*1276-*/ PrimaryScreen.ScaleScreenSize().Height-40;
182
-                //APP.W_XHMicroLessonSystemWindow .Topmost = true;
241
+                MessageWindow.Show("路径无法访问,解决方案:\r\n1,检查路径是否可访问。\r\n2,关闭杀毒软件或信任软件。");
242
+                return;
183 243
             }
184
-            APP.W_XHMicroLessonSystemWindow.Show();
185
-            Hide();
244
+            #endregion
245
+            LblCreate.Visibility = Visibility.Visible;
246
+            string wkpath = FileToolsCommon.GetLegalPath(txbStoragePath.Text) + txbExplainName.Text.Trim() + "/";
247
+            string StoragePath = txbStoragePath.Text;
248
+            new Thread(new ThreadStart(new Action(() =>
249
+            {
250
+                //读取微课数据
251
+                APP.ReadWkData(wkpath);
252
+                if (APP.WKData == null)
253
+                {
254
+                    Dispatcher.Invoke(() =>
255
+                    {
256
+                        APP.WKData = new Model.Model_WKData
257
+                        {
258
+                            WkPath = wkpath,
259
+                            WkName = txbExplainName.Text,
260
+                            WkCreateDateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
261
+                        };
262
+                    });
263
+                }
264
+                //创建文件夹
265
+                FileToolsCommon.CreateDirectory(APP.WKData.WkPath);
266
+                FileToolsCommon.DeleteDirectory(wkpath + "temp");
267
+                FileToolsCommon.DeleteDirectory(wkpath + "temprs");
268
+                //存储文件
269
+                FileToolsCommon.SetConfigValue("VideoSavePath", StoragePath);
270
+                APP.ReadDrawData();
271
+                #region 微课不允许有多个视频 废弃
272
+                ////判断微课是否存在,存在则询问
273
+                //if (APP.WKDataList != null&& APP.WKDataList.Count>0)
274
+                //{
275
+                //    if (APP.WKDataList.Exists(x => x.WkName == APP.WKData.WkName))
276
+                //    {
277
+                //        MessageBoxResult dr = MessageWindow.Show("此微课已存在是否覆盖?", "提示", MessageBoxButton.OKCancel);
278
+                //        if (dr == MessageBoxResult.OK)
279
+                //        {
280
+                //            FileToolsCommon.DeleteDirectory(APP.WKData.WkPath);
281
+                //            FileToolsCommon.CreateDirectory(APP.WKData.WkPath);
282
+                //            APP.WKDataList.RemoveAll(x => x.WkName == APP.WKData.WkName);
283
+                //        }
284
+                //        else
285
+                //        {
286
+                //            return;
287
+                //        }
288
+                //    }
289
+                //}
290
+                #endregion
291
+
292
+                Dispatcher.Invoke(() =>
293
+                {
294
+                    if (APP.W_XHMicroLessonSystemWindow == null)
295
+                    {
296
+                        //double proportion = 1036.0 / 1276.0;
297
+                        APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
298
+                        //APP.W_XHMicroLessonSystemWindow.Width = proportion * (PrimaryScreen.ScaleScreenSize().Height-40);
299
+                        //APP.W_XHMicroLessonSystemWindow.Height =/*1276-*/ PrimaryScreen.ScaleScreenSize().Height-40;
300
+                        //APP.W_XHMicroLessonSystemWindow .Topmost = true;
301
+                    }
302
+                    APP.W_XHMicroLessonSystemWindow.Show();
303
+                    LblCreate.Visibility = Visibility.Hidden;
304
+                    Hide();
305
+                });
306
+            }))).Start();
186 307
         }
187 308
 
188 309
         private double screeHeight = SystemParameters.FullPrimaryScreenHeight;

+ 2
- 2
XHWK.WKTool/DAL/DAL_Upload.cs View File

@@ -268,7 +268,7 @@ namespace XHWK.WKTool.DAL
268 268
 
269 269
                             #region 合并文件
270 270
                             //合并文件
271
-                            bool isres = ReportFileMerge(APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
271
+                            bool isres = ReportFileMerge(APP.UserInfo.cloudcode + "/" + APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
272 272
                             if (isres)
273 273
                             {
274 274
                                 VideoInfo.IsUpload = true;
@@ -374,7 +374,7 @@ namespace XHWK.WKTool.DAL
374 374
 
375 375
                         #region 合并文件
376 376
                         //合并文件
377
-                        bool isres = ReportFileMerge(APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
377
+                        bool isres = ReportFileMerge(APP.UserInfo.cloudcode + "/" + APP.UserInfo.Schoolid.ToString() + "/resource", VideoInfo.FileGuid, out ErrMessage);
378 378
                         if (isres)
379 379
                         {
380 380
                             //VideoInfo.IsUpload = true;

+ 1
- 0
XHWK.WKTool/DAL/Interface.cs View File

@@ -282,6 +282,7 @@ namespace XHWK.WKTool.DAL
282 282
                     dic.Add("directorid", model.directorid);
283 283
                 }
284 284
                 dic.Add("duration", model.duration);
285
+                dic.Add("subjectid", model.subjectid);
285 286
                 dic.Add("imgUrl", model.imgUrl);
286 287
                 dic.Add("level", model.level);
287 288
                 dic.Add("lsbid", model.lsbid);

+ 88
- 49
XHWK.WKTool/DeviceWindow.xaml View File

@@ -3,6 +3,7 @@
3 3
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 4
         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5 5
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6
+        xmlns:gif="http://wpfanimatedgif.codeplex.com"
6 7
         xmlns:local="clr-namespace:XHWK.WKTool"
7 8
         mc:Ignorable="d"
8 9
         Title="设备检测" AllowsTransparency="True"
@@ -87,7 +88,7 @@
87 88
             <RowDefinition Height="50"/>
88 89
             <RowDefinition Height="*"/>
89 90
         </Grid.RowDefinitions>
90
-        <Grid x:Name="GridTitle_Black" Margin="0,0" Grid.Row="0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
91
+        <Grid x:Name="GridTitle_Black" Margin="0,0" Grid.Row="0" Background="#FFF1F2F8" MouseLeftButtonDown="Window_MouseLeftButtonDown">
91 92
             <TextBlock Text="设备检测" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0" Grid.RowSpan="2"/>
92 93
             <Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown_Black" Content="×" VerticalAlignment="Top" Foreground="#FF333333" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
93 94
         </Grid>
@@ -98,26 +99,26 @@
98 99
             </Grid.ColumnDefinitions>
99 100
             <Grid Grid.Column="0">
100 101
                 <Border BorderBrush="#FFE9E9E9" BorderThickness="1" CornerRadius="7">
101
-                    <StackPanel Margin="0,10">
102
-                        <Button x:Name="BtnCamera"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="15,10,0,10" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="BtnCamera_Click">
102
+                    <StackPanel Margin="0,10" VerticalAlignment="Center">
103
+                        <Button x:Name="BtnCamera"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,10,0,10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCamera_Click">
103 104
                             <StackPanel Orientation="Horizontal">
104 105
                                 <Image Source="/BlackImages/Device_Camera.png"  Margin="6,0" HorizontalAlignment="Left"/>
105 106
                                 <TextBlock  Text="摄像头" FontSize="20" Padding="0,2,0,0" HorizontalAlignment="Center"/>
106 107
                             </StackPanel>
107 108
                         </Button>
108
-                        <Button x:Name="BtnSpeaker"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="15,10,0,10" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="BtnSpeaker_Click">
109
+                        <Button x:Name="BtnSpeaker"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,10,0,10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnSpeaker_Click">
109 110
                             <StackPanel Orientation="Horizontal">
110 111
                                 <Image Source="/BlackImages/Device_Voice.png"  Margin="6,0" HorizontalAlignment="Left"/>
111 112
                                 <TextBlock  Text="扬声器" FontSize="20" Padding="0,2,0,0" HorizontalAlignment="Center"/>
112 113
                             </StackPanel>
113 114
                         </Button>
114
-                        <Button x:Name="BtnMicrophone" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="15,10,0,10" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="BtnMicrophone_Click">
115
+                        <Button x:Name="BtnMicrophone" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,10,0,10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophone_Click">
115 116
                             <StackPanel Orientation="Horizontal">
116 117
                                 <Image Source="/BlackImages/Device_Microphone.png"  Margin="6,0" HorizontalAlignment="Left"/>
117 118
                                 <TextBlock  Text="麦克风" FontSize="20" Padding="0,2,0,0" HorizontalAlignment="Center"/>
118 119
                             </StackPanel>
119 120
                         </Button>
120
-                        <Button x:Name="BtnDetectionPage"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="15,10,0,10" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="BtnDetectionPage_Click">
121
+                        <Button x:Name="BtnDetectionPage"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,10,0,10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnDetectionPage_Click">
121 122
                             <StackPanel Orientation="Horizontal">
122 123
                                 <Image Source="/BlackImages/Device_JC.png"  Margin="6,0" HorizontalAlignment="Left"/>
123 124
                                 <TextBlock  Text="设备检测" FontSize="20" Padding="0,2,0,0" HorizontalAlignment="Center"/>
@@ -183,13 +184,25 @@
183 184
                     </Button>
184 185
                 </Grid>
185 186
             </Grid>
186
-            <Grid x:Name="GridCamera" Grid.Column="1" Visibility="Collapsed">
187
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0">
187
+            <Grid x:Name="GridCamera" Grid.Column="1" Visibility="Visible">
188
+                <Grid.RowDefinitions>
189
+                    <RowDefinition Height="66*"/>
190
+                    <RowDefinition Height="250*"/>
191
+                    <RowDefinition Height="70*"/>
192
+                </Grid.RowDefinitions>
193
+                <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0">
188 194
                     <TextBlock Text="摄像头:" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
189 195
                     <ComboBox Text="请选择" Cursor="Hand" Width="210" x:Name="CmbCameraList" Padding="30,0,10,0" Style="{StaticResource stlComboBox}" BorderThickness="0" DisplayMemberPath="Value" FontSize="14" SelectedValuePath="Key" Background="White" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Top" />
190 196
                 </StackPanel>
191
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,60,0,0">
192
-                    <Button x:Name="BtnCameraSave" Grid.Row="2" Width="70" Height="30" Content="设置" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraSave_Click">
197
+                <Grid Grid.Row="1" Width="300" Height="250" HorizontalAlignment="Left" VerticalAlignment="Top"  Margin="30,0,0,0" Background="#FFF1F2F8">
198
+                    <Image x:Name="imgPlayer" Visibility="Visible" RenderTransformOrigin="0.5,0.5" >
199
+                        <Image.RenderTransform>
200
+                            <ScaleTransform ScaleX="-1"/>
201
+                        </Image.RenderTransform>
202
+                    </Image>
203
+                </Grid>
204
+                <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,15,0,0">
205
+                    <Button x:Name="BtnCameraStat" Width="70" Height="30" Content="播放" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraStat_Click">
193 206
                         <Button.Template>
194 207
                             <ControlTemplate TargetType="{x:Type Button}">
195 208
                                 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
@@ -201,24 +214,24 @@
201 214
                             </ControlTemplate>
202 215
                         </Button.Template>
203 216
                     </Button>
204
-                    <Button x:Name="BtnCameraStat" Grid.Row="2" Width="70" Height="30" Content="检测" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraStat_Click">
217
+                    <Button x:Name="BtnCameraStop" Width="70" Height="30" Content="停止" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraStop_Click">
205 218
                         <Button.Template>
206 219
                             <ControlTemplate TargetType="{x:Type Button}">
207 220
                                 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
208 221
                                     <Border.Background>
209
-                                        <Brush>#2E8CF0</Brush>
222
+                                        <Brush>#CCCCCC</Brush>
210 223
                                     </Border.Background>
211 224
                                     <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
212 225
                                 </Border>
213 226
                             </ControlTemplate>
214 227
                         </Button.Template>
215 228
                     </Button>
216
-                    <Button x:Name="BtnCameraStop" Grid.Row="2" Width="70" Height="30" Content="停止" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraStop_Click">
229
+                    <Button x:Name="BtnCameraSave" Width="70" Height="30" Content="设置" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="80,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraSave_Click">
217 230
                         <Button.Template>
218 231
                             <ControlTemplate TargetType="{x:Type Button}">
219 232
                                 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
220 233
                                     <Border.Background>
221
-                                        <Brush>#CCCCCC</Brush>
234
+                                        <Brush>#2E8CF0</Brush>
222 235
                                     </Border.Background>
223 236
                                     <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
224 237
                                 </Border>
@@ -226,11 +239,56 @@
226 239
                         </Button.Template>
227 240
                     </Button>
228 241
                 </StackPanel>
229
-                <Image x:Name="imgPlayer" Width="300" Height="250"  HorizontalAlignment="Left"  Margin="30,100,0,0" VerticalAlignment="Top" Visibility="Visible"/>
230 242
             </Grid>
231 243
             <Grid x:Name="GridSpeaker" Grid.Column="1" Visibility="Collapsed">
232
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0">
233
-                    <Button x:Name="BtnSpeakerDetection" Grid.Row="2" Width="100" Height="30" Content="播放音频" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnSpeakerDetection_Click" >
244
+                <Grid.RowDefinitions>
245
+                    <RowDefinition Height="56*"/>
246
+                    <RowDefinition Height="180*"/>
247
+                    <RowDefinition Height="150*"/>
248
+                </Grid.RowDefinitions>
249
+                <Grid Grid.Row="0">
250
+                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0">
251
+                        <Button x:Name="BtnSpeakerDetection" Grid.Row="2" Width="100" Height="30" Content="播放音频" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnSpeakerDetection_Click" >
252
+                            <Button.Template>
253
+                                <ControlTemplate TargetType="{x:Type Button}">
254
+                                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
255
+                                        <Border.Background>
256
+                                            <Brush>#2E8CF0</Brush>
257
+                                        </Border.Background>
258
+                                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
259
+                                    </Border>
260
+                                </ControlTemplate>
261
+                            </Button.Template>
262
+                        </Button>
263
+
264
+                        <MediaElement x:Name="MediaAudio" Stretch="Fill" LoadedBehavior="Manual" Width="0" Volume="1" MediaOpened="MediaAudio_MediaOpened" MediaEnded="MediaAudio_MediaEnded" Visibility="Hidden"/>
265
+                        <!--<Slider x:Name="timelineSlider" Minimum="0" VerticalAlignment="Center"  BorderThickness="0,5,0,0" Width="150" Height="30" />-->
266
+                    </StackPanel>
267
+                </Grid>
268
+                <Grid Grid.Row="1">
269
+                    <!--<MediaElement Source="/SkinImages/Other/Dev_AcousticWave2.gif" OpacityMask="#FF000000" HorizontalAlignment="Left" Margin="10,0,0,0" LoadedBehavior="{Binding ElementName=MediaAudio,Path=LoadedBehavior}"/>-->
270
+                    <Grid  Margin="30,0,127,0" Background="#FFF1F2F8">
271
+                        <Image x:Name="ImgAcousticWave" gif:ImageBehavior.AnimatedSource="/SkinImages/Other/Dev_AcousticWave2.gif" gif:ImageBehavior.AutoStart="True" gif:ImageBehavior.RepeatBehavior="Forever" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Hidden"/>
272
+                    </Grid>
273
+                </Grid>
274
+                <Grid Grid.Row="2">
275
+                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,0,0,0">
276
+                        <TextBlock Text="声音采集:" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
277
+                        <TextBlock x:Name="TbxSpeakerDetection" Text="待检测" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
278
+                    </StackPanel>
279
+                </Grid>
280
+            </Grid>
281
+            <Grid x:Name="GridMicrophone" Grid.Column="1" Visibility="Collapsed">
282
+                <Grid.RowDefinitions>
283
+                    <RowDefinition Height="50*"/>
284
+                    <RowDefinition Height="45*"/>
285
+                    <RowDefinition Height="196*"/>
286
+                    <RowDefinition Height="95*"/>
287
+                </Grid.RowDefinitions>
288
+                <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0">
289
+                    <TextBlock Text="麦克风:" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
290
+                    <ComboBox Text="请选择" Cursor="Hand" Width="210" x:Name="CmbMicrophoneList" Padding="30,0,10,0" Style="{StaticResource stlComboBox}" BorderThickness="0" DisplayMemberPath="Value" FontSize="14" SelectedValuePath="Key" Background="White" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Top" />
291
+                    <Button x:Name="BtnMicrophoneSave" Grid.Row="2" Width="70" Height="30" Content="设置" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneSave_Click">
234 292
                         <Button.Template>
235 293
                             <ControlTemplate TargetType="{x:Type Button}">
236 294
                                 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
@@ -242,21 +300,9 @@
242 300
                             </ControlTemplate>
243 301
                         </Button.Template>
244 302
                     </Button>
245
-                    
246
-                    <MediaElement x:Name="MediaAudio" Stretch="Fill" LoadedBehavior="Manual" Width="0" Volume="1" MediaOpened="MediaAudio_MediaOpened" MediaEnded="MediaAudio_MediaEnded" Visibility="Hidden"/>
247
-                    <!--<Slider x:Name="timelineSlider" Minimum="0" VerticalAlignment="Center"  BorderThickness="0,5,0,0" Width="150" Height="30" />-->
248
-                </StackPanel>
249
-
250
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,60,0,0">
251
-                    <TextBlock Text="声音采集:" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
252
-                    <TextBlock x:Name="TbxSpeakerDetection" Text="待检测" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
253 303
                 </StackPanel>
254
-            </Grid>
255
-            <Grid x:Name="GridMicrophone" Grid.Column="1" Visibility="Visible">
256
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0">
257
-                    <TextBlock Text="麦克风:" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
258
-                    <ComboBox Text="请选择" Cursor="Hand" Width="210" x:Name="CmbMicrophoneList" Padding="30,0,10,0" Style="{StaticResource stlComboBox}" BorderThickness="0" DisplayMemberPath="Value" FontSize="14" SelectedValuePath="Key" Background="White" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Top" />
259
-                    <Button x:Name="BtnMicrophoneSave" Grid.Row="2" Width="70" Height="30" Content="设置" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneSave_Click">
304
+                <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0">
305
+                    <Button x:Name="BtnMicrophoneDetection" Width="100" Height="30" Content="开始录音" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneDetection_Click" >
260 306
                         <Button.Template>
261 307
                             <ControlTemplate TargetType="{x:Type Button}">
262 308
                                 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
@@ -268,9 +314,8 @@
268 314
                             </ControlTemplate>
269 315
                         </Button.Template>
270 316
                     </Button>
271
-                </StackPanel>
272
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,60,0,0">
273
-                    <Button x:Name="BtnMicrophoneDetection" Grid.Row="2" Width="100" Height="30" Content="开始录音" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneDetection_Click" >
317
+                
318
+                    <Button x:Name="BtnMicrophoneDetectionPlay" Width="100" Height="30" Content="播放" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneDetectionPlay_Click" Margin="10,0,0,0" >
274 319
                         <Button.Template>
275 320
                             <ControlTemplate TargetType="{x:Type Button}">
276 321
                                 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
@@ -282,25 +327,19 @@
282 327
                             </ControlTemplate>
283 328
                         </Button.Template>
284 329
                     </Button>
330
+                    <MediaElement x:Name="MediaAudioMicPlay" Stretch="Fill" LoadedBehavior="Manual" Width="0" Volume="1" MediaEnded="MediaAudioMicPlay_MediaEnded" Visibility="Hidden"/>
285 331
                 </StackPanel>
286
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,100,0,0">
332
+                <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,0,0,0">
287 333
                     <TextBlock Text="麦克风采集:" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
288 334
                     <TextBlock x:Name="TbxMicrophoneDetection" Text="待检测" FontSize="17"  Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
289 335
                 </StackPanel>
290
-                <Button x:Name="BtnMicrophoneDetectionPlay" Content="播放" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,142,347,214" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneDetectionPlay_Click" >
291
-                    <Button.Template>
292
-                        <ControlTemplate TargetType="{x:Type Button}">
293
-                            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
294
-                                <Border.Background>
295
-                                    <Brush>#2E8CF0</Brush>
296
-                                </Border.Background>
297
-                                <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
298
-                            </Border>
299
-                        </ControlTemplate>
300
-                    </Button.Template>
301
-                </Button>
302
-                <MediaElement x:Name="MediaAudioMicPlay" Stretch="Fill" LoadedBehavior="Manual" Width="0" Volume="1" MediaEnded="MediaAudioMicPlay_MediaEnded" Visibility="Hidden"/>
303
-
336
+                <!--<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0">
337
+                </StackPanel>-->
338
+                <Grid Grid.Row="2">
339
+                <Grid x:Name="GridMicImg" Margin="30,0,0,0" Background="#FFF1F2F8" Width="320" Height="180" HorizontalAlignment="Left" Visibility="Visible">
340
+                    <Image x:Name="ImgMicAcousticWave" gif:ImageBehavior.AnimatedSource="/SkinImages/Other/Dev_AcousticWave2.gif" gif:ImageBehavior.AutoStart="True" gif:ImageBehavior.RepeatBehavior="Forever" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Hidden"/>
341
+                </Grid>
342
+                </Grid>
304 343
             </Grid>
305 344
         </Grid>
306 345
     </Grid>

+ 43
- 15
XHWK.WKTool/DeviceWindow.xaml.cs View File

@@ -223,27 +223,40 @@ namespace XHWK.WKTool
223 223
         /// <param name="e"></param>
224 224
         private void BtnCameraSave_Click(object sender, RoutedEventArgs e)
225 225
         {
226
-            for (int i = 0; i < CameraHelper.CameraDevices.Count; i++)
226
+            try
227 227
             {
228
-                if (CameraHelper.CameraDevices[i].Name == "screen-capture-recorder")
228
+                for (int i = 0; i < CameraHelper.CameraDevices.Count; i++)
229 229
                 {
230
-                    continue;
230
+                    if (CameraHelper.CameraDevices[i].Name == "screen-capture-recorder")
231
+                    {
232
+                        continue;
233
+                    }
234
+                    if (CameraHelper.CameraDevices[i].Name == CmbCameraList.Text)
235
+                    {
236
+                        APP.CameraName = CameraHelper.CameraDevices[i].Name;
237
+                    }
231 238
                 }
232
-                if (CameraHelper.CameraDevices[i].Name == CmbCameraList.Text)
239
+                if (times != null && times.Enabled == true)
233 240
                 {
234
-                    APP.CameraName = CameraHelper.CameraDevices[i].Name;
241
+                    times.Enabled = false;
235 242
                 }
243
+                imgPlayer.Visibility = Visibility.Hidden;
244
+                try
245
+                {
246
+                    CameraHelper.CloseDevice();
247
+                }
248
+                catch (Exception)
249
+                {
250
+                }
251
+                I = 9999;
252
+                MessageWindow.Show("设置成功!");
236 253
             }
237
-            times.Enabled = false;
238
-            imgPlayer.Visibility = Visibility.Hidden;
239
-            try
240
-            {
241
-                CameraHelper.CloseDevice();
242
-            }
243
-            catch (Exception)
254
+            catch (Exception ex)
244 255
             {
256
+                APP.CameraName = "";
257
+                MessageWindow.Show("当前无法设置摄像头!");
258
+                LogHelper.WriteErrLog("【摄像头检测】(DeviceWindow)当前无法设置摄像头:" + ex.Message, ex);
245 259
             }
246
-            I = 9999;
247 260
             //APP.CameraListIndex = CmbCameraList.SelectedIndex;
248 261
         }
249 262
         /// <summary>
@@ -359,7 +372,7 @@ namespace XHWK.WKTool
359 372
                 Dispatcher.Invoke(() =>
360 373
                 {
361 374
                     MediaAudio.Play();
362
-
375
+                    ImgAcousticWave.Visibility = Visibility.Visible;
363 376
                 });
364 377
                 Thread.Sleep(4000);
365 378
                 #region 检测扬声器
@@ -383,6 +396,7 @@ namespace XHWK.WKTool
383 396
 
384 397
                 Dispatcher.Invoke(() =>
385 398
                 {
399
+                    ImgAcousticWave.Visibility = Visibility.Hidden;
386 400
                     BtnSpeakerDetection.Content = "再次检测";
387 401
                     BtnSpeakerDetection.IsEnabled = true;
388 402
                 });
@@ -451,6 +465,8 @@ namespace XHWK.WKTool
451 465
         private void BtnMicrophoneDetection_Click(object sender, RoutedEventArgs e)
452 466
         {
453 467
             BtnMicrophoneDetectionPlay.Visibility = Visibility.Hidden;
468
+            ImgMicAcousticWave.Visibility = Visibility.Hidden;
469
+            //GridMicImg.Visibility = Visibility.Hidden;
454 470
             string AudioPath = FileToolsCommon.GetFileAbsolutePath("/temp/audio/");
455 471
             FileToolsCommon.CreateDirectory(AudioPath);
456 472
             string audioMicrophonePath = AudioPath + "adoM" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".mp3";
@@ -461,13 +477,21 @@ namespace XHWK.WKTool
461 477
             {
462 478
                 #region 检测麦克风
463 479
                 bool Record = APP.FFmpeg.StartRecordAudio(audioMicrophonePath, APP.MicrophoneName, false);
464
-                Thread.Sleep(5000);
480
+                for (int i = 5; i > 0; i--)
481
+                {
482
+                    Dispatcher.Invoke(() =>
483
+                    {
484
+                        TbxMicrophoneDetection.Text = "录制中..." + i + "s";
485
+                    });
486
+                    Thread.Sleep(1000);
487
+                }
465 488
                 if (Record)
466 489
                 {
467 490
                     Dispatcher.Invoke(() =>
468 491
                     {
469 492
                         TbxMicrophoneDetection.Text = "录制成功";
470 493
                         BtnMicrophoneDetectionPlay.Visibility = Visibility.Visible;
494
+                        //GridMicImg.Visibility = Visibility.Visible;
471 495
                         MediaAudioMicPlay.Source = new Uri(audioMicrophonePath);
472 496
                     });
473 497
                 }
@@ -478,6 +502,7 @@ namespace XHWK.WKTool
478 502
                     {
479 503
                         TbxMicrophoneDetection.Text = "不可用";
480 504
                         BtnMicrophoneDetectionPlay.Visibility = Visibility.Hidden;
505
+                        //GridMicImg.Visibility = Visibility.Hidden;
481 506
                     });
482 507
                 }
483 508
                 APP.FFmpeg.StopRecordAudio(1);
@@ -498,6 +523,7 @@ namespace XHWK.WKTool
498 523
         {
499 524
             BtnMicrophoneDetectionPlay.Content = "播放中";
500 525
             BtnMicrophoneDetectionPlay.IsEnabled = false;
526
+            ImgMicAcousticWave.Visibility = Visibility.Visible;
501 527
             MediaAudioMicPlay.Play();
502 528
         }
503 529
         /// <summary>
@@ -511,6 +537,7 @@ namespace XHWK.WKTool
511 537
             MediaAudioMicPlay.Position = TimeSpan.Zero;
512 538
             BtnMicrophoneDetectionPlay.Content = "播放";
513 539
             BtnMicrophoneDetectionPlay.IsEnabled = true;
540
+            ImgMicAcousticWave.Visibility = Visibility.Hidden;
514 541
         }
515 542
         #endregion
516 543
 
@@ -586,6 +613,7 @@ namespace XHWK.WKTool
586 613
             HidePage();
587 614
             GridMicrophone.Visibility = Visibility.Visible;
588 615
             BtnMicrophoneDetectionPlay.Visibility = Visibility.Hidden;
616
+            ImgMicAcousticWave.Visibility = Visibility.Hidden;
589 617
             string AudioPath = FileToolsCommon.GetFileAbsolutePath("/temp/audio/");
590 618
             FileToolsCommon.DeleteDirectory(AudioPath);
591 619
 

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

@@ -645,5 +645,6 @@ namespace XHWK.WKTool
645 645
         /// 文件路径
646 646
         /// </summary>
647 647
         public string FilePath { get; set; }
648
+
648 649
     }
649 650
 }

+ 6
- 0
XHWK.WKTool/JieTuWindow.xaml.cs View File

@@ -353,6 +353,12 @@ namespace ComeCapture
353 353
             ShowInTaskbar = false;
354 354
             //this.Hide();
355 355
             //_Bitmap.Dispose();
356
+
357
+            if (ChangeTextEvent != null)
358
+            {
359
+                k_hook.Stop();
360
+                ChangeTextEvent("取消");
361
+            }
356 362
         }
357 363
 
358 364
         #endregion 退出截图

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

@@ -6,6 +6,7 @@ using System.Threading;
6 6
 using System.Windows;
7 7
 
8 8
 using XHWK.WKTool.DAL;
9
+using XHWK.WKTool.Skin;
9 10
 
10 11
 namespace XHWK.WKTool
11 12
 {

+ 86
- 58
XHWK.WKTool/LoginWindow.xaml View File

@@ -5,7 +5,7 @@
5 5
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6 6
         xmlns:local="clr-namespace:XHWK.WKTool"
7 7
         mc:Ignorable="d"
8
-        Title="LoginWindow" Height="358" Width="471"   AllowsTransparency="True"
8
+        Title="LoginWindow" Height="497" Width="312"   AllowsTransparency="True"
9 9
     ShowInTaskbar="False"
10 10
     WindowStartupLocation="CenterOwner"
11 11
     WindowStyle="None"  BorderThickness="7">
@@ -72,63 +72,91 @@
72 72
             </Setter>
73 73
         </Style>
74 74
     </Window.Resources>
75
-    <Grid Background="#FFFFFF">
76
-        <!--分5行-->
77
-        <Grid.RowDefinitions>
78
-            <RowDefinition Height="45"/>
79
-            <RowDefinition Height="80"/>
80
-            <RowDefinition Height="80"/>
81
-            <RowDefinition Height="50"/>
82
-            <RowDefinition Height="*"/>
83
-        </Grid.RowDefinitions>
84
-        <!--第一行 标题-->
85
-        <Grid x:Name="GridTitle" Visibility="Visible" Grid.Row="0" Margin="-1,0" Background="#38ADFF">
86
-            <TextBlock Text="登录星火微课系统" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
87
-            <Button  Cursor="Hand"  Grid.Row="0" x:Name="btnDown" Content="×" Background="Transparent" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource NoMouseOverButtonStyle}" Click="BtnDown_Click"/>
88
-        </Grid>
89
-        <Grid x:Name="GridTitle_Black" Visibility="Collapsed" Grid.Row="0" Margin="0,0" Background="#FFE9E9E9">
90
-            <TextBlock Text="登录星火微课系统" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0"/>
91
-            <Button  Cursor="Hand"  Grid.Row="0" x:Name="btnDown_Black" Content="×" Background="Transparent" Foreground="#FF333333" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource NoMouseOverButtonStyle}" Click="BtnDown_Click"/>
92
-        </Grid>
93
-        <!--第二行 登录 账号-->
94
-        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="30,30,30,0">
95
-            <TextBlock Text="登录" FontSize="18" Padding="2,15,10,0"/>
96
-            <!--输入框-->
97
-            <Border Background="#cccbce" Width="344" Height="43" CornerRadius="3" Margin="0,0,0,1">
98
-                <TextBox x:Name="txbAccountNumber" InputMethod.IsInputMethodEnabled="False" PreviewTextInput="txbAccountNumber_PreviewTextInput"  Text="" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="342" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
99
-            </Border>
100
-        </StackPanel>
101
-        <!--第三行 密码-->
102
-        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,30,0,1">
103
-            <TextBlock Text="密码" FontSize="18" Padding="2,15,10,0"/>
104
-            <!--输入框-->
105
-            <Border Background="#cccbce" Width="344" Height="43" CornerRadius="3">
106
-                <PasswordBox x:Name="pobPassword" FontSize="16" Foreground="#333333" PasswordChar="*" Padding="5,12,2,2" Width="342" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
107
-            </Border>
108
-        </StackPanel>
109
-        <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="32,10,0,0">
110
-            <Viewbox Height="23">
111
-                <CheckBox Cursor="Hand"  x:Name="ckSaveName" Click="CkSaveName_Click"   Style="{DynamicResource CheckBoxStyle1}"/>
112
-            </Viewbox>
113
-            <TextBlock Text="记住账号" FontSize="18" Height="30" Padding="5,3,0,0" Margin="0,0,0,1"/>
114
-        </StackPanel>
75
+    <Grid>
76
+        <Border Background="White" CornerRadius="15" MouseLeftButtonDown="Border_MouseLeftButtonDown" >
77
+            <Grid>
78
+                <Image Source="/SkinImages/ImgCarousel/CM_RightDown.png" HorizontalAlignment="Right" VerticalAlignment="Top" Width="80" />
79
+                <!--创建内页 375-->
80
+                <Grid Margin="20,0">
81
+                    <Grid.RowDefinitions>
82
+                        <RowDefinition Height="100*"/>
83
+                        <RowDefinition Height="70*"/>
84
+                        <RowDefinition Height="70*"/>
85
+                        <RowDefinition Height="15*"/>
86
+                        <RowDefinition Height="120*"/>
87
+                    </Grid.RowDefinitions>
88
+                    <Grid Grid.Row="0">
89
+                        <StackPanel Margin="0,30,0,0">
90
+                            <Label Content="登录" FontSize="28" Foreground="#FF4B62EA" VerticalAlignment="Top" HorizontalAlignment="Left"  />
91
+                            <Label Content="星火微课系统" FontSize="14" Foreground="#FF000000" VerticalAlignment="Top" HorizontalAlignment="Left" />
92
+                        </StackPanel>
93
+                    </Grid>
94
+                    <!--讲解名称-->
95
+                    <Grid Grid.Row="1">
96
+                        <StackPanel VerticalAlignment="Center">
97
+                            <Label Content="账号:" FontSize="12" Foreground="#FF666666"/>
98
+                            <TextBox x:Name="txbAccountNumber" InputMethod.IsInputMethodEnabled="False" PreviewTextInput="txbAccountNumber_PreviewTextInput"  Text="" FontSize="14" Foreground="#FF999999" BorderBrush="{x:Null}" BorderThickness="0" Margin="5,5"/>
99
+                            <Label Background="#FF317EEC" Height="1.5"/>
100
+                        </StackPanel>
101
+                    </Grid>
102
+                    <!--存放路径-->
103
+                    <Grid Grid.Row="2">
104
+                        <StackPanel VerticalAlignment="Center">
105
+                            <Label Content="密码:" FontSize="12" Foreground="#FF666666"/>
106
+                            <PasswordBox x:Name="pobPassword" FontSize="14" Foreground="#FF999999" PasswordChar="*" BorderBrush="{x:Null}" BorderThickness="0"  Margin="5,5"/>
107
+                            <Label Background="#FF317EEC" Height="1.5"/>
108
+                        </StackPanel>
109
+                        <!--<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,0,30,1" Grid.ColumnSpan="2">
110
+                                <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
111
+                                <TextBlock Text="存放路径" FontSize="18" Padding="2,23,10,0"/>
112
+                                -->
113
+                        <!--输入框-->
114
+                        <!--
115
+                                <Border Background="#CDD6E0" Width="200" Height="43" CornerRadius="3">
116
+                                    <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="198" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
117
+                                </Border>
118
+                                -->
119
+                        <!--浏览按钮-->
120
+                        <!--
121
+                                <Button Cursor="Hand" x:Name="btnBrowse" FontSize="18" Width="80" Height="43" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}"
122
+                                Background="#F7F7F7" Margin="11,0,0,0"/>
123
+                            </StackPanel>-->
124
+                    </Grid>
125
+                    <!--按钮-->
126
+                    <Grid Grid.Row="3">
127
+                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
128
+                            <Viewbox VerticalAlignment="Center" Margin="0,0,5,0">
129
+                                <CheckBox Cursor="Hand"  x:Name="ckSaveName" Click="CkSaveName_Click"   Style="{DynamicResource CheckBoxStyle1}"/>
130
+                            </Viewbox>
131
+                            <TextBlock Text="记住账号" FontSize="10" VerticalAlignment="Center" Foreground="#FFB2B2B2"/>
132
+                        </StackPanel>
115 133
 
116
-        <!--第五行 开始按钮-->
117
-        <Button  Cursor="Hand" Grid.Row="4" x:Name="btnStart" Content="登录" FontSize="18" Foreground="#FFFFFF" FontWeight="Bold" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="394" Height="48" Margin="30,0,30,0" Click="BtnStart_Click" IsDefault="True">
118
-            <Button.Template>
119
-                <ControlTemplate TargetType="{x:Type Button}">
120
-                    <Border
121
-                                BorderBrush="{TemplateBinding Control.BorderBrush}"
122
-                                BorderThickness="1"
123
-                                CornerRadius="3">
124
-                        <Border.Background>#38ADFF</Border.Background>
125
-                        <ContentPresenter
126
-                                    HorizontalAlignment="Center"
127
-                                    VerticalAlignment="Center"
128
-                                    Content="{TemplateBinding ContentControl.Content}" />
129
-                    </Border>
130
-                </ControlTemplate>
131
-            </Button.Template>
132
-        </Button>
134
+                        <Label x:Name="LblCreate" Content="创建微课中..." FontSize="12" Foreground="#FF999999" HorizontalAlignment="Right" Visibility="Hidden" Margin="0"/>
135
+                    </Grid>
136
+                    <Grid Grid.Row="4">
137
+                        <Button  Cursor="Hand" x:Name="btnStart" IsDefault="True" Content="登录" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,0,50" Click="BtnStart_Click" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
138
+                            <Button.Template>
139
+                                <ControlTemplate TargetType="{x:Type Button}">
140
+                                    <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="20">
141
+                                        <Border.Background>#FF1D64DA</Border.Background>
142
+                                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding ContentControl.Content}" Margin="0,5" />
143
+                                    </Border>
144
+                                </ControlTemplate>
145
+                            </Button.Template>
146
+                        </Button>
147
+                        <Button Cursor="Hand" x:Name="BtnStop" IsDefault="True" Content="关闭" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,40,0,0" Click="BtnDown_Click" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Center" HorizontalContentAlignment="Center" Padding="2" VerticalContentAlignment="Center">
148
+                            <Button.Template>
149
+                                <ControlTemplate TargetType="{x:Type Button}">
150
+                                    <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="20">
151
+                                        <Border.Background>#FFC3C3C3</Border.Background>
152
+                                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding ContentControl.Content}" Margin="0,5" />
153
+                                    </Border>
154
+                                </ControlTemplate>
155
+                            </Button.Template>
156
+                        </Button>
157
+                    </Grid>
158
+                </Grid>
159
+            </Grid>
160
+        </Border>
133 161
     </Grid>
134 162
 </Window>

+ 26
- 21
XHWK.WKTool/LoginWindow.xaml.cs View File

@@ -24,21 +24,21 @@ namespace XHWK.WKTool
24 24
         public LoginWindow()
25 25
         {
26 26
             InitializeComponent();
27
-            if (APP.SkinStyle == "Blue")
28
-            {
29
-                GridTitle.Visibility = Visibility.Visible;
30
-                GridTitle_Black.Visibility = Visibility.Collapsed;
31
-            }
32
-            else if (APP.SkinStyle == "Black")
33
-            {
34
-                GridTitle.Visibility = Visibility.Collapsed;
35
-                GridTitle_Black.Visibility = Visibility.Visible;
36
-            }
37
-            else
38
-            {
39
-                GridTitle.Visibility = Visibility.Visible;
40
-                GridTitle_Black.Visibility = Visibility.Collapsed;
41
-            }
27
+            //if (APP.SkinStyle == "1")
28
+            //{
29
+            //    GridTitle.Visibility = Visibility.Visible;
30
+            //    GridTitle_Black.Visibility = Visibility.Collapsed;
31
+            //}
32
+            //else if (APP.SkinStyle == "2")
33
+            //{
34
+            //    GridTitle.Visibility = Visibility.Collapsed;
35
+            //    GridTitle_Black.Visibility = Visibility.Visible;
36
+            //}
37
+            //else
38
+            //{
39
+            //    GridTitle.Visibility = Visibility.Visible;
40
+            //    GridTitle_Black.Visibility = Visibility.Collapsed;
41
+            //}
42 42
             Initialize();
43 43
         }
44 44
         public void Initialize()
@@ -135,12 +135,12 @@ namespace XHWK.WKTool
135 135
                 txbAccountNumber.Text = string.Empty;
136 136
                 pobPassword.Password = string.Empty;
137 137
                 #region 下载头像
138
-                //string HeadpicPath = FileToolsCommon.GetFileAbsolutePath("/Data/"+APP.UserInfo.Username+".png");
139
-                //if (!string.IsNullOrWhiteSpace(APP.UserInfo.Headpic))
140
-                //{
141
-                //    //FileToolsCommon.
142
-                //    @interface.DownloadAvatar(APP.UserInfo.Headpic, HeadpicPath);
143
-                //}
138
+                string HeadpicPath = FileToolsCommon.GetFileAbsolutePath("/Data/" + APP.UserInfo.Username + ".png");
139
+                if (!string.IsNullOrWhiteSpace(APP.UserInfo.Headpic))
140
+                {
141
+                    //FileToolsCommon.
142
+                    @interface.DownloadAvatar(APP.UserInfo.Headpic, HeadpicPath);
143
+                }
144 144
                 #endregion
145 145
                 #region 登录后 根据用户名设置微课路径 废弃
146 146
                 //APP.WKData.WkPath += APP.UserInfo.Username + "/";
@@ -254,5 +254,10 @@ namespace XHWK.WKTool
254 254
             {
255 255
             }
256 256
         }
257
+
258
+        private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
259
+        {
260
+            DragMove();
261
+        }
257 262
     }
258 263
 }

+ 22
- 15
XHWK.WKTool/MinToolbar.xaml.cs View File

@@ -24,23 +24,30 @@ namespace XHWK.WKTool
24 24
             Topmost = true;
25 25
 
26 26
         }
27
-        public void Initialize(double top, int ColorType)
27
+        /// <summary>
28
+        /// 初始化隐藏工具栏位置颜色
29
+        /// </summary>
30
+        /// <param name="top"></param>
31
+        /// <param name="ColorType"></param>
32
+        public void Initialize(double top,double ThisHeight)
28 33
         {
29 34
             var desktopWorkingArea = System.Windows.SystemParameters.WorkArea;
30
-            this.Left = desktopWorkingArea.Right - this.Width + 7;
31
-            this.Top = top;
32
-            if (ColorType == 0)//Blue
33
-            {
34
-                BorderBlack.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2D8CF0"));
35
-            }
36
-            else if (ColorType == 1)//Black
37
-            {
38
-                BorderBlack.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#364044"));
39
-            }
40
-            else
41
-            {
42
-                BorderBlack.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2D8CF0"));
43
-            }
35
+            Left = desktopWorkingArea.Right - this.Width + 7;
36
+            Top = top;
37
+            BorderBlack.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF638AFF"));
38
+            Height = ThisHeight;
39
+            //if (ColorType == 0)//Blue
40
+            //{
41
+            //    BorderBlack.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2D8CF0"));
42
+            //}
43
+            //else if (ColorType == 1)//Black
44
+            //{
45
+            //    BorderBlack.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#364044"));
46
+            //}
47
+            //else
48
+            //{
49
+            //    BorderBlack.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2D8CF0"));
50
+            //}
44 51
             // + 330;
45 52
             //Console.WriteLine(this.Top + "min");
46 53
         }

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

@@ -368,7 +368,7 @@ namespace XHWK.WKTool
368 368
             Hide();
369 369
         }
370 370
         /// <summary>
371
-        /// 鼠标中点击
371
+        /// 鼠标中点击
372 372
         /// </summary>
373 373
         void SwitchPages()
374 374
         {

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

@@ -7,6 +7,7 @@ using System.Windows;
7 7
 
8 8
 using XHWK.Model;
9 9
 using XHWK.WKTool.DAL;
10
+using XHWK.WKTool.Skin;
10 11
 
11 12
 namespace XHWK.WKTool
12 13
 {

+ 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("2.5.17.0")]
53
-[assembly: AssemblyFileVersion("2.5.17.0")]
52
+[assembly: AssemblyVersion("2.5.24.0")]
53
+[assembly: AssemblyFileVersion("2.5.24.0")]

+ 194
- 128
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml View File

@@ -5,7 +5,7 @@
5 5
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6 6
         xmlns:local="clr-namespace:XHWK.WKTool"
7 7
         mc:Ignorable="d"
8
-        Title="ScreenRecordingToolbarWindow" Height="300" Width="400" AllowsTransparency="True" 
8
+        Title="ScreenRecordingToolbarWindow" Height="58" Width="423" AllowsTransparency="True" 
9 9
         Topmost="True"
10 10
     ShowInTaskbar="False"
11 11
     WindowStartupLocation="CenterOwner"
@@ -14,9 +14,200 @@
14 14
         <SolidColorBrush Opacity="0" Color="#292C2E" />
15 15
     </Window.Background>
16 16
     <Grid>
17
-        <Viewbox>
17
+        <Grid x:Name="GridSrToobar" Visibility="Visible" MouseLeftButtonDown="Grid_MouseLeftButtonDown"  MouseLeave="gridToobarTwo_MouseLeave">
18
+            <Grid.ColumnDefinitions>
19
+                <ColumnDefinition Width="56*"/>
20
+                <ColumnDefinition Width="361*"/>
21
+            </Grid.ColumnDefinitions>
22
+            <Border Grid.ColumnSpan="2"  Background="White" BorderBrush="#FF638AFF"  BorderThickness="3" CornerRadius="29"/>
23
+            <!--开始暂停-->
24
+            <Grid Grid.Column="0">
25
+                <Button Visibility="Visible" x:Name="BtnRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" ToolTip="开始" Click="BtnRecordingScreen_Click">
26
+                    <Button.Template>
27
+                        <ControlTemplate TargetType="{x:Type Button}">
28
+                            <Image x:Name="BtnImages"  Source="/SkinImages/SR/SR_Start.png" />
29
+                            <ControlTemplate.Triggers>
30
+                                <Trigger Property="IsMouseOver" Value="True">
31
+                                    <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start_MI.png"/>
32
+                                </Trigger>
33
+                                <Trigger Property="IsPressed" Value="True">
34
+                                    <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start.png"/>
35
+                                </Trigger>
36
+                                <Trigger Property="IsEnabled" Value="False">
37
+                                    <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start.png"/>
38
+                                </Trigger>
39
+                            </ControlTemplate.Triggers>
40
+                        </ControlTemplate>
41
+                    </Button.Template>
42
+                </Button>
43
+                <Button Visibility="Collapsed" x:Name="BtnRecordingScreenPause"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" ToolTip="暂停" Click="BtnRecordingScreen_Click">
44
+                    <Button.Template>
45
+                        <ControlTemplate TargetType="{x:Type Button}">
46
+                            <Image x:Name="BtnImages"  Source="/SkinImages/SR/SR_Pause.png" />
47
+                            <ControlTemplate.Triggers>
48
+                                <Trigger Property="IsMouseOver" Value="True">
49
+                                    <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause_MI.png"/>
50
+                                </Trigger>
51
+                                <Trigger Property="IsPressed" Value="True">
52
+                                    <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause.png"/>
53
+                                </Trigger>
54
+                                <Trigger Property="IsEnabled" Value="False">
55
+                                    <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause.png"/>
56
+                                </Trigger>
57
+                            </ControlTemplate.Triggers>
58
+                        </ControlTemplate>
59
+                    </Button.Template>
60
+                </Button>
61
+            </Grid>
62
+            <!--其他按钮-->
63
+            <Grid Grid.Column="1">
64
+                <Grid.RowDefinitions>
65
+                    <RowDefinition Height="10*"/>
66
+                    <RowDefinition Height="38*"/>
67
+                    <RowDefinition Height="10*"/>
68
+                </Grid.RowDefinitions>
69
+                <Grid.ColumnDefinitions>
70
+                    <ColumnDefinition Width="10*"/>
71
+                    <ColumnDefinition Width="38*"/>
72
+                    <ColumnDefinition Width="28*"/>
73
+                    <ColumnDefinition Width="92*"/>
74
+                    <ColumnDefinition Width="28*"/>
75
+                    <ColumnDefinition Width="38*"/>
76
+                    <ColumnDefinition Width="4*"/>
77
+                    <ColumnDefinition Width="38*"/>
78
+                    <ColumnDefinition Width="28*"/>
79
+                    <ColumnDefinition Width="38*"/>
80
+                    <ColumnDefinition Width="17*"/>
81
+                </Grid.ColumnDefinitions>
82
+                <Grid Grid.Row="1" Grid.Column="1">
83
+                    <!--停止-->
84
+                    <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  Click="BtnStopRecordingScreen_Click" ToolTip="停止">
85
+                        <Button.Template>
86
+                            <ControlTemplate TargetType="{x:Type Button}">
87
+                                <Image x:Name="BtnImages"  Source="/SkinImages/SR/SR_Stop.png" />
88
+                                <ControlTemplate.Triggers>
89
+                                    <Trigger Property="IsMouseOver" Value="True">
90
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Stop_MI.png"/>
91
+                                    </Trigger>
92
+                                    <Trigger Property="IsPressed" Value="True">
93
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Stop.png"/>
94
+                                    </Trigger>
95
+                                    <Trigger Property="IsEnabled" Value="False">
96
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Stop_N.png"/>
97
+                                    </Trigger>
98
+                                </ControlTemplate.Triggers>
99
+                            </ControlTemplate>
100
+                        </Button.Template>
101
+                    </Button>
102
+                </Grid>
103
+                <Grid Grid.Row="1" Grid.Column="2">
104
+                    <Grid.RowDefinitions>
105
+                        <RowDefinition Height="9*"/>
106
+                        <RowDefinition Height="20*"/>
107
+                        <RowDefinition Height="9*"/>
108
+                    </Grid.RowDefinitions>
109
+                    <Label Grid.Row="1" Background="#FF638AFF" Width="2" Padding="5" Margin="0"/>
110
+                </Grid>
111
+                <Grid Grid.Row="0" Grid.Column="3" Grid.RowSpan="3" >
112
+                    <Label x:Name="TxbTime" Content="00:00" FontSize="36" Foreground="#FF3F6FFF" Visibility="Visible" FontFamily="/星火微课;component/Resources/#Quartz" Padding="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1"/>
113
+                </Grid>
114
+                <Grid Grid.Row="1" Grid.Column="4">
115
+                    <Grid.RowDefinitions>
116
+                        <RowDefinition Height="9*"/>
117
+                        <RowDefinition Height="20*"/>
118
+                        <RowDefinition Height="9*"/>
119
+                    </Grid.RowDefinitions>
120
+                    <Label Grid.Row="1" Background="#FF638AFF" Width="2" Padding="5" Margin="0"/>
121
+                </Grid>
122
+                <Grid Grid.Row="1" Grid.Column="5">
123
+                    <!--蓝笔-->
124
+                    <Button x:Name="BtnPenBlue" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  Click="BtnBrush_Click" ToolTip="批注">
125
+                        <Button.Template>
126
+                            <ControlTemplate TargetType="{x:Type Button}">
127
+                                <Image x:Name="BtnImages"  Source="/SkinImages/SR/SR_PenBlue.png" />
128
+                                <ControlTemplate.Triggers>
129
+                                    <Trigger Property="IsMouseOver" Value="True">
130
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenBlue_MI.png"/>
131
+                                    </Trigger>
132
+                                    <Trigger Property="IsPressed" Value="True">
133
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenBlue_CL.png"/>
134
+                                    </Trigger>
135
+                                    <Trigger Property="IsEnabled" Value="False">
136
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenBlue_N.png"/>
137
+                                    </Trigger>
138
+                                </ControlTemplate.Triggers>
139
+                            </ControlTemplate>
140
+                        </Button.Template>
141
+                    </Button>
142
+                    <!--选中-->
143
+                    <Button x:Name="BtnPenBlue_CL" Visibility="Collapsed" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  Click="BtnBrush_Click" ToolTip="批注">
144
+                        <Button.Template>
145
+                            <ControlTemplate TargetType="{x:Type Button}">
146
+                                <Image x:Name="BtnImages"  Source="/SkinImages/SR/SR_PenBlue_CL.png" />
147
+                            </ControlTemplate>
148
+                        </Button.Template>
149
+                    </Button>
150
+                </Grid>
151
+                <Grid Grid.Row="1" Grid.Column="7">
152
+                    <!--红笔-->
153
+                    <Button x:Name="BtnPenRed" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  Click="BtnBlackPenTwo_Click" ToolTip="批注">
154
+                        <Button.Template>
155
+                            <ControlTemplate TargetType="{x:Type Button}">
156
+                                <Image x:Name="BtnImages"  Source="/SkinImages/SR/SR_PenRed.png" />
157
+                                <ControlTemplate.Triggers>
158
+                                    <Trigger Property="IsMouseOver" Value="True">
159
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenRed_MI.png"/>
160
+                                    </Trigger>
161
+                                    <Trigger Property="IsPressed" Value="True">
162
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenRed_CL.png"/>
163
+                                    </Trigger>
164
+                                    <Trigger Property="IsEnabled" Value="False">
165
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_PenRed_N.png"/>
166
+                                    </Trigger>
167
+                                </ControlTemplate.Triggers>
168
+                            </ControlTemplate>
169
+                        </Button.Template>
170
+                    </Button>
171
+                    <!--选中-->
172
+                    <Button x:Name="BtnPenRed_CL" Visibility="Collapsed" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  Click="BtnBlackPenTwo_Click" ToolTip="批注">
173
+                        <Button.Template>
174
+                            <ControlTemplate TargetType="{x:Type Button}">
175
+                                <Image x:Name="BtnImages"  Source="/SkinImages/SR/SR_PenRed_CL.png" />
176
+                            </ControlTemplate>
177
+                        </Button.Template>
178
+                    </Button>
179
+                </Grid>
180
+                <Grid Grid.Row="1" Grid.Column="8">
181
+                    <Grid.RowDefinitions>
182
+                        <RowDefinition Height="9*"/>
183
+                        <RowDefinition Height="20*"/>
184
+                        <RowDefinition Height="9*"/>
185
+                    </Grid.RowDefinitions>
186
+                    <Label Grid.Row="1" Background="#FF638AFF" Width="2" Padding="5" Margin="0"/>
187
+                </Grid>
188
+                <Grid Grid.Row="1" Grid.Column="9">
189
+                    <!--返回-->
190
+                    <Button x:Name="BtnReturn" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"  Click="BtnReturn_Click" ToolTip="返回">
191
+                        <Button.Template>
192
+                            <ControlTemplate TargetType="{x:Type Button}">
193
+                                <Image x:Name="BtnImages"  Source="/SkinImages/SR/SR_Out.png" />
194
+                                <ControlTemplate.Triggers>
195
+                                    <Trigger Property="IsMouseOver" Value="True">
196
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Out_MI.png"/>
197
+                                    </Trigger>
198
+                                    <Trigger Property="IsEnabled" Value="False">
199
+                                        <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Out_N.png"/>
200
+                                    </Trigger>
201
+                                </ControlTemplate.Triggers>
202
+                            </ControlTemplate>
203
+                        </Button.Template>
204
+                    </Button>
205
+                </Grid>
206
+            </Grid>
207
+        </Grid>
208
+        <Viewbox Visibility="Collapsed">
18 209
             <StackPanel>
19
-                <Viewbox x:Name="VbxBlue" Visibility="Visible">
210
+                <Viewbox Visibility="Collapsed">
20 211
                     <Grid x:Name="gridToobar" MouseLeftButtonDown="Grid_MouseLeftButtonDown">
21 212
                         <Image x:Name="imgCanvas" Visibility="Collapsed"/>
22 213
                         <InkCanvas x:Name="blackboard_canvas" Background="Transparent" Visibility="Collapsed" Grid.RowSpan="2" />
@@ -71,133 +262,8 @@
71 262
                                 <Button  Cursor="Hand" x:Name="btnCrude" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Background="#FFFFFF" Height="10" Width="20" Margin="0,10,0,0" Click="BtnCrude_Click"/>
72 263
                             </StackPanel>
73 264
                         </Grid>
74
-                        <Grid x:Name="gridToobarTwo" MouseLeave="gridToobarTwo_MouseLeave">
75
-                            <Image Source="./Images/Toobar0.png"/>
76
-                            <StackPanel HorizontalAlignment="Left" Margin="43,25,0,0" VerticalAlignment="Center">
77
-                                <Button x:Name="BtnRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" ToolTip="开始" Click="BtnRecordingScreen_Click">
78
-                                    <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar26.png"/>
79
-                                </Button>
80
-                                <TextBlock x:Name="txbTime" Text="00:00" FontSize="20" Foreground="#FFFFFF" Visibility="Hidden"/>
81
-                            </StackPanel>
82
-                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,15,0">
83
-                                <!--<Button x:Name="BtnRecordingScreen"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,15,0" Click="BtnRecordingScreen_Click">
84
-                                   <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar25.png"/>
85
-                                   </Button>-->
86
-                                <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnStopRecordingScreen_Click" ToolTip="停止">
87
-                                    <Border Background="#2d8cf0" CornerRadius="22">
88
-                                        <Image x:Name="ImgEndRecordingScreen" Source="./Images/Toobar15.png" Margin="5,5,5,5"/>
89
-                                    </Border>
90
-                                </Button>
91
-                                <Button  Cursor="Hand" x:Name="btnBlackPenOne" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnBrush_Click" ToolTip="批注">
92
-                                    <Border x:Name="borOne" Background="#2d8cf0" CornerRadius="22">
93
-                                        <Image x:Name="imgBlackPenOne" Source="./Images/31.png" Margin="5,5,5,5"/>
94
-                                    </Border>
95
-                                </Button>
96
-                                <Button  Cursor="Hand" x:Name="btnBlackPenTwo" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnBlackPenTwo_Click" ToolTip="批注">
97
-                                    <Border x:Name="borTwo" Background="#2d8cf0" CornerRadius="22">
98
-                                        <Image x:Name="imgBlackPenTwo" Source="./Images/31.png" Margin="5,5,5,5"/>
99
-                                    </Border>
100
-                                </Button>
101
-                                <Button  Cursor="Hand" x:Name="btnReturn" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,12,0" Click="BtnReturn_Click" ToolTip="返回">
102
-                                    <Border Background="#2d8cf0" CornerRadius="22">
103
-                                        <Image x:Name="imgReturn" Source="./Images/Toobar29.png" Margin="5,5,5,5"/>
104
-                                    </Border>
105
-                                </Button>
106
-                            </StackPanel>
107
-                        </Grid>
108 265
                     </Grid>
109 266
                 </Viewbox>
110
-                <Viewbox x:Name="VbxBlack" Visibility="Visible">
111
-                    <Border x:Name="BorderBlack" BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="10"  MouseLeftButtonDown="Grid_MouseLeftButtonDown" MouseLeave="gridToobarTwo_MouseLeave">
112
-                        <Border.Background>#FF262633</Border.Background>
113
-                        <Grid x:Name="GridToobar_Black" Height="50" Margin="3" Width="390">
114
-                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="10,0">
115
-                                <Button Visibility="Collapsed" x:Name="BtnRecordingScreenPause_Black" HorizontalAlignment="Left"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" ToolTip="暂停" Click="BtnRecordingScreen_Click">
116
-                                    <Image Source="/BlackImages/SR_Pause.png" />
117
-                                </Button>
118
-                                <Button x:Name="BtnRecordingScreen_Black" HorizontalAlignment="Left"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" ToolTip="开始" Click="BtnRecordingScreen_Click">
119
-                                    <Image>
120
-                                        <Image.Resources>
121
-                                            <Style TargetType="{x:Type Image}">
122
-                                                <Setter Property="Source" Value="/BlackImages/SR_Start.png"/>
123
-                                                <Style.Triggers>
124
-                                                    <Trigger Property="IsMouseOver" Value="True">
125
-                                                        <Setter Property="Cursor" Value="Hand"/>
126
-                                                        <Setter Property="Source" Value="/BlackImages/SR_Start_MI.png"/>
127
-                                                    </Trigger>
128
-                                                </Style.Triggers>
129
-                                            </Style>
130
-                                        </Image.Resources>
131
-                                    </Image>
132
-                                </Button>
133
-                                <Button x:Name="BtnStopRecordingScreen_Black" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" Click="BtnStopRecordingScreen_Click" ToolTip="停止">
134
-                                    <Image>
135
-                                        <Image.Resources>
136
-                                            <Style TargetType="{x:Type Image}">
137
-                                                <Setter Property="Source" Value="/BlackImages/SR_Stop.png"/>
138
-                                                <Style.Triggers>
139
-                                                    <Trigger Property="IsEnabled" Value="False">
140
-                                                        <Setter Property="Cursor" Value="Hand"/>
141
-                                                        <Setter Property="Source" Value="/BlackImages/SR_Stop_N.png"/>
142
-
143
-                                                    </Trigger>
144
-                                                </Style.Triggers>
145
-                                            </Style>
146
-                                        </Image.Resources>
147
-                                    </Image>
148
-                                </Button>
149
-                                <TextBlock Text="|" FontSize="30" Foreground="#FF48555A" Margin="5,0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
150
-                                <TextBlock x:Name="txbTime_Black" Text="00:00" FontSize="40" Foreground="#FFFFFF" Margin="5,0" Visibility="Visible" FontFamily="/星火微课;component/Resources/#Quartz" VerticalAlignment="Center" HorizontalAlignment="Left"/>
151
-                                <TextBlock Text="|" FontSize="30" Foreground="#FF48555A" Margin="5,0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
152
-                                <Button Cursor="Hand" x:Name="btnBlackPenOne_Black" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" Click="BtnBrush_Click" ToolTip="批注">
153
-                                    <Image>
154
-                                        <Image.Resources>
155
-                                            <Style TargetType="{x:Type Image}">
156
-                                                <Setter Property="Source" Value="/BlackImages/SR_PenBlue.png"/>
157
-                                                <Style.Triggers>
158
-                                                    <Trigger Property="IsEnabled" Value="False">
159
-                                                        <Setter Property="Cursor" Value="Hand"/>
160
-                                                        <Setter Property="Source" Value="/BlackImages/SR_Pen_N.png"/>
161
-                                                    </Trigger>
162
-                                                </Style.Triggers>
163
-                                            </Style>
164
-                                        </Image.Resources>
165
-                                    </Image>
166
-                                </Button>
167
-                                <Button  Cursor="Hand" x:Name="btnBlackPenTwo_Black" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" Click="BtnBlackPenTwo_Click" ToolTip="批注">
168
-                                    <Image>
169
-                                        <Image.Resources>
170
-                                            <Style TargetType="{x:Type Image}">
171
-                                                <Setter Property="Source" Value="/BlackImages/SR_PenRed.png"/>
172
-                                                <Style.Triggers>
173
-                                                    <Trigger Property="IsEnabled" Value="False">
174
-                                                        <Setter Property="Cursor" Value="Hand"/>
175
-                                                        <Setter Property="Source" Value="/BlackImages/SR_Pen_N.png"/>
176
-                                                    </Trigger>
177
-                                                </Style.Triggers>
178
-                                            </Style>
179
-                                        </Image.Resources>
180
-                                    </Image>
181
-                                </Button>
182
-                                <Button  Cursor="Hand" x:Name="btnReturn_Black" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="5" Click="BtnReturn_Click" ToolTip="返回">
183
-                                    <Image>
184
-                                        <Image.Resources>
185
-                                            <Style TargetType="{x:Type Image}">
186
-                                                <Setter Property="Source" Value="/BlackImages/SR_Out.png"/>
187
-                                                <Style.Triggers>
188
-                                                    <Trigger Property="IsEnabled" Value="False">
189
-                                                        <Setter Property="Cursor" Value="Hand"/>
190
-                                                        <Setter Property="Source" Value="/BlackImages/SR_Out_N.png"/>
191
-                                                    </Trigger>
192
-                                                </Style.Triggers>
193
-                                            </Style>
194
-                                        </Image.Resources>
195
-                                    </Image>
196
-                                </Button>
197
-                            </StackPanel>
198
-                        </Grid>
199
-                    </Border>
200
-                </Viewbox>
201 267
             </StackPanel>
202 268
         </Viewbox>
203 269
     </Grid>

+ 176
- 229
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs View File

@@ -32,7 +32,7 @@ namespace XHWK.WKTool
32 32
         private bool IsFirstRS = true;
33 33
 
34 34
         /// <summary>
35
-        /// 是否暂停
35
+        /// 是否停止/暂停
36 36
         /// </summary>
37 37
         private bool IsSuspend = true;
38 38
 
@@ -75,34 +75,13 @@ namespace XHWK.WKTool
75 75
             InitializeComponent();
76 76
             ResizeMode = ResizeMode.NoResize;
77 77
 
78
-            if (APP.SkinStyle == "Blue")
79
-            {
80
-                Width = 300;
81
-                VbxBlue.Visibility = Visibility.Visible;
82
-                VbxBlack.Visibility = Visibility.Collapsed;
83
-            }
84
-            else if (APP.SkinStyle == "Black")
85
-            {
86
-                Width = 400;
87
-                VbxBlue.Visibility = Visibility.Collapsed;
88
-                VbxBlack.Visibility = Visibility.Visible;
89
-            }
90
-            else
91
-            {
92
-                VbxBlue.Visibility = Visibility.Visible;
93
-                VbxBlack.Visibility = Visibility.Collapsed;
94
-            }
95
-            //Width = 300;
96
-            //VbxBlue.Visibility = Visibility.Visible;
97
-            //VbxBlack.Visibility = Visibility.Collapsed;
98 78
         }
99 79
         /// <summary>
100 80
         /// 初始化
101 81
         /// </summary>
102 82
         public void Initialize()
103 83
         {
104
-            gridToobar.Visibility = Visibility.Visible;
105
-            BorderBlack.Visibility = Visibility.Visible;
84
+            GridSrToobar.Visibility = Visibility.Visible;
106 85
             if (APP.W_PracticeWindow == null)
107 86
             {
108 87
                 APP.W_PracticeWindow = new PracticeWindow
@@ -129,13 +108,8 @@ namespace XHWK.WKTool
129 108
             }))).Start();
130 109
             APP.W_PracticeWindow.Hide();
131 110
 
132
-            //timer = new System.Timers.Timer(200);
133
-            //timer.Interval = 300;
134
-            //timer.Elapsed += new System.Timers.ElapsedEventHandler(TimerDealy);
135
-            //timer.Enabled = true; //启动计时器
136
-
137
-            borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
138
-            borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
111
+            //borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
112
+            //borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
139 113
             flg = 0;
140 114
 
141 115
 
@@ -150,39 +124,28 @@ namespace XHWK.WKTool
150 124
             drawingAttributes.FitToCurve = true;
151 125
             //隐藏画笔工具栏
152 126
             //BtnToolbarDown_Click(null, null);
153
-            gridToolbar.Visibility = Visibility.Hidden;
154
-            gridColour.Visibility = Visibility.Hidden;
155
-            gridThickness.Visibility = Visibility.Hidden;
156
-            ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar26.png"));//大圆圈三角形
157
-            BtnRecordingScreen_Black.Visibility = Visibility.Visible;
158
-            BtnRecordingScreenPause_Black.Visibility = Visibility.Collapsed;
159
-            ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
127
+            //GridSrToobar.Visibility = Visibility.Hidden;
128
+            //gridColour.Visibility = Visibility.Hidden;
129
+            //gridThickness.Visibility = Visibility.Hidden;
130
+            BtnRecordingScreen.Visibility = Visibility.Visible;
131
+            BtnRecordingScreenPause.Visibility = Visibility.Collapsed;
160 132
             BtnStopRecordingScreen.IsEnabled = false; //停止录制按钮不点击
161
-            BtnStopRecordingScreen_Black.IsEnabled = false;
162
-            BtnRecordingScreenPause_Black.IsEnabled = false;
163
-            imgBlackPenOne.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
164
-            btnBlackPenOne.IsEnabled = false;//蓝笔不可点击
165
-            btnBlackPenOne_Black.IsEnabled = false;
166
-            imgBlackPenTwo.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
167
-            btnBlackPenTwo.IsEnabled = false;//红笔不可点击
168
-            btnBlackPenTwo_Black.IsEnabled = false;
169
-            //imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
170
-            //btnReturn.IsEnabled = true;//返回主界面可点击
171
-            txbTime.Visibility = Visibility.Hidden;//时间不显示
172
-            txbTime_Black.Text = "00:00";
173
-            BtnRecordingScreen.ToolTip = "开始";
133
+            BtnPenBlue.IsEnabled = false;//蓝笔不可点击
134
+            BtnPenRed.IsEnabled = false;//红笔不可点击
135
+            BtnPenBlue.Visibility = Visibility.Visible;
136
+            BtnPenRed.Visibility = Visibility.Visible;
137
+            BtnPenBlue_CL.Visibility = Visibility.Collapsed;
138
+            BtnPenRed_CL.Visibility = Visibility.Collapsed;
139
+            TxbTime.Content = "00:00";
174 140
             if (t == null)
175 141
             {
176 142
                 t = new DispatcherTimer();
177 143
                 t.Tick += OnTimer;
178
-                t.Interval = new TimeSpan(0, 0, 0, 0, 300);
144
+                t.Interval = new TimeSpan(0, 0, 0, 0, 200);
179 145
                 t.IsEnabled = true;
180 146
                 t.Start();
181 147
             }
182
-            t.Interval = new TimeSpan(0, 0, 0, 0, 300);
183
-            //Stack();
184
-            //ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar25.png"));
185
-            //BtnRecordingScreen_Click(null, null);
148
+            t.Interval = new TimeSpan(0, 0, 0, 0, 200);
186 149
         }
187 150
 
188 151
         private void TimerDealy(object o, EventArgs e)
@@ -247,10 +210,10 @@ namespace XHWK.WKTool
247 210
                         DateTime dt = DateTime.Now;
248 211
                         TimeSpan ts = dt.Subtract(Recorddt);//时间差   
249 212
                         double tsmi = ts.TotalMilliseconds;
250
-                        if (tsmi > 500.0)
213
+                        if (tsmi > 1000.0)
251 214
                         {
252
-                            Recorddt = Recorddt.AddMilliseconds(500);
253
-                            SRTime = SRTime.AddMilliseconds(500);
215
+                            Recorddt = Recorddt.AddMilliseconds(1000);
216
+                            SRTime = SRTime.AddMilliseconds(1000);
254 217
                         }
255 218
                     }
256 219
                     break;
@@ -275,16 +238,14 @@ namespace XHWK.WKTool
275 238
             {
276 239
                 //Dispatcher.Invoke(() =>
277 240
                 //{
278
-                txbTime.Text = SRTime.ToString("HH:mm:ss");
279
-                txbTime_Black.Text = SRTime.ToString("HH:mm");
241
+                TxbTime.Content = SRTime.ToString("HH:mm:ss");
280 242
                 //});
281 243
             }
282 244
             else
283 245
             {
284 246
                 //Dispatcher.Invoke(() =>
285 247
                 //{
286
-                txbTime.Text = SRTime.ToString("mm:ss");
287
-                txbTime_Black.Text = SRTime.ToString("mm:ss");
248
+                TxbTime.Content = SRTime.ToString("mm:ss");
288 249
                 //});
289 250
             }
290 251
         }
@@ -432,38 +393,16 @@ namespace XHWK.WKTool
432 393
                 }
433 394
                 IsSuspend = false;
434 395
 
435
-                //#region 录像倒计时
436
-                //if (APP.W_CountdownWindow == null)
437
-                //{
438
-                //    APP.W_CountdownWindow = new CountdownWindow();
439
-                //    //APP.W_CountdownWindow.Topmost = true;
440
-                //}
441
-                //else
442
-                //{
443
-                //    APP.W_CountdownWindow.Initialize();
444
-                //    //APP.W_CountdownWindow.Topmost = true;
445
-                //}
446
-                //APP.W_CountdownWindow.Show();
447
-                //#endregion
448
-
449
-
450
-                ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar25.png"));//播放状态
451
-                BtnRecordingScreen_Black.Visibility = Visibility.Collapsed;
452
-                BtnRecordingScreenPause_Black.Visibility = Visibility.Visible;
453
-                ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar14.png"));
396
+                BtnRecordingScreen.Visibility = Visibility.Collapsed;
397
+                BtnRecordingScreenPause.Visibility = Visibility.Visible;
454 398
                 BtnStopRecordingScreen.IsEnabled = true; //停止录制按钮可点击
455
-                BtnStopRecordingScreen_Black.IsEnabled = true;
456
-                BtnRecordingScreenPause_Black.IsEnabled = true;
457
-                imgBlackPenOne.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar27.png"));
458
-                btnBlackPenOne.IsEnabled = true;//蓝笔可点击
459
-                btnBlackPenOne_Black.IsEnabled = true;
460
-                imgBlackPenTwo.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar28.png"));
461
-                btnBlackPenTwo.IsEnabled = true;//红笔可点击
462
-                btnBlackPenTwo_Black.IsEnabled = true;
463
-                txbTime.Visibility = Visibility.Visible;//时间显示
464
-                                                        //imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar30.png"));
465
-                                                        //borOne.Background = new SolidColorBrush(Colors.LightBlue);
466
-                BtnRecordingScreen.ToolTip = "暂停";
399
+                BtnPenBlue.IsEnabled = true;//蓝笔可点击
400
+                BtnPenRed.IsEnabled = true;//红笔可点击
401
+                BtnPenBlue.Visibility = Visibility.Visible;
402
+                BtnPenRed.Visibility = Visibility.Visible;
403
+                BtnPenBlue_CL.Visibility = Visibility.Collapsed;
404
+                BtnPenRed_CL.Visibility = Visibility.Collapsed;
405
+                TxbTime.Visibility = Visibility.Visible;//时间显示
467 406
 
468 407
                 #region 隐藏工具栏
469 408
                 if (APP.IsHideSRTool)
@@ -473,21 +412,18 @@ namespace XHWK.WKTool
473 412
                         APP.W_MinToolbar = new MinToolbar();
474 413
                     }
475 414
                     APP.W_MinToolbar.Topmost = true;
476
-                    double MinToolTop = this.Top + 70;
477
-                    int ColorType = 0;
478
-                    if (APP.SkinStyle == "Blue")
479
-                    {
480
-                        ColorType = 0;
481
-                        MinToolTop = this.Top + ((this.ActualHeight - btnReturn.ActualHeight) / 2);//(VbxBlue.ActualHeight -) 
482
-                    }
483
-                    else if (APP.SkinStyle == "Black")
484
-                    {
485
-                        ColorType = 1;
486
-                        MinToolTop = this.Top + ((this.ActualHeight - VbxBlack.ActualHeight) / 2);
487
-                    }
488
-                    APP.W_MinToolbar.Initialize(MinToolTop, ColorType);
489
-                    gridToobar.Visibility = Visibility.Hidden;
490
-                    BorderBlack.Visibility = Visibility.Hidden;
415
+                    double MinToolTop = Top;
416
+                    GridSrToobar.Visibility = Visibility.Hidden;
417
+                    //if (APP.SkinStyle == "1")
418
+                    //{
419
+                    //    ColorType = 0;
420
+                    //    MinToolTop = this.Top + ((this.ActualHeight - btnReturn.ActualHeight) / 2);//(VbxBlue.ActualHeight -) 
421
+                    //}
422
+                    //else if (APP.SkinStyle == "2")
423
+                    //{
424
+                    //MinToolTop = this.Top + ((this.ActualHeight - VbxBlack.ActualHeight) / 2);
425
+                    //}
426
+                    APP.W_MinToolbar.Initialize(MinToolTop,ActualHeight);
491 427
                     APP.W_MinToolbar.Show();
492 428
                 }
493 429
                 #endregion
@@ -505,13 +441,9 @@ namespace XHWK.WKTool
505 441
                         //Thread.Sleep(4000);
506 442
                         Dispatcher.Invoke(() =>
507 443
                         {
508
-                            ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar14.png"));
509 444
                             BtnRecordingScreen.IsEnabled = true;
510 445
                             BtnStopRecordingScreen.IsEnabled = true;
511
-                            BtnStopRecordingScreen_Black.IsEnabled = true;
512
-                            BtnRecordingScreen_Black.IsEnabled = true;
513
-                            BtnRecordingScreenPause_Black.IsEnabled = true;
514
-                            BtnRecordingScreenPause_Black.IsEnabled = true;
446
+                            BtnRecordingScreenPause.IsEnabled = true;
515 447
                         });
516 448
                     }))).Start();
517 449
                     #endregion
@@ -536,21 +468,18 @@ namespace XHWK.WKTool
536 468
                                 MessageWindow.Show(ErrMessage);
537 469
                                 //隐藏画笔工具栏
538 470
                                 //BtnToolbarDown_Click(null, null);
539
-                                gridToolbar.Visibility = Visibility.Hidden;
540
-                                gridColour.Visibility = Visibility.Hidden;
541
-                                gridThickness.Visibility = Visibility.Hidden;
542
-                                ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar26.png"));//大圆圈三角形
543
-                                BtnRecordingScreen_Black.Visibility = Visibility.Visible;
544
-                                BtnRecordingScreenPause_Black.Visibility = Visibility.Collapsed;
545
-                                ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
471
+                                //gridToolbar.Visibility = Visibility.Hidden;
472
+                                //gridColour.Visibility = Visibility.Hidden;
473
+                                //gridThickness.Visibility = Visibility.Hidden;
474
+                                BtnRecordingScreen.Visibility = Visibility.Visible;
475
+                                BtnRecordingScreenPause.Visibility = Visibility.Collapsed;
546 476
                                 BtnStopRecordingScreen.IsEnabled = false; //停止录制按钮不点击
547
-                                BtnStopRecordingScreen_Black.IsEnabled = false;
548
-                                imgBlackPenOne.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
549
-                                btnBlackPenOne.IsEnabled = false;//蓝笔不可点击
550
-                                imgBlackPenTwo.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
551
-                                btnBlackPenTwo.IsEnabled = false;//红笔不可点击
552
-                                txbTime.Visibility = Visibility.Hidden;//时间不显示
553
-                                BtnRecordingScreen.ToolTip = "开始";
477
+                                BtnPenBlue.IsEnabled = false;//蓝笔不可点击
478
+                                BtnPenRed.IsEnabled = false;//红笔不可点击
479
+                                BtnPenBlue.Visibility = Visibility.Visible;
480
+                                BtnPenRed.Visibility = Visibility.Visible;
481
+                                BtnPenBlue_CL.Visibility = Visibility.Collapsed;
482
+                                BtnPenRed_CL.Visibility = Visibility.Collapsed;
554 483
                                 IsSuspend = true;
555 484
                                 IsFirstRS = true;
556 485
                                 return;
@@ -569,19 +498,13 @@ namespace XHWK.WKTool
569 498
             {
570 499
                 TimeOut();
571 500
                 IsSuspend = true;
572
-                ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar26.png"));//大圆圈三角形
573
-                BtnRecordingScreen_Black.Visibility = Visibility.Visible;
574
-                BtnRecordingScreenPause_Black.Visibility = Visibility.Collapsed;
501
+                BtnRecordingScreen.Visibility = Visibility.Visible;
502
+                BtnRecordingScreenPause.Visibility = Visibility.Collapsed;
575 503
                 BtnStopRecordingScreen.IsEnabled = false; //停止录制按钮不点击
576
-                BtnStopRecordingScreen_Black.IsEnabled = false;
577
-                BtnRecordingScreen.ToolTip = "开始";
578 504
                 //imgBlackPenOne.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
579 505
                 //btnBlackPenOne.IsEnabled = false;//蓝笔不可点击
580 506
                 //imgBlackPenTwo.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
581 507
                 //btnBlackPenTwo.IsEnabled = false;//红笔不可点击
582
-                txbTime.Visibility = Visibility.Hidden;//时间不显示
583
-                //imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
584
-                //btnReturn.IsEnabled = true;//返回主界面可点击
585 508
 
586 509
                 #region 2秒内不可点击
587 510
                 new Thread(new ThreadStart(new Action(() =>
@@ -595,10 +518,8 @@ namespace XHWK.WKTool
595 518
                     //Thread.Sleep(2000);
596 519
                     Dispatcher.Invoke(() =>
597 520
                     {
598
-                        ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar14.png"));
599 521
                         BtnRecordingScreen.IsEnabled = true;
600 522
                         BtnStopRecordingScreen.IsEnabled = true;
601
-                        BtnStopRecordingScreen_Black.IsEnabled = true;
602 523
                     });
603 524
                 }))).Start();
604 525
                 #endregion
@@ -634,16 +555,10 @@ namespace XHWK.WKTool
634 555
                 }))).Start();
635 556
             }
636 557
             #endregion
637
-            if (APP.W_MinToolbar != null)
638
-            {
639
-                APP.W_MinToolbar.Hide();
640
-            }
641 558
             BtnRecordingScreen.ToolTip = "开始";
642 559
             k_hook.Stop();
643 560
             IsSuspend = true;
644
-            txbTime.Text = "00:00";
645
-            txbTime_Black.Text = "00:00";
646
-            txbTime.Visibility = Visibility.Hidden;
561
+            TxbTime.Content = "00:00";
647 562
             End();
648 563
             if (APP.W_PracticeWindow != null)
649 564
             {
@@ -653,12 +568,13 @@ namespace XHWK.WKTool
653 568
                     APP.W_PracticeWindow.ReturnPractice();
654 569
                 }
655 570
             }
656
-            if (gridToolbar.Visibility == Visibility.Visible)
657
-            {
658
-                gridToolbar.Visibility = Visibility.Hidden;
659
-                gridColour.Visibility = Visibility.Hidden;
660
-                gridThickness.Visibility = Visibility.Hidden;
661
-            }
571
+            //if (gridToolbar.Visibility == Visibility.Visible)
572
+            //{
573
+            //    GridSrToobar.Visibility = Visibility.Visible;
574
+            //    gridToolbar.Visibility = Visibility.Hidden;
575
+            //    gridColour.Visibility = Visibility.Hidden;
576
+            //    gridThickness.Visibility = Visibility.Hidden;
577
+            //}
662 578
             if (APP.W_XHMicroLessonSystemWindow == null)
663 579
             {
664 580
                 APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
@@ -719,6 +635,18 @@ namespace XHWK.WKTool
719 635
                         IsFirstRS = true;
720 636
                         MessageWindow.Show("录屏时间过短,请重新录制!");
721 637
                     }
638
+
639
+                    new Thread(new ThreadStart(new Action(() =>
640
+                    {
641
+                        Thread.Sleep(700);
642
+                        Dispatcher.Invoke(() =>
643
+                        {
644
+                            if (APP.W_MinToolbar != null)
645
+                            {
646
+                                APP.W_MinToolbar.Hide();
647
+                            }
648
+                        });
649
+                    }))).Start();
722 650
                 }
723 651
                 catch (Exception ex)
724 652
                 {
@@ -732,9 +660,8 @@ namespace XHWK.WKTool
732 660
             Graphics graphics = Graphics.FromHwnd(IntPtr.Zero);
733 661
             float DIP = graphics.DpiX;
734 662
             //float DIPY = graphics.DpiY;
735
-            APP.W_ScreenRecordingToolbarWindow.Left = PrimaryScreen.WorkingArea.Width / (DIP / 96) - APP.W_ScreenRecordingToolbarWindow.Width + 10;
736
-            gridToobar.Visibility = Visibility.Visible;
737
-            BorderBlack.Visibility = Visibility.Visible;
663
+            APP.W_ScreenRecordingToolbarWindow.Left = PrimaryScreen.WorkingArea.Width / (DIP / 96) - APP.W_ScreenRecordingToolbarWindow.Width;
664
+            GridSrToobar.Visibility = Visibility.Visible;
738 665
             APP.W_ScreenRecordingToolbarWindow.Topmost = true;
739 666
         }
740 667
         #endregion
@@ -786,8 +713,8 @@ namespace XHWK.WKTool
786 713
                     {
787 714
                         Dispatcher.Invoke(() =>
788 715
                         {
789
-                            borOne.Background = new SolidColorBrush(Colors.LightSkyBlue);
790
-                            borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
716
+                            //borOne.Background = new SolidColorBrush(Colors.LightSkyBlue);
717
+                            //borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
791 718
                             if (APP.W_PracticeWindow == null)
792 719
                             {
793 720
                                 APP.W_PracticeWindow = new PracticeWindow
@@ -838,6 +765,10 @@ namespace XHWK.WKTool
838 765
         /// <param name="e"></param>
839 766
         private void BtnBrush_Click(object sender, RoutedEventArgs e)
840 767
         {
768
+            if(BtnPenBlue.Visibility!= Visibility.Visible)
769
+            {
770
+                return;
771
+            }
841 772
             #region 防止连击
842 773
             if (IsPressButton)
843 774
             {
@@ -853,6 +784,10 @@ namespace XHWK.WKTool
853 784
                 }))).Start();
854 785
             }
855 786
             #endregion
787
+            BtnPenBlue.Visibility = Visibility.Collapsed;
788
+            BtnPenRed.Visibility = Visibility.Visible;
789
+            BtnPenBlue_CL.Visibility = Visibility.Visible;
790
+            BtnPenRed_CL.Visibility = Visibility.Collapsed;
856 791
             string time = GetTimeStamp();
857 792
             string tempPath = AppDomain.CurrentDomain.BaseDirectory + "temp\\";
858 793
             if (!Directory.Exists(tempPath))
@@ -869,22 +804,22 @@ namespace XHWK.WKTool
869 804
             {
870 805
                 if (flg == 11)
871 806
                 {
872
-                    Dispatcher.Invoke(() =>
873
-                    {
874
-                        borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
875
-                        borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
876
-                    });
807
+                    //Dispatcher.Invoke(() =>
808
+                    //{
809
+                    //    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
810
+                    //    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
811
+                    //});
877 812
                     flg = 1;
878 813
                     //this.Owner = null;
879 814
                     APP.W_PracticeWindow.ReturnPractice();
880 815
                 }
881 816
                 else if (flg == 10)
882 817
                 {
883
-                    Dispatcher.Invoke(() =>
884
-                    {
885
-                        borOne.Background = new SolidColorBrush(Colors.LightSkyBlue);
886
-                        borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
887
-                    });
818
+                    //Dispatcher.Invoke(() =>
819
+                    //{
820
+                    //    borOne.Background = new SolidColorBrush(Colors.LightSkyBlue);
821
+                    //    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
822
+                    //});
888 823
                     APP.W_PracticeWindow.Blue();
889 824
                     flg = 11;
890 825
                 }
@@ -892,11 +827,11 @@ namespace XHWK.WKTool
892 827
                 {
893 828
                     //new Thread(new ThreadStart(new Action(() =>
894 829
                     //{
895
-                    Dispatcher.Invoke(() =>
896
-                    {
897
-                        borOne.Background = new SolidColorBrush(Colors.LightSkyBlue);
898
-                        borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
899
-                    });
830
+                    //Dispatcher.Invoke(() =>
831
+                    //{
832
+                    //    borOne.Background = new SolidColorBrush(Colors.LightSkyBlue);
833
+                    //    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
834
+                    //});
900 835
 
901 836
                     //}))).Start();
902 837
                     if (APP.W_PracticeWindow == null)
@@ -1150,6 +1085,10 @@ namespace XHWK.WKTool
1150 1085
         /// <param name="e"></param>
1151 1086
         private void BtnBlackPenTwo_Click(object sender, RoutedEventArgs e)
1152 1087
         {
1088
+            if (BtnPenRed.Visibility != Visibility.Visible)
1089
+            {
1090
+                return;
1091
+            }
1153 1092
             #region 防止连击
1154 1093
             if (IsPressButton)
1155 1094
             {
@@ -1165,6 +1104,10 @@ namespace XHWK.WKTool
1165 1104
                 }))).Start();
1166 1105
             }
1167 1106
             #endregion
1107
+            BtnPenBlue.Visibility = Visibility.Visible;
1108
+            BtnPenRed.Visibility = Visibility.Collapsed;
1109
+            BtnPenBlue_CL.Visibility = Visibility.Collapsed;
1110
+            BtnPenRed_CL.Visibility = Visibility.Visible;
1168 1111
             string time = GetTimeStamp();
1169 1112
             string tempPath = AppDomain.CurrentDomain.BaseDirectory + "temp\\";
1170 1113
             if (!Directory.Exists(tempPath))
@@ -1179,32 +1122,32 @@ namespace XHWK.WKTool
1179 1122
             {
1180 1123
                 if (flg == 10)
1181 1124
                 {
1182
-                    Dispatcher.Invoke(() =>
1183
-                    {
1184
-                        borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1185
-                        borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1186
-                    });
1125
+                    //Dispatcher.Invoke(() =>
1126
+                    //{
1127
+                    //    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1128
+                    //    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1129
+                    //});
1187 1130
                     flg = 0;
1188 1131
                     //this.Owner = null;
1189 1132
                     APP.W_PracticeWindow.ReturnPractice();
1190 1133
                 }
1191 1134
                 else if (flg == 11)
1192 1135
                 {
1193
-                    Dispatcher.Invoke(() =>
1194
-                    {
1195
-                        borTwo.Background = new SolidColorBrush(Colors.LightSkyBlue);
1196
-                        borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1197
-                    });
1136
+                    //Dispatcher.Invoke(() =>
1137
+                    //{
1138
+                    //    borTwo.Background = new SolidColorBrush(Colors.LightSkyBlue);
1139
+                    //    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1140
+                    //});
1198 1141
                     flg = 10;
1199 1142
                     APP.W_PracticeWindow.Red();
1200 1143
                 }
1201 1144
                 else
1202 1145
                 {
1203
-                    Dispatcher.Invoke(() =>
1204
-                    {
1205
-                        borTwo.Background = new SolidColorBrush(Colors.LightSkyBlue);
1206
-                        borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1207
-                    });
1146
+                    //Dispatcher.Invoke(() =>
1147
+                    //{
1148
+                    //    borTwo.Background = new SolidColorBrush(Colors.LightSkyBlue);
1149
+                    //    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1150
+                    //});
1208 1151
                     if (APP.W_PracticeWindow == null)
1209 1152
                     {
1210 1153
                         APP.W_PracticeWindow = new PracticeWindow
@@ -1321,14 +1264,8 @@ namespace XHWK.WKTool
1321 1264
                 }
1322 1265
                 k_hook.Stop();
1323 1266
                 BtnRecordingScreen.ToolTip = "开始";
1324
-                if (APP.W_MinToolbar != null)
1325
-                {
1326
-                    APP.W_MinToolbar.Hide();
1327
-                }
1328 1267
                 IsSuspend = true;
1329
-                txbTime.Text = "00:00";
1330
-                txbTime_Black.Text = "00:00";
1331
-                txbTime.Visibility = Visibility.Hidden;
1268
+                TxbTime.Content = "00:00";
1332 1269
                 End();
1333 1270
                 APP.W_PracticeWindow.ReturnPractice();
1334 1271
                 if (APP.W_PracticeWindow != null)
@@ -1375,6 +1312,18 @@ namespace XHWK.WKTool
1375 1312
             APP.W_XHMicroLessonSystemWindow.InitPen();
1376 1313
             APP.W_XHMicroLessonSystemWindow.InitTQLPPen();
1377 1314
             APP.W_XHMicroLessonSystemWindow.Show();
1315
+
1316
+            new Thread(new ThreadStart(new Action(() =>
1317
+            {
1318
+                Thread.Sleep(700);
1319
+                Dispatcher.Invoke(() =>
1320
+                {
1321
+                    if (APP.W_MinToolbar != null)
1322
+                    {
1323
+                        APP.W_MinToolbar.Hide();
1324
+                    }
1325
+                });
1326
+            }))).Start();
1378 1327
             Hide();
1379 1328
         }
1380 1329
         /// <summary>
@@ -1384,11 +1333,11 @@ namespace XHWK.WKTool
1384 1333
         {
1385 1334
             new Thread(new ThreadStart(new Action(() =>
1386 1335
             {
1387
-                Dispatcher.Invoke(() =>
1388
-                {
1389
-                    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1390
-                    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1391
-                });
1336
+                //Dispatcher.Invoke(() =>
1337
+                //{
1338
+                //    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1339
+                //    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1340
+                //});
1392 1341
                 flg = 0;
1393 1342
                 Thread.Sleep(500);
1394 1343
                 Dispatcher.Invoke(() =>
@@ -1397,24 +1346,18 @@ namespace XHWK.WKTool
1397 1346
                     APP.W_PracticeWindow.Hide();
1398 1347
                 });
1399 1348
             }))).Start();
1400
-
1401
-
1402
-            //Dispatcher.Invoke(() =>
1403
-            //{
1404
-            //    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1405
-            //    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1406
-            //});
1407
-            //flg = 0;
1408
-            //Thread.Sleep(300);
1409
-            //APP.W_PracticeWindow.Hide();
1410 1349
         }
1411 1350
         /// <summary>
1412 1351
         /// 修改笔状态
1413 1352
         /// </summary>
1414 1353
         public void ModifyState()
1415 1354
         {
1416
-            borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1417
-            borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1355
+            BtnPenBlue.Visibility = Visibility.Visible;
1356
+            BtnPenRed.Visibility = Visibility.Visible;
1357
+            BtnPenBlue_CL.Visibility = Visibility.Collapsed;
1358
+            BtnPenRed_CL.Visibility = Visibility.Collapsed;
1359
+            //borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1360
+            //borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1418 1361
         }
1419 1362
 
1420 1363
         /// <summary>
@@ -1438,7 +1381,8 @@ namespace XHWK.WKTool
1438 1381
 
1439 1382
         private void gridToobarTwo_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
1440 1383
         {
1441
-            if (BtnRecordingScreen.ToolTip.ToString().Equals("暂停") && (gridToobar.Visibility == Visibility.Visible || BorderBlack.Visibility == Visibility.Visible))
1384
+            //if (BtnRecordingScreen.ToolTip.ToString().Equals("暂停") && (gridToobar.Visibility == Visibility.Visible || BorderBlack.Visibility == Visibility.Visible))
1385
+            if(BtnRecordingScreenPause.Visibility == Visibility.Visible)
1442 1386
             {
1443 1387
                 if (APP.IsHideSRTool)
1444 1388
                 {
@@ -1448,34 +1392,37 @@ namespace XHWK.WKTool
1448 1392
 
1449 1393
                     }
1450 1394
                     APP.W_MinToolbar.Topmost = true;
1451
-                    double MinToolTop = this.Top + 70;
1452
-                    int ColorType = 0;
1453
-                    if (APP.SkinStyle == "Blue")
1454
-                    {
1455
-                        ColorType = 0;
1456
-                        MinToolTop = this.Top + ((this.ActualHeight - btnReturn.ActualHeight) / 2);
1457
-                    }
1458
-                    else if (APP.SkinStyle == "Black")
1459
-                    {
1460
-                        ColorType = 1;
1461
-                        MinToolTop = this.Top + ((this.ActualHeight - VbxBlack.ActualHeight) / 2);
1462
-                    }
1463
-                    APP.W_MinToolbar.Initialize(MinToolTop, ColorType);
1464
-                    //else
1395
+                    double MinToolTop = Top;
1396
+                    //int ColorType = 0;
1397
+                    //if (APP.SkinStyle == "1")
1465 1398
                     //{
1466
-                    //    APP.W_CountdownWindow.Initialize(true, 1800);
1399
+                    //    ColorType = 0;
1400
+                    //    MinToolTop = this.Top + ((this.ActualHeight - btnReturn.ActualHeight) / 2);
1401
+                    //}
1402
+                    //else if (APP.SkinStyle == "2")
1403
+                    //{
1404
+                    //    ColorType = 1;
1405
+                    //    MinToolTop = this.Top + ((this.ActualHeight - VbxBlack.ActualHeight) / 2);
1467 1406
                     //}
1468 1407
                     new Thread(new ThreadStart(new Action(() =>
1469 1408
                     {
1470 1409
                         Thread.Sleep(500);
1471 1410
                         Dispatcher.Invoke(() =>
1472 1411
                         {
1473
-                            gridToobar.Visibility = Visibility.Hidden;
1474
-                            BorderBlack.Visibility = Visibility.Hidden;
1475
-                            APP.W_MinToolbar.Show();
1412
+                            MouseEventCommon.GetCursorPos(out MouseEventCommon.POINT pointRecord);
1413
+                            if (pointRecord.X >= this.Left && pointRecord.X < this.Left + this.ActualWidth && pointRecord.Y >= this.Top && pointRecord.Y < this.Top + this.ActualHeight)
1414
+                            {
1415
+                                //LblMessage.Content = "在区域内:("+ pointRecord.X+","+pointRecord.Y+") ("+ Left + ","+Top+")";
1416
+                            }
1417
+                            else
1418
+                            {
1419
+                                //LblMessage.Content = "不在区域内:(" + pointRecord.X + "," + pointRecord.Y + ") (" + Left + "," + Top + ")";
1420
+                                APP.W_MinToolbar.Initialize(MinToolTop, ActualHeight);
1421
+                                GridSrToobar.Visibility =  Visibility.Hidden;
1422
+                                APP.W_MinToolbar.Show();
1423
+                            }
1476 1424
                         });
1477 1425
                     }))).Start();
1478
-                    //Console.WriteLine(this.Top+"max");
1479 1426
                 }
1480 1427
             }
1481 1428
         }

+ 99
- 0
XHWK.WKTool/Skin/SkinConfig.cs View File

@@ -0,0 +1,99 @@
1
+using Common.system;
2
+
3
+using System;
4
+using System.Collections.Generic;
5
+using System.Linq;
6
+using System.Text;
7
+using System.Threading.Tasks;
8
+using System.Windows;
9
+
10
+namespace XHWK.WKTool.Skin
11
+{
12
+    /// <summary>
13
+    /// 皮肤配置
14
+    /// 创建人:赵耀
15
+    /// 创建时间:2021年6月18日
16
+    /// </summary>
17
+    public class SkinConfig
18
+    {
19
+        /// <summary>
20
+        /// 皮肤列表  0白 1蓝 2黑色
21
+        /// </summary>
22
+        static List<ResourceDictionary> SkinList = new List<ResourceDictionary>();
23
+        /// <summary>
24
+        /// 初始化皮肤
25
+        /// </summary>
26
+        public static void InitSkin()
27
+        {
28
+            SkinList.Add(new ResourceDictionary()
29
+            {
30
+                Source = new Uri("pack://application:,,,/Skin/SkinDictionary_White.xaml", UriKind.Absolute)
31
+            });
32
+            SkinList.Add(new ResourceDictionary()
33
+            {
34
+                Source = new Uri("pack://application:,,,/Skin/SkinDictionary_TechnologyBlue.xaml", UriKind.Absolute)
35
+            });
36
+            int Index = 0;
37
+            try
38
+            {
39
+                Index = int.Parse(APP.SkinStyle);
40
+            }
41
+            catch (Exception) {}
42
+            ChangeSkinResource(SkinList[int.Parse(APP.SkinStyle)]);
43
+        }
44
+
45
+        /// <summary>
46
+        /// 切换皮肤并保存  0白 1蓝 2黑色
47
+        /// </summary>
48
+        /// <param name="Index"> 0白 1蓝 2黑色</param>
49
+        public static void SwitchSkin(int Index)
50
+        {
51
+            if (Index < SkinList.Count)
52
+            {
53
+                APP.SkinStyle = Index.ToString();
54
+
55
+                FileToolsCommon.SetConfigValue("SkinStyle", APP.SkinStyle);
56
+                ChangeSkinResource(SkinList[int.Parse(APP.SkinStyle)]);
57
+
58
+            }
59
+
60
+        }
61
+
62
+        /// <summary>
63
+        /// 更换皮肤资源
64
+        /// </summary>
65
+        /// <param name="skin"></param>
66
+        private static void ChangeSkinResource(ResourceDictionary skin)
67
+        {
68
+            if(Application.Current.Resources.MergedDictionaries.Count<1)
69
+            {
70
+                Application.Current.Resources.MergedDictionaries.Add(skin);//[0] = new ResourceDictionary();
71
+                //Application.Current.Resources.MergedDictionaries[0]=skin;
72
+            }
73
+            if (Application.Current.Resources.MergedDictionaries[0].Source.IsAbsoluteUri)
74
+            {
75
+                if (Application.Current.Resources.MergedDictionaries[0].Source.OriginalString != skin.Source.OriginalString)
76
+                {
77
+                    Application.Current.Resources.MergedDictionaries[0] = skin;
78
+                }
79
+            }
80
+            else
81
+            {
82
+                if (Application.Current.Resources.MergedDictionaries[0].Source.OriginalString.ToString('\\') != skin.Source.OriginalString.ToString('/'))
83
+                {
84
+                    Application.Current.Resources.MergedDictionaries[0] = skin;
85
+                }
86
+            }
87
+        }
88
+    }
89
+    /// <summary>
90
+    /// 扩展方法
91
+    /// </summary>
92
+    public static class ExtensionMethod
93
+    {
94
+        public static string ToString(this string content, char split)
95
+        {
96
+            return content.Split(split).Last();
97
+        }
98
+    }
99
+}

+ 328
- 0
XHWK.WKTool/Skin/SkinDictionary_TechnologyBlue.xaml View File

@@ -0,0 +1,328 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <!--Title背景-->
5
+    <ImageBrush x:Key="BackTitle" ImageSource="/SkinImages/TechnologyBlue/HM_BJTitle.png"/>
6
+    <!--工具栏背景-->
7
+    <ImageBrush x:Key="BackTool" ImageSource="/SkinImages/TechnologyBlue/HM_BJTool.png"/>
8
+    <!--笔状态图标-->
9
+    <Style x:Key="TitlePenState"  TargetType="{x:Type Image}">
10
+        <Setter Property="Source" Value="/SkinImages/TechnologyBlue/HM_PenState.png"/>
11
+    </Style>
12
+    <!--笔状态颜色-->
13
+    <Style x:Key="PenStateColor"  TargetType="TextBlock">
14
+        <Setter Property="Foreground" Value="#FFFFFFFF"/>
15
+    </Style>
16
+    <!--时间图标-->
17
+    <Style x:Key="TitleLZTimeImg"  TargetType="{x:Type Image}">
18
+        <Setter Property="Source" Value="/SkinImages/TechnologyBlue/HM_LZIMG.png"/>
19
+    </Style>
20
+    <!--LOGO颜色-->
21
+    <Style x:Key="LogoColor"  TargetType="TextBlock">
22
+        <Setter Property="Foreground" Value="#FFFFFFFF"/>
23
+    </Style>
24
+    <!--消息颜色-->
25
+    <Style x:Key="TxbMesColor"  TargetType="TextBlock">
26
+        <Setter Property="Foreground" Value="#FFFFFFFF"/>
27
+    </Style>
28
+    <!--登陆颜色-->
29
+    <Style x:Key="LoginTypeColor"  TargetType="TextBlock">
30
+        <Setter Property="Foreground" Value="#FFFFFFFF"/>
31
+    </Style>
32
+    
33
+    <!--关闭按钮-->
34
+    <ControlTemplate x:Key="SkinBtnClose" TargetType="{x:Type Button}">
35
+        <Grid>
36
+            <Grid.ColumnDefinitions>
37
+                <ColumnDefinition Width="23*"/>
38
+                <ColumnDefinition Width="72*"/>
39
+            </Grid.ColumnDefinitions>
40
+            <Image Grid.ColumnSpan="2" x:Name="ImgSetUp" Source="/SkinImages/TechnologyBlue/HM_Close.png"/>
41
+            <Label Grid.Column="1" x:Name="Word" Content="关闭程序" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
42
+        </Grid>
43
+        <ControlTemplate.Triggers>
44
+            <Trigger Property="IsMouseOver" Value="True">
45
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/HM_Close_MI.png"/>
46
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
47
+            </Trigger>
48
+        </ControlTemplate.Triggers>
49
+    </ControlTemplate>
50
+
51
+    <!--录制按钮-->
52
+    <ControlTemplate x:Key="SkinBtnRecord" TargetType="{x:Type Button}">
53
+        <Grid>
54
+            <Grid.ColumnDefinitions>
55
+                <ColumnDefinition Width="23*"/>
56
+                <ColumnDefinition Width="72*"/>
57
+            </Grid.ColumnDefinitions>
58
+            <Image Grid.ColumnSpan="2" x:Name="ImgRecord" Source="/SkinImages/TechnologyBlue/Toolbar_LZ.png"/>
59
+            <Label Grid.Column="1" x:Name="Word" Content="开始录制" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
60
+        </Grid>
61
+        <ControlTemplate.Triggers>
62
+            <Trigger Property="IsMouseOver" Value="True">
63
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_MI.png"/>
64
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
65
+            </Trigger>
66
+            <Trigger Property="IsPressed" Value="True">
67
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_MI.png"/>
68
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
69
+            </Trigger>
70
+            <Trigger Property="IsEnabled" Value="False">
71
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZ_N.png"/>
72
+                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3"/>
73
+            </Trigger>
74
+        </ControlTemplate.Triggers>
75
+    </ControlTemplate>
76
+    <!--录制暂停按钮-->
77
+    <ControlTemplate x:Key="SkinBtnRecordSuspend" TargetType="{x:Type Button}">
78
+        <Grid>
79
+            <Grid.ColumnDefinitions>
80
+                <ColumnDefinition Width="23*"/>
81
+                <ColumnDefinition Width="72*"/>
82
+            </Grid.ColumnDefinitions>
83
+            <Image Grid.ColumnSpan="2" x:Name="ImgRecordSuspend" Source="/SkinImages/TechnologyBlue/Toolbar_LZZT.png"/>
84
+            <Label Grid.Column="1" x:Name="Word" Content="录制暂停" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
85
+        </Grid>
86
+        <ControlTemplate.Triggers>
87
+            <Trigger Property="IsMouseOver" Value="True">
88
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_MI.png"/>
89
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
90
+            </Trigger>
91
+            <Trigger Property="IsPressed" Value="True">
92
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_MI.png"/>
93
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
94
+            </Trigger>
95
+            <Trigger Property="IsEnabled" Value="False">
96
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LZZT_N.png"/>
97
+                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3"/>
98
+            </Trigger>
99
+        </ControlTemplate.Triggers>
100
+    </ControlTemplate>
101
+    <!--录制保存按钮-->
102
+    <ControlTemplate x:Key="SkinBtnRecordStop" TargetType="{x:Type Button}">
103
+        <Grid>
104
+            <Grid.ColumnDefinitions>
105
+                <ColumnDefinition Width="23*"/>
106
+                <ColumnDefinition Width="72*"/>
107
+            </Grid.ColumnDefinitions>
108
+            <Image Grid.ColumnSpan="2" x:Name="ImgRecordStop" Source="/SkinImages/TechnologyBlue/Toolbar_Save.png"/>
109
+            <Label Grid.Column="1" x:Name="Word" Content="保存录制" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
110
+        </Grid>
111
+        <ControlTemplate.Triggers>
112
+            <Trigger Property="IsMouseOver" Value="True">
113
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_MI.png"/>
114
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
115
+            </Trigger>
116
+            <Trigger Property="IsPressed" Value="True">
117
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_MI.png"/>
118
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
119
+            </Trigger>
120
+            <Trigger Property="IsEnabled" Value="False">
121
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_Save_N.png"/>
122
+                <Setter TargetName="Word" Property="Foreground" Value="#FFE3E3E3"/>
123
+            </Trigger>
124
+        </ControlTemplate.Triggers>
125
+    </ControlTemplate>
126
+
127
+    <!--录屏按钮-->
128
+    <ControlTemplate x:Key="SkinBtnScreenRecording" TargetType="{x:Type Button}">
129
+        <Grid>
130
+            <Grid.ColumnDefinitions>
131
+                <ColumnDefinition Width="100*"/>
132
+                <ColumnDefinition Width="60*"/>
133
+                <ColumnDefinition Width="40*"/>
134
+            </Grid.ColumnDefinitions>
135
+            <Image Grid.ColumnSpan="3" x:Name="ImgScreenRecording" Source="/SkinImages/TechnologyBlue/Toolbar_LP.png" Stretch="Fill"/>
136
+            <Label Grid.Column="1" x:Name="Word" Content="录屏" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
137
+        </Grid>
138
+        <ControlTemplate.Triggers>
139
+            <Trigger Property="IsMouseOver" Value="True">
140
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_MI.png"/>
141
+            </Trigger>
142
+            <Trigger Property="IsPressed" Value="True">
143
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_CL.png"/>
144
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
145
+            </Trigger>
146
+            <Trigger Property="IsEnabled" Value="False">
147
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_LP_N.png"/>
148
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
149
+            </Trigger>
150
+        </ControlTemplate.Triggers>
151
+    </ControlTemplate>
152
+    <!--截图按钮-->
153
+    <ControlTemplate x:Key="SkinBtnScreenshot" TargetType="{x:Type Button}">
154
+        <Grid>
155
+            <Grid.ColumnDefinitions>
156
+                <ColumnDefinition Width="100*"/>
157
+                <ColumnDefinition Width="60*"/>
158
+                <ColumnDefinition Width="40*"/>
159
+            </Grid.ColumnDefinitions>
160
+            <Image Grid.ColumnSpan="3" x:Name="ImgScreenshot" Source="/SkinImages/TechnologyBlue/Toolbar_JT.png" Stretch="Fill"/>
161
+            <Label Grid.Column="1" x:Name="Word" Content="截图" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
162
+        </Grid>
163
+        <ControlTemplate.Triggers>
164
+            <Trigger Property="IsMouseOver" Value="True">
165
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_MI.png"/>
166
+            </Trigger>
167
+            <Trigger Property="IsPressed" Value="True">
168
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_CL.png"/>
169
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
170
+            </Trigger>
171
+            <Trigger Property="IsEnabled" Value="False">
172
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JT_N.png"/>
173
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
174
+            </Trigger>
175
+        </ControlTemplate.Triggers>
176
+    </ControlTemplate>
177
+    <!--导入按钮-->
178
+    <ControlTemplate x:Key="SkinBtnImport" TargetType="{x:Type Button}">
179
+        <Grid>
180
+            <Grid.ColumnDefinitions>
181
+                <ColumnDefinition Width="100*"/>
182
+                <ColumnDefinition Width="60*"/>
183
+                <ColumnDefinition Width="40*"/>
184
+            </Grid.ColumnDefinitions>
185
+            <Image Grid.ColumnSpan="3" x:Name="ImgImport" Source="/SkinImages/TechnologyBlue/Toolbar_DR.png" Stretch="Fill"/>
186
+            <Label Grid.Column="1" x:Name="Word" Content="导入" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
187
+        </Grid>
188
+        <ControlTemplate.Triggers>
189
+            <Trigger Property="IsMouseOver" Value="True">
190
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_MI.png"/>
191
+            </Trigger>
192
+            <Trigger Property="IsPressed" Value="True">
193
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_CL.png"/>
194
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
195
+            </Trigger>
196
+            <Trigger Property="IsEnabled" Value="False">
197
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DR_N.png"/>
198
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
199
+            </Trigger>
200
+        </ControlTemplate.Triggers>
201
+    </ControlTemplate>
202
+    <!--加页按钮-->
203
+    <ControlTemplate x:Key="SkinBtnAdd" TargetType="{x:Type Button}">
204
+        <Grid>
205
+            <Grid.ColumnDefinitions>
206
+                <ColumnDefinition Width="100*"/>
207
+                <ColumnDefinition Width="60*"/>
208
+                <ColumnDefinition Width="40*"/>
209
+            </Grid.ColumnDefinitions>
210
+            <Image Grid.ColumnSpan="3" x:Name="ImgAdd" Source="/SkinImages/TechnologyBlue/Toolbar_JY.png" Stretch="Fill"/>
211
+            <Label Grid.Column="1" x:Name="Word" Content="加页" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
212
+        </Grid>
213
+        <ControlTemplate.Triggers>
214
+            <Trigger Property="IsMouseOver" Value="True">
215
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_MI.png"/>
216
+            </Trigger>
217
+            <Trigger Property="IsPressed" Value="True">
218
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_CL.png"/>
219
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
220
+            </Trigger>
221
+            <Trigger Property="IsEnabled" Value="False">
222
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JY_N.png"/>
223
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
224
+            </Trigger>
225
+        </ControlTemplate.Triggers>
226
+    </ControlTemplate>
227
+    <!--打印按钮-->
228
+    <ControlTemplate x:Key="SkinBtnPrint" TargetType="{x:Type Button}">
229
+        <Grid>
230
+            <Grid.ColumnDefinitions>
231
+                <ColumnDefinition Width="100*"/>
232
+                <ColumnDefinition Width="60*"/>
233
+                <ColumnDefinition Width="40*"/>
234
+            </Grid.ColumnDefinitions>
235
+            <Image Grid.ColumnSpan="3" x:Name="ImgPrint" Source="/SkinImages/TechnologyBlue/Toolbar_DY.png" Stretch="Fill"/>
236
+            <Label Grid.Column="1" x:Name="Word" Content="打印" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
237
+        </Grid>
238
+        <ControlTemplate.Triggers>
239
+            <Trigger Property="IsMouseOver" Value="True">
240
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_MI.png"/>
241
+            </Trigger>
242
+            <Trigger Property="IsPressed" Value="True">
243
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_CL.png"/>
244
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
245
+            </Trigger>
246
+            <Trigger Property="IsEnabled" Value="False">
247
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_DY_N.png"/>
248
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
249
+            </Trigger>
250
+        </ControlTemplate.Triggers>
251
+    </ControlTemplate>
252
+    <!--我的按钮-->
253
+    <ControlTemplate x:Key="SkinBtnMy" TargetType="{x:Type Button}">
254
+        <Grid>
255
+            <Grid.ColumnDefinitions>
256
+                <ColumnDefinition Width="100*"/>
257
+                <ColumnDefinition Width="60*"/>
258
+                <ColumnDefinition Width="40*"/>
259
+            </Grid.ColumnDefinitions>
260
+            <Image Grid.ColumnSpan="3" x:Name="ImgMy" Source="/SkinImages/TechnologyBlue/Toolbar_MY.png" Stretch="Fill"/>
261
+            <Label Grid.Column="1" x:Name="Word" Content="我的" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
262
+        </Grid>
263
+        <ControlTemplate.Triggers>
264
+            <Trigger Property="IsMouseOver" Value="True">
265
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_MI.png"/>
266
+            </Trigger>
267
+            <Trigger Property="IsPressed" Value="True">
268
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_CL.png"/>
269
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
270
+            </Trigger>
271
+            <Trigger Property="IsEnabled" Value="False">
272
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_MY_N.png"/>
273
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
274
+            </Trigger>
275
+        </ControlTemplate.Triggers>
276
+    </ControlTemplate>
277
+    <!--检测按钮-->
278
+    <ControlTemplate x:Key="SkinBtnDevice" TargetType="{x:Type Button}">
279
+        <Grid>
280
+            <Grid.ColumnDefinitions>
281
+                <ColumnDefinition Width="100*"/>
282
+                <ColumnDefinition Width="60*"/>
283
+                <ColumnDefinition Width="40*"/>
284
+            </Grid.ColumnDefinitions>
285
+            <Image Grid.ColumnSpan="3" x:Name="ImgDevice" Source="/SkinImages/TechnologyBlue/Toolbar_JC.png" Stretch="Fill"/>
286
+            <Label Grid.Column="1" x:Name="Word" Content="检测" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
287
+        </Grid>
288
+        <ControlTemplate.Triggers>
289
+            <Trigger Property="IsMouseOver" Value="True">
290
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_MI.png"/>
291
+            </Trigger>
292
+            <Trigger Property="IsPressed" Value="True">
293
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_CL.png"/>
294
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
295
+            </Trigger>
296
+            <Trigger Property="IsEnabled" Value="False">
297
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_JC_N.png"/>
298
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
299
+            </Trigger>
300
+        </ControlTemplate.Triggers>
301
+    </ControlTemplate>
302
+    <!--设置按钮-->
303
+    <ControlTemplate x:Key="SkinBtnSetUp" TargetType="{x:Type Button}">
304
+        <Grid>
305
+            <Grid.ColumnDefinitions>
306
+                <ColumnDefinition Width="100*"/>
307
+                <ColumnDefinition Width="60*"/>
308
+                <ColumnDefinition Width="40*"/>
309
+            </Grid.ColumnDefinitions>
310
+            <Image Grid.ColumnSpan="3" x:Name="ImgSetUp" Source="/SkinImages/TechnologyBlue/Toolbar_SZ.png" Stretch="Fill"/>
311
+            <Label Grid.Column="1" x:Name="Word" Content="设置" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFFFFFFF"/>
312
+        </Grid>
313
+        <ControlTemplate.Triggers>
314
+            <Trigger Property="IsMouseOver" Value="True">
315
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_MI.png"/>
316
+            </Trigger>
317
+            <Trigger Property="IsPressed" Value="True">
318
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_CL.png"/>
319
+                <Setter TargetName="Word" Property="Foreground" Value="#FF333333"/>
320
+            </Trigger>
321
+            <Trigger Property="IsEnabled" Value="False">
322
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/Toolbar_SZ_N.png"/>
323
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
324
+            </Trigger>
325
+        </ControlTemplate.Triggers>
326
+    </ControlTemplate>
327
+
328
+</ResourceDictionary>

+ 326
- 0
XHWK.WKTool/Skin/SkinDictionary_White.xaml View File

@@ -0,0 +1,326 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
3
+
4
+    <!--Title背景-->
5
+    <ImageBrush x:Key="BackTitle"/>
6
+    <!--工具栏背景-->
7
+    <ImageBrush x:Key="BackTool"/>
8
+    <!--笔状态图标-->
9
+    <Style x:Key="TitlePenState"  TargetType="{x:Type Image}">
10
+        <Setter Property="Source" Value="/SkinImages/White/HM_PenState.png"/>
11
+    </Style>
12
+    <!--笔状态颜色-->
13
+    <Style x:Key="PenStateColor"  TargetType="TextBlock">
14
+        <Setter Property="Foreground" Value="#FF298DF1"/>
15
+    </Style>
16
+    <!--时间图标-->
17
+    <Style x:Key="TitleLZTimeImg"  TargetType="{x:Type Image}">
18
+        <Setter Property="Source" Value="/SkinImages/White/HM_LZIMG.png"/>
19
+    </Style>
20
+    <!--LOGO颜色-->
21
+    <Style x:Key="LogoColor"  TargetType="TextBlock">
22
+        <Setter Property="Foreground" Value="#FF298DF1"/>
23
+    </Style>
24
+    <!--消息颜色-->
25
+    <Style x:Key="TxbMesColor"  TargetType="TextBlock">
26
+        <Setter Property="Foreground" Value="#FF000000"/>
27
+    </Style>
28
+    <!--登陆颜色-->
29
+    <Style x:Key="LoginTypeColor"  TargetType="TextBlock">
30
+        <Setter Property="Foreground" Value="#FF000000"/>
31
+    </Style>
32
+    <!--关闭按钮-->
33
+    <ControlTemplate x:Key="SkinBtnClose" TargetType="{x:Type Button}">
34
+        <Grid>
35
+            <Grid.ColumnDefinitions>
36
+                <ColumnDefinition Width="23*"/>
37
+                <ColumnDefinition Width="72*"/>
38
+            </Grid.ColumnDefinitions>
39
+            <Image Grid.ColumnSpan="2" x:Name="ImgSetUp" Source="/SkinImages/White/HM_Close.png"/>
40
+            <Label Grid.Column="1" x:Name="Word" Content="关闭程序" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
41
+        </Grid>
42
+        <ControlTemplate.Triggers>
43
+            <Trigger Property="IsMouseOver" Value="True">
44
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/White/HM_Close_MI.png"/>
45
+                <Setter TargetName="Word" Property="Foreground" Value="#FF3F6FFF"/>
46
+            </Trigger>
47
+        </ControlTemplate.Triggers>
48
+    </ControlTemplate>
49
+    <!--录制按钮-->
50
+    <ControlTemplate x:Key="SkinBtnRecord" TargetType="{x:Type Button}">
51
+        <Grid>
52
+            <Grid.ColumnDefinitions>
53
+                <ColumnDefinition Width="23*"/>
54
+                <ColumnDefinition Width="72*"/>
55
+            </Grid.ColumnDefinitions>
56
+            <Image Grid.ColumnSpan="2" x:Name="ImgRecord" Source="/SkinImages/White/Toolbar_LZ.png"/>
57
+            <Label Grid.Column="1" x:Name="Word" Content="开始录制" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF3F6FFF"/>
58
+        </Grid>
59
+        <ControlTemplate.Triggers>
60
+            <Trigger Property="IsMouseOver" Value="True">
61
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/White/Toolbar_LZ_MI.png"/>
62
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
63
+            </Trigger>
64
+            <Trigger Property="IsPressed" Value="True">
65
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/White/Toolbar_LZ_MI.png"/>
66
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
67
+            </Trigger>
68
+            <Trigger Property="IsEnabled" Value="False">
69
+                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/White/Toolbar_LZ_N.png"/>
70
+                <Setter TargetName="Word" Property="Foreground" Value="#FF999999"/>
71
+            </Trigger>
72
+        </ControlTemplate.Triggers>
73
+    </ControlTemplate>
74
+    <!--录制暂停按钮-->
75
+    <ControlTemplate x:Key="SkinBtnRecordSuspend" TargetType="{x:Type Button}">
76
+        <Grid>
77
+            <Grid.ColumnDefinitions>
78
+                <ColumnDefinition Width="23*"/>
79
+                <ColumnDefinition Width="72*"/>
80
+            </Grid.ColumnDefinitions>
81
+            <Image Grid.ColumnSpan="2" x:Name="ImgRecordSuspend" Source="/SkinImages/White/Toolbar_LZZT.png"/>
82
+            <Label Grid.Column="1" x:Name="Word" Content="录制暂停" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF3F6FFF"/>
83
+        </Grid>
84
+        <ControlTemplate.Triggers>
85
+            <Trigger Property="IsMouseOver" Value="True">
86
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/White/Toolbar_LZZT_MI.png"/>
87
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
88
+            </Trigger>
89
+            <Trigger Property="IsPressed" Value="True">
90
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/White/Toolbar_LZZT_MI.png"/>
91
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
92
+            </Trigger>
93
+            <Trigger Property="IsEnabled" Value="False">
94
+                <Setter TargetName="ImgRecordSuspend" Property="Source" Value="/SkinImages/White/Toolbar_LZZT_N.png"/>
95
+                <Setter TargetName="Word" Property="Foreground" Value="#FF999999"/>
96
+            </Trigger>
97
+        </ControlTemplate.Triggers>
98
+    </ControlTemplate>
99
+    <!--录制保存按钮-->
100
+    <ControlTemplate x:Key="SkinBtnRecordStop" TargetType="{x:Type Button}">
101
+        <Grid>
102
+            <Grid.ColumnDefinitions>
103
+                <ColumnDefinition Width="23*"/>
104
+                <ColumnDefinition Width="72*"/>
105
+            </Grid.ColumnDefinitions>
106
+            <Image Grid.ColumnSpan="2" x:Name="ImgRecordStop" Source="/SkinImages/White/Toolbar_Save.png"/>
107
+            <Label Grid.Column="1" x:Name="Word" Content="保存录制" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF3F6FFF"/>
108
+        </Grid>
109
+        <ControlTemplate.Triggers>
110
+            <Trigger Property="IsMouseOver" Value="True">
111
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/White/Toolbar_Save_MI.png"/>
112
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
113
+            </Trigger>
114
+            <Trigger Property="IsPressed" Value="True">
115
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/White/Toolbar_Save_MI.png"/>
116
+                <Setter TargetName="Word" Property="Foreground" Value="#FFA1C0FA"/>
117
+            </Trigger>
118
+            <Trigger Property="IsEnabled" Value="False">
119
+                <Setter TargetName="ImgRecordStop" Property="Source" Value="/SkinImages/White/Toolbar_Save_N.png"/>
120
+                <Setter TargetName="Word" Property="Foreground" Value="#FF999999"/>
121
+            </Trigger>
122
+        </ControlTemplate.Triggers>
123
+    </ControlTemplate>
124
+
125
+    <!--录屏按钮-->
126
+    <ControlTemplate x:Key="SkinBtnScreenRecording" TargetType="{x:Type Button}">
127
+        <Grid>
128
+            <Grid.ColumnDefinitions>
129
+                <ColumnDefinition Width="100*"/>
130
+                <ColumnDefinition Width="60*"/>
131
+                <ColumnDefinition Width="40*"/>
132
+            </Grid.ColumnDefinitions>
133
+            <Image Grid.ColumnSpan="3" x:Name="ImgScreenRecording" Source="/SkinImages/White/Toolbar_LP.png" Stretch="Fill" />
134
+            <Label Grid.Column="1" x:Name="Word" Content="录屏" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
135
+        </Grid>
136
+        <ControlTemplate.Triggers>
137
+            <Trigger Property="IsMouseOver" Value="True">
138
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_MI.png"/>
139
+            </Trigger>
140
+            <Trigger Property="IsPressed" Value="True">
141
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_CL.png"/>
142
+                <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF"/>
143
+            </Trigger>
144
+            <Trigger Property="IsEnabled" Value="False">
145
+                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_N.png"/>
146
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
147
+            </Trigger>
148
+        </ControlTemplate.Triggers>
149
+    </ControlTemplate>
150
+    <!--截图按钮-->
151
+    <ControlTemplate x:Key="SkinBtnScreenshot" TargetType="{x:Type Button}">
152
+        <Grid>
153
+            <Grid.ColumnDefinitions>
154
+                <ColumnDefinition Width="100*"/>
155
+                <ColumnDefinition Width="60*"/>
156
+                <ColumnDefinition Width="40*"/>
157
+            </Grid.ColumnDefinitions>
158
+            <Image Grid.ColumnSpan="3" x:Name="ImgScreenshot" Source="/SkinImages/White/Toolbar_JT.png" Stretch="Fill"/>
159
+            <Label Grid.Column="1" x:Name="Word" Content="截图" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
160
+        </Grid>
161
+        <ControlTemplate.Triggers>
162
+            <Trigger Property="IsMouseOver" Value="True">
163
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/White/Toolbar_JT_MI.png"/>
164
+            </Trigger>
165
+            <Trigger Property="IsPressed" Value="True">
166
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/White/Toolbar_JT_CL.png"/>
167
+                <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF"/>
168
+            </Trigger>
169
+            <Trigger Property="IsEnabled" Value="False">
170
+                <Setter TargetName="ImgScreenshot" Property="Source" Value="/SkinImages/White/Toolbar_JT_N.png"/>
171
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
172
+            </Trigger>
173
+        </ControlTemplate.Triggers>
174
+    </ControlTemplate>
175
+    <!--导入按钮-->
176
+    <ControlTemplate x:Key="SkinBtnImport" TargetType="{x:Type Button}">
177
+        <Grid>
178
+            <Grid.ColumnDefinitions>
179
+                <ColumnDefinition Width="100*"/>
180
+                <ColumnDefinition Width="60*"/>
181
+                <ColumnDefinition Width="40*"/>
182
+            </Grid.ColumnDefinitions>
183
+            <Image Grid.ColumnSpan="3" x:Name="ImgImport" Source="/SkinImages/White/Toolbar_DR.png" Stretch="Fill"/>
184
+            <Label Grid.Column="1" x:Name="Word" Content="导入" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
185
+        </Grid>
186
+        <ControlTemplate.Triggers>
187
+            <Trigger Property="IsMouseOver" Value="True">
188
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/White/Toolbar_DR_MI.png"/>
189
+            </Trigger>
190
+            <Trigger Property="IsPressed" Value="True">
191
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/White/Toolbar_DR_CL.png"/>
192
+                <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF"/>
193
+            </Trigger>
194
+            <Trigger Property="IsEnabled" Value="False">
195
+                <Setter TargetName="ImgImport" Property="Source" Value="/SkinImages/White/Toolbar_DR_N.png"/>
196
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
197
+            </Trigger>
198
+        </ControlTemplate.Triggers>
199
+    </ControlTemplate>
200
+    <!--加页按钮-->
201
+    <ControlTemplate x:Key="SkinBtnAdd" TargetType="{x:Type Button}">
202
+        <Grid>
203
+            <Grid.ColumnDefinitions>
204
+                <ColumnDefinition Width="100*"/>
205
+                <ColumnDefinition Width="60*"/>
206
+                <ColumnDefinition Width="40*"/>
207
+            </Grid.ColumnDefinitions>
208
+            <Image Grid.ColumnSpan="3" x:Name="ImgAdd" Source="/SkinImages/White/Toolbar_JY.png" Stretch="Fill"/>
209
+            <Label Grid.Column="1" x:Name="Word" Content="加页" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
210
+        </Grid>
211
+        <ControlTemplate.Triggers>
212
+            <Trigger Property="IsMouseOver" Value="True">
213
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/White/Toolbar_JY_MI.png"/>
214
+            </Trigger>
215
+            <Trigger Property="IsPressed" Value="True">
216
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/White/Toolbar_JY_CL.png"/>
217
+                <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF"/>
218
+            </Trigger>
219
+            <Trigger Property="IsEnabled" Value="False">
220
+                <Setter TargetName="ImgAdd" Property="Source" Value="/SkinImages/White/Toolbar_JY_N.png"/>
221
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
222
+            </Trigger>
223
+        </ControlTemplate.Triggers>
224
+    </ControlTemplate>
225
+    <!--打印按钮-->
226
+    <ControlTemplate x:Key="SkinBtnPrint" TargetType="{x:Type Button}">
227
+        <Grid>
228
+            <Grid.ColumnDefinitions>
229
+                <ColumnDefinition Width="100*"/>
230
+                <ColumnDefinition Width="60*"/>
231
+                <ColumnDefinition Width="40*"/>
232
+            </Grid.ColumnDefinitions>
233
+            <Image Grid.ColumnSpan="3" x:Name="ImgPrint" Source="/SkinImages/White/Toolbar_DY.png" Stretch="Fill"/>
234
+            <Label Grid.Column="1" x:Name="Word" Content="打印" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
235
+        </Grid>
236
+        <ControlTemplate.Triggers>
237
+            <Trigger Property="IsMouseOver" Value="True">
238
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/White/Toolbar_DY_MI.png"/>
239
+            </Trigger>
240
+            <Trigger Property="IsPressed" Value="True">
241
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/White/Toolbar_DY_CL.png"/>
242
+                <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF"/>
243
+            </Trigger>
244
+            <Trigger Property="IsEnabled" Value="False">
245
+                <Setter TargetName="ImgPrint" Property="Source" Value="/SkinImages/White/Toolbar_DY_N.png"/>
246
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
247
+            </Trigger>
248
+        </ControlTemplate.Triggers>
249
+    </ControlTemplate>
250
+    <!--我的按钮-->
251
+    <ControlTemplate x:Key="SkinBtnMy" TargetType="{x:Type Button}">
252
+        <Grid>
253
+            <Grid.ColumnDefinitions>
254
+                <ColumnDefinition Width="100*"/>
255
+                <ColumnDefinition Width="60*"/>
256
+                <ColumnDefinition Width="40*"/>
257
+            </Grid.ColumnDefinitions>
258
+            <Image Grid.ColumnSpan="3" x:Name="ImgMy" Source="/SkinImages/White/Toolbar_MY.png" Stretch="Fill"/>
259
+            <Label Grid.Column="1" x:Name="Word" Content="我的" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
260
+        </Grid>
261
+        <ControlTemplate.Triggers>
262
+            <Trigger Property="IsMouseOver" Value="True">
263
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/White/Toolbar_MY_MI.png"/>
264
+            </Trigger>
265
+            <Trigger Property="IsPressed" Value="True">
266
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/White/Toolbar_MY_CL.png"/>
267
+                <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF"/>
268
+            </Trigger>
269
+            <Trigger Property="IsEnabled" Value="False">
270
+                <Setter TargetName="ImgMy" Property="Source" Value="/SkinImages/White/Toolbar_MY_N.png"/>
271
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
272
+            </Trigger>
273
+        </ControlTemplate.Triggers>
274
+    </ControlTemplate>
275
+    <!--检测按钮-->
276
+    <ControlTemplate x:Key="SkinBtnDevice" TargetType="{x:Type Button}">
277
+        <Grid>
278
+            <Grid.ColumnDefinitions>
279
+                <ColumnDefinition Width="100*"/>
280
+                <ColumnDefinition Width="60*"/>
281
+                <ColumnDefinition Width="40*"/>
282
+            </Grid.ColumnDefinitions>
283
+            <Image Grid.ColumnSpan="3" x:Name="ImgDevice" Source="/SkinImages/White/Toolbar_JC.png" Stretch="Fill"/>
284
+            <Label Grid.Column="1" x:Name="Word" Content="检测" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
285
+        </Grid>
286
+        <ControlTemplate.Triggers>
287
+            <Trigger Property="IsMouseOver" Value="True">
288
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/White/Toolbar_JC_MI.png"/>
289
+            </Trigger>
290
+            <Trigger Property="IsPressed" Value="True">
291
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/White/Toolbar_JC_CL.png"/>
292
+                <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF"/>
293
+            </Trigger>
294
+            <Trigger Property="IsEnabled" Value="False">
295
+                <Setter TargetName="ImgDevice" Property="Source" Value="/SkinImages/White/Toolbar_JC_N.png"/>
296
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
297
+            </Trigger>
298
+        </ControlTemplate.Triggers>
299
+    </ControlTemplate>
300
+    <!--设置按钮-->
301
+    <ControlTemplate x:Key="SkinBtnSetUp" TargetType="{x:Type Button}">
302
+        <Grid>
303
+            <Grid.ColumnDefinitions>
304
+                <ColumnDefinition Width="100*"/>
305
+                <ColumnDefinition Width="60*"/>
306
+                <ColumnDefinition Width="40*"/>
307
+            </Grid.ColumnDefinitions>
308
+            <Image Grid.ColumnSpan="3" x:Name="ImgSetUp" Source="/SkinImages/White/Toolbar_SZ.png" Stretch="Fill"/>
309
+            <Label Grid.Column="1" x:Name="Word" Content="设置" FontSize="{TemplateBinding FontSize}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF333333"/>
310
+        </Grid>
311
+        <ControlTemplate.Triggers>
312
+            <Trigger Property="IsMouseOver" Value="True">
313
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/White/Toolbar_SZ_MI.png"/>
314
+            </Trigger>
315
+            <Trigger Property="IsPressed" Value="True">
316
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/White/Toolbar_SZ_CL.png"/>
317
+                <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF"/>
318
+            </Trigger>
319
+            <Trigger Property="IsEnabled" Value="False">
320
+                <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/White/Toolbar_SZ_N.png"/>
321
+                <Setter TargetName="Word" Property="Foreground" Value="#FFC3C3C3"/>
322
+            </Trigger>
323
+        </ControlTemplate.Triggers>
324
+    </ControlTemplate>
325
+    
326
+</ResourceDictionary>

BIN
XHWK.WKTool/SkinImages/ImgCarousel/CM_Carousel.gif View File


BIN
XHWK.WKTool/SkinImages/ImgCarousel/CM_Carousel_1.png View File


BIN
XHWK.WKTool/SkinImages/ImgCarousel/CM_Carousel_2.png View File


BIN
XHWK.WKTool/SkinImages/ImgCarousel/CM_Carousel_3.png View File


BIN
XHWK.WKTool/SkinImages/ImgCarousel/CM_RightDown.png View File


BIN
XHWK.WKTool/SkinImages/Other/Dev_AcousticWave1.gif View File


BIN
XHWK.WKTool/SkinImages/Other/Dev_AcousticWave2.gif View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Out.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Out_MI.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Out_N.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Pause.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Pause_MI.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_PenBlue.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_PenBlue_CL.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_PenBlue_MI.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_PenBlue_N.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_PenRed.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_PenRed_CL.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_PenRed_MI.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_PenRed_N.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Start.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Start_MI.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Stop.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Stop_MI.png View File


BIN
XHWK.WKTool/SkinImages/SR/SR_Stop_N.png View File


BIN
XHWK.WKTool/SkinImages/Skin/Skin_Select.png View File


BIN
XHWK.WKTool/SkinImages/Skin/Skin_TechnologyBlue.png View File


BIN
XHWK.WKTool/SkinImages/Skin/Skin_TechnologyBlue_MI.png View File


BIN
XHWK.WKTool/SkinImages/Skin/Skin_White.png View File


BIN
XHWK.WKTool/SkinImages/Skin/Skin_White_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/HM_BJTitle.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/HM_BJTool.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/HM_Close.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/HM_Close_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/HM_LZIMG.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/HM_PenState.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DR.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DR_CL.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DR_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DR_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DY.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DY_CL.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DY_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_DY_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JC.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JC_CL.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JC_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JC_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JT.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JT_CL.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JT_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JT_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JY.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JY_CL.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JY_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_JY_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LP.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LP_CL.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LP_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LP_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZ.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZZT.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZZT_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZZT_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZ_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_LZ_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_MY.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_MY_CL.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_MY_MI.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_MY_N.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_SZ.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_SZ_CL.png View File


BIN
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_SZ_MI.png View File


+ 0
- 0
XHWK.WKTool/SkinImages/TechnologyBlue/Toolbar_SZ_N.png View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save