ソースを参照

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

冲突
# Conflicts:
#	XHWK.WKTool/App.config
tags/录制修改前
zhangxueyang 4年前
コミット
8e9d38e7f2

+ 0
- 1
XHWK.WKTool/App.config ファイルの表示

@@ -33,6 +33,5 @@
33 33
     <!--版本号-->
34 34
     <add key="VersionCode" value="10"/>
35 35
     <add key="VersionName" value="1.0.9"/>
36
-    
37 36
   </appSettings>
38 37
 </configuration>

+ 1
- 0
XHWK.WKTool/CountdownWindow.xaml ファイルの表示

@@ -8,6 +8,7 @@
8 8
         mc:Ignorable="d"
9 9
         Title="CountdownWindow" Height="904.335" Width="1235.26"  AllowsTransparency="True"
10 10
     ShowInTaskbar="False"
11
+        Topmost="True"
11 12
     WindowStartupLocation="CenterOwner" WindowState="Maximized"
12 13
     WindowStyle="None">
13 14
     <Window.Background>

+ 2
- 2
XHWK.WKTool/Properties/AssemblyInfo.cs ファイルの表示

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

+ 69
- 0
XHWK.WKTool/Properties/app.manifest ファイルの表示

@@ -0,0 +1,69 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3
+  <assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
4
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5
+    <security>
6
+      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7
+        <!-- UAC 清单选项
8
+             如果想要更改 Windows 用户帐户控制级别,请使用
9
+             以下节点之一替换 requestedExecutionLevel 节点。n
10
+        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
11
+        <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
12
+        <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />
13
+
14
+            指定 requestedExecutionLevel 元素将禁用文件和注册表虚拟化。
15
+            如果你的应用程序需要此虚拟化来实现向后兼容性,则删除此
16
+            元素。
17
+        -->
18
+        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
19
+      </requestedPrivileges>
20
+      <applicationRequestMinimum>
21
+        <defaultAssemblyRequest permissionSetReference="Custom" />
22
+        <PermissionSet class="System.Security.PermissionSet" version="1" ID="Custom" SameSite="site" Unrestricted="true" />
23
+      </applicationRequestMinimum>
24
+    </security>
25
+  </trustInfo>
26
+  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
27
+    <application>
28
+      <!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的
29
+           Windows 版本的列表。取消评论适当的元素,
30
+           Windows 将自动选择最兼容的环境。 -->
31
+      <!-- Windows Vista -->
32
+      <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
33
+      <!-- Windows 7 -->
34
+      <!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
35
+      <!-- Windows 8 -->
36
+      <!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
37
+      <!-- Windows 8.1 -->
38
+      <!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
39
+      <!-- Windows 10 -->
40
+      <!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
41
+    </application>
42
+  </compatibility>
43
+  <!-- 指示该应用程序可以感知 DPI 且 Windows 在 DPI 较高时将不会对其进行
44
+       自动缩放。Windows Presentation Foundation (WPF)应用程序自动感知 DPI,无需
45
+       选择加入。选择加入此设置的 Windows 窗体应用程序(目标设定为 .NET Framework 4.6 )还应
46
+       在其 app.config 中将 "EnableWindowsFormsHighDpiAutoResizing" 设置设置为 "true"。-->
47
+  <!--
48
+  <application xmlns="urn:schemas-microsoft-com:asm.v3">
49
+    <windowsSettings>
50
+      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
51
+    </windowsSettings>
52
+  </application>
53
+  -->
54
+  <!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) -->
55
+  <!--
56
+  <dependency>
57
+    <dependentAssembly>
58
+      <assemblyIdentity
59
+          type="win32"
60
+          name="Microsoft.Windows.Common-Controls"
61
+          version="6.0.0.0"
62
+          processorArchitecture="*"
63
+          publicKeyToken="6595b64144ccf1df"
64
+          language="*"
65
+        />
66
+    </dependentAssembly>
67
+  </dependency>
68
+  -->
69
+</assembly>

+ 4
- 4
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml ファイルの表示

@@ -81,16 +81,16 @@
81 81
                 <!--<Button x:Name="BtnRecordingScreen"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,15,0" Click="BtnRecordingScreen_Click">
82 82
                     <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar25.png"/>
83 83
                 </Button>-->
84
-                <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnStopRecordingScreen_Click">
84
+                <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnStopRecordingScreen_Click" ToolTip="停止">
85 85
                     <Image x:Name="ImgEndRecordingScreen" Source="./Images/Toobar15.png"/>
86 86
                 </Button>
87
-                <Button  Cursor="Hand" x:Name="btnBlackPenOne" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBrush_Click">
87
+                <Button  Cursor="Hand" x:Name="btnBlackPenOne" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBrush_Click" ToolTip="批注">
88 88
                     <Image x:Name="imgBlackPenOne" Source="./Images/31.png"/>
89 89
                 </Button>
90
-                <Button  Cursor="Hand" x:Name="btnBlackPenTwo" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBlackPenTwo_Click">
90
+                <Button  Cursor="Hand" x:Name="btnBlackPenTwo" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBlackPenTwo_Click" ToolTip="批注">
91 91
                     <Image x:Name="imgBlackPenTwo" Source="./Images/31.png"/>
92 92
                 </Button>
93
-                <Button  Cursor="Hand" x:Name="btnReturn" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnReturn_Click">
93
+                <Button  Cursor="Hand" x:Name="btnReturn" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnReturn_Click" ToolTip="返回">
94 94
                     <Image x:Name="imgReturn" Source="./Images/Toobar29.png"/>
95 95
                 </Button>
96 96
             </StackPanel>

+ 8
- 1
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs ファイルの表示

@@ -415,14 +415,21 @@ namespace XHWK.WKTool
415 415
             k_hook.Stop();
416 416
             IsSuspend = true;
417 417
             txbTime.Text = "00:00";
418
+
418 419
             txbTime.Visibility = Visibility.Hidden;
419 420
             End();
421
+            if (APP.W_PracticeWindow != null)
422
+            {
423
+                if (APP.W_PracticeWindow.Visibility == Visibility.Visible)
424
+                {
425
+                    APP.W_PracticeWindow.Hide();
426
+                }
427
+            }
420 428
             if (gridToolbar.Visibility == Visibility.Visible)
421 429
             {
422 430
                 gridToolbar.Visibility = Visibility.Hidden;
423 431
                 gridColour.Visibility = Visibility.Hidden;
424 432
                 gridThickness.Visibility = Visibility.Hidden;
425
-                APP.W_PracticeWindow.Hide();
426 433
             }
427 434
             if (APP.W_XHMicroLessonSystemWindow == null)
428 435
             {

+ 7
- 7
XHWK.WKTool/XHMicroLessonSystemWindow.xaml ファイルの表示

@@ -148,7 +148,7 @@
148 148
             <RowDefinition Height="85*"/>
149 149
             <RowDefinition Height="5*"/>
150 150
         </Grid.RowDefinitions>
151
-        <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0">
151
+        <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0" MinHeight="100px">
152 152
             <Grid.RowDefinitions>
153 153
                 <RowDefinition Height="auto"/>
154 154
                 <RowDefinition Height="auto"/>
@@ -180,7 +180,7 @@
180 180
 
181 181
             <!--第二行-->
182 182
 
183
-            <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,6,0,0" HorizontalAlignment="Left">
183
+            <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0,0,5" HorizontalAlignment="Left">
184 184
                 <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
185 185
                     <StackPanel Orientation="Vertical">
186 186
                         <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
@@ -221,7 +221,7 @@
221 221
             <StackPanel Grid.Row="1" HorizontalAlignment="Center">
222 222
                 <TextBlock x:Name="txbType" Text="" FontSize="20" Foreground="#FFFFFF" Margin="0,25,0,0"/>
223 223
             </StackPanel>
224
-            <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,10,10,0">
224
+            <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,10,5">
225 225
                 <Button Cursor="Hand" x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnAdd_Click" Margin="0,0,30,0">
226 226
                     <StackPanel Orientation="Vertical">
227 227
                         <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png" Visibility="Visible"/>
@@ -247,7 +247,7 @@
247 247
                     <StackPanel Orientation="Vertical">
248 248
                         <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Collapsed"/>
249 249
                         <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Visible"/>
250
-                        <TextBlock Text="我的" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
250
+                        <TextBlock Text="我的" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
251 251
                     </StackPanel>
252 252
                 </Button>
253 253
                 <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnSetUp_Click">
@@ -447,9 +447,9 @@
447 447
             </Button>
448 448
         </Grid>
449 449
         <!--上传-->
450
-        <Grid Grid.Row="1" x:Name="gridUpload" Visibility="Collapsed">
451
-            <Border Width="1276" Background="#EFF1F8">
452
-                <Grid  Width="1236" Background="#FFFFFF" Margin="0,0,0,0">
450
+        <Grid Grid.Row="1" x:Name="gridUpload" Visibility="Hidden">
451
+            <Border Background="#EFF1F8">
452
+                <Grid Background="#FFFFFF" Margin="0,0,0,0">
453 453
                     <!--分4行-->
454 454
                     <Grid.RowDefinitions>
455 455
                         <RowDefinition Height="*"/>

+ 10
- 0
XHWK.WKTool/XHWK.WKTool.csproj ファイルの表示

@@ -37,6 +37,15 @@
37 37
   <PropertyGroup>
38 38
     <ApplicationIcon>256.ico</ApplicationIcon>
39 39
   </PropertyGroup>
40
+  <PropertyGroup>
41
+    <TargetZone>LocalIntranet</TargetZone>
42
+  </PropertyGroup>
43
+  <PropertyGroup>
44
+    <GenerateManifests>false</GenerateManifests>
45
+  </PropertyGroup>
46
+  <PropertyGroup>
47
+    <ApplicationManifest>Properties\app.manifest</ApplicationManifest>
48
+  </PropertyGroup>
40 49
   <ItemGroup>
41 50
     <Reference Include="AForge, Version=2.2.5.0, Culture=neutral, PublicKeyToken=c1db6ff4eaa06aeb, processorArchitecture=MSIL">
42 51
       <HintPath>..\packages\AForge.2.2.5\lib\AForge.dll</HintPath>
@@ -1288,6 +1297,7 @@
1288 1297
     <EmbeddedResource Include="PrintTool\Ghostscript\gs8.71\lib\zeroline.ps">
1289 1298
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1290 1299
     </EmbeddedResource>
1300
+    <None Include="Properties\app.manifest" />
1291 1301
     <None Include="Properties\Settings.settings">
1292 1302
       <Generator>SettingsSingleFileGenerator</Generator>
1293 1303
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>

読み込み中…
キャンセル
保存