Skip to content

Commit

Permalink
chore: Project Properties Adjustment & Remove Useless Component Refre…
Browse files Browse the repository at this point in the history
…sh (actually doesn't improve startup speed) & Bump Version to 1.1.1
  • Loading branch information
WhatDamon committed Nov 30, 2024
1 parent c995ba0 commit d1a5b47
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 50 deletions.
2 changes: 2 additions & 0 deletions OpenLuckyRandom.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>assets\openluckyrandom.ico</ApplicationIcon>
<Version>1.1.1</Version>
<Authors>What_Damon</Authors>
</PropertyGroup>

<ItemGroup>
Expand Down
10 changes: 4 additions & 6 deletions WndMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using OpenCvSharp;
using OpenCvSharp.Extensions;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.InteropServices;

namespace OpenLuckyRandom
Expand Down Expand Up @@ -125,10 +126,6 @@ private void LoadFaceCascade(string fileName)
{
currentStatusLabel.Text = $"成功加载人脸级联分类器: {fileName}";
}

// 刷新显示
this.Invalidate(true);
this.Update();
}
catch (Exception ex)
{
Expand Down Expand Up @@ -358,15 +355,16 @@ private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
TaskDialogPage page = new TaskDialogPage()
{
Text = "这是一个启发于某沃基于人脸识别随机抽人的玩具\n" +
"版本: 1.1.0\n" +
$"版本: {Assembly.GetExecutingAssembly().GetName().Version}\n" +
"由 What_Damon 开发 (严格意义上时拼贴组合)\n" +
"使用 Apache 2.0 许可证开源\n" +
"项目依赖:\n" +
" · OpenCvSharp4\n" +
" · OpenCvSharp4.Extensions\n" +
" · OpenCvSharp4.runtime.win\n" +
"注意! OpenCV 的依赖可能使用到了不同的许可证\n" +
"请酌情考虑商用问题!",
"请酌情考虑商用问题!\n\n" +
$".NET版本: {Environment.Version.ToString()}",
Heading = "关于 OpenLuckyRandom",
Caption = "关于",
Icon = TaskDialogIcon.Information,
Expand Down
77 changes: 33 additions & 44 deletions WndMain.resx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
Expand All @@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
Expand Down Expand Up @@ -117,27 +117,16 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="statusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="optionsDropDownBtn.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAEESURBVEhL3ZKvDoJQFId5Dk0238GGr2DXbqBa3Cw6uy+g
RZozaTM4gxvZQHA6kc05/2CAetzP7bIrF0Hk3iLbx91O+L5xLloQBKQSDS/TNMkwDKnAGQYw0HVdKnAK
Ae/+kIK0wPV0JHvWI3veo4M1kR+wBjot24UQFpEW4OUAX6I2MJMc2K2GoRzrwp18HXDOHjUXp9cZFaeR
GoC0OnWpODq8zqyRxMDGvYdyRtbIx8B6f6Py2HmT/xKJDVRqjY/ytAhm/FwI1FtdKg23gjCOaITdFz8X
An3rIoiSYDL+Z2BzrDl3gMmiPwPAmrHu3IEksG6sXVkAwPlHAZVovu93VKKpfp4ISreGcqlKAwAAAABJ
RU5ErkJggg==
</value>
<data name="statusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing">
<value>17, 17</value>
</data>
<metadata name="captureTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<data name="captureTimer.TrayLocation" type="System.Drawing.Point, System.Drawing">
<value>174, 17</value>
</metadata>
<metadata name="machineStatusTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
</data>
<data name="machineStatusTimer.TrayLocation" type="System.Drawing.Point, System.Drawing">
<value>354, 17</value>
</metadata>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAUAAAAAAAEAIABuVwAAVgAAAICAAAABACAAKAgBAMRXAAAwMAAAAQAgAKglAADsXwEAICAAAAEA
Expand Down

0 comments on commit d1a5b47

Please # to comment.