Skip to content

Commit d1a5b47

Browse files
committed
chore: Project Properties Adjustment & Remove Useless Component Refresh (actually doesn't improve startup speed) & Bump Version to 1.1.1
1 parent c995ba0 commit d1a5b47

3 files changed

Lines changed: 39 additions & 50 deletions

File tree

OpenLuckyRandom.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<UseWindowsForms>true</UseWindowsForms>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<ApplicationIcon>assets\openluckyrandom.ico</ApplicationIcon>
10+
<Version>1.1.1</Version>
11+
<Authors>What_Damon</Authors>
1012
</PropertyGroup>
1113

1214
<ItemGroup>

WndMain.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using OpenCvSharp;
99
using OpenCvSharp.Extensions;
1010
using System.Diagnostics;
11+
using System.Reflection;
1112
using System.Runtime.InteropServices;
1213

1314
namespace OpenLuckyRandom
@@ -125,10 +126,6 @@ private void LoadFaceCascade(string fileName)
125126
{
126127
currentStatusLabel.Text = $"成功加载人脸级联分类器: {fileName}";
127128
}
128-
129-
// 刷新显示
130-
this.Invalidate(true);
131-
this.Update();
132129
}
133130
catch (Exception ex)
134131
{
@@ -358,15 +355,16 @@ private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
358355
TaskDialogPage page = new TaskDialogPage()
359356
{
360357
Text = "这是一个启发于某沃基于人脸识别随机抽人的玩具\n" +
361-
"版本: 1.1.0\n" +
358+
$"版本: {Assembly.GetExecutingAssembly().GetName().Version}\n" +
362359
"由 What_Damon 开发 (严格意义上时拼贴组合)\n" +
363360
"使用 Apache 2.0 许可证开源\n" +
364361
"项目依赖:\n" +
365362
" · OpenCvSharp4\n" +
366363
" · OpenCvSharp4.Extensions\n" +
367364
" · OpenCvSharp4.runtime.win\n" +
368365
"注意! OpenCV 的依赖可能使用到了不同的许可证\n" +
369-
"请酌情考虑商用问题!",
366+
"请酌情考虑商用问题!\n\n" +
367+
$".NET版本: {Environment.Version.ToString()}",
370368
Heading = "关于 OpenLuckyRandom",
371369
Caption = "关于",
372370
Icon = TaskDialogIcon.Information,

WndMain.resx

Lines changed: 33 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<root>
3-
<!--
4-
Microsoft ResX Schema
5-
3+
<!--
4+
Microsoft ResX Schema
5+
66
Version 2.0
7-
8-
The primary goals of this format is to allow a simple XML format
9-
that is mostly human readable. The generation and parsing of the
10-
various data types are done through the TypeConverter classes
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
1111
associated with the data types.
12-
12+
1313
Example:
14-
14+
1515
... ado.net/XML headers & schema ...
1616
<resheader name="resmimetype">text/microsoft-resx</resheader>
1717
<resheader name="version">2.0</resheader>
@@ -26,36 +26,36 @@
2626
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
2727
<comment>This is a comment</comment>
2828
</data>
29-
30-
There are any number of "resheader" rows that contain simple
29+
30+
There are any number of "resheader" rows that contain simple
3131
name/value pairs.
32-
33-
Each data row contains a name, and value. The row also contains a
34-
type or mimetype. Type corresponds to a .NET class that support
35-
text/value conversion through the TypeConverter architecture.
36-
Classes that don't support this are serialized and stored with the
32+
33+
Each data row contains a name, and value. The row also contains a
34+
type or mimetype. Type corresponds to a .NET class that support
35+
text/value conversion through the TypeConverter architecture.
36+
Classes that don't support this are serialized and stored with the
3737
mimetype set.
38-
39-
The mimetype is used for serialized objects, and tells the
40-
ResXResourceReader how to depersist the object. This is currently not
38+
39+
The mimetype is used for serialized objects, and tells the
40+
ResXResourceReader how to depersist the object. This is currently not
4141
extensible. For a given mimetype the value must be set accordingly:
42-
43-
Note - application/x-microsoft.net.object.binary.base64 is the format
44-
that the ResXResourceWriter will generate, however the reader can
42+
43+
Note - application/x-microsoft.net.object.binary.base64 is the format
44+
that the ResXResourceWriter will generate, however the reader can
4545
read any of the formats listed below.
46-
46+
4747
mimetype: application/x-microsoft.net.object.binary.base64
48-
value : The object must be serialized with
48+
value : The object must be serialized with
4949
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
5050
: and then encoded with base64 encoding.
51-
51+
5252
mimetype: application/x-microsoft.net.object.soap.base64
53-
value : The object must be serialized with
53+
value : The object must be serialized with
5454
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
5555
: and then encoded with base64 encoding.
5656
5757
mimetype: application/x-microsoft.net.object.bytearray.base64
58-
value : The object must be serialized into a byte array
58+
value : The object must be serialized into a byte array
5959
: using a System.ComponentModel.TypeConverter
6060
: and then encoded with base64 encoding.
6161
-->
@@ -117,27 +117,16 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<metadata name="statusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121-
<value>17, 17</value>
122-
</metadata>
123120
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
124-
<data name="optionsDropDownBtn.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
125-
<value>
126-
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
127-
YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAEESURBVEhL3ZKvDoJQFId5Dk0238GGr2DXbqBa3Cw6uy+g
128-
RZozaTM4gxvZQHA6kc05/2CAetzP7bIrF0Hk3iLbx91O+L5xLloQBKQSDS/TNMkwDKnAGQYw0HVdKnAK
129-
Ae/+kIK0wPV0JHvWI3veo4M1kR+wBjot24UQFpEW4OUAX6I2MJMc2K2GoRzrwp18HXDOHjUXp9cZFaeR
130-
GoC0OnWpODq8zqyRxMDGvYdyRtbIx8B6f6Py2HmT/xKJDVRqjY/ytAhm/FwI1FtdKg23gjCOaITdFz8X
131-
An3rIoiSYDL+Z2BzrDl3gMmiPwPAmrHu3IEksG6sXVkAwPlHAZVovu93VKKpfp4ISreGcqlKAwAAAABJ
132-
RU5ErkJggg==
133-
</value>
121+
<data name="statusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing">
122+
<value>17, 17</value>
134123
</data>
135-
<metadata name="captureTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124+
<data name="captureTimer.TrayLocation" type="System.Drawing.Point, System.Drawing">
136125
<value>174, 17</value>
137-
</metadata>
138-
<metadata name="machineStatusTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
126+
</data>
127+
<data name="machineStatusTimer.TrayLocation" type="System.Drawing.Point, System.Drawing">
139128
<value>354, 17</value>
140-
</metadata>
129+
</data>
141130
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
142131
<value>
143132
AAABAAUAAAAAAAEAIABuVwAAVgAAAICAAAABACAAKAgBAMRXAAAwMAAAAQAgAKglAADsXwEAICAAAAEA

0 commit comments

Comments
 (0)