From d1a5b47f4ee0fc38a54905b508b1f191ecba9048 Mon Sep 17 00:00:00 2001 From: Damon Lu <59256766+WhatDamon@users.noreply.github.com> Date: Sat, 30 Nov 2024 20:33:39 +0800 Subject: [PATCH] chore: Project Properties Adjustment & Remove Useless Component Refresh (actually doesn't improve startup speed) & Bump Version to 1.1.1 --- OpenLuckyRandom.csproj | 2 ++ WndMain.cs | 10 +++--- WndMain.resx | 77 ++++++++++++++++++------------------------ 3 files changed, 39 insertions(+), 50 deletions(-) diff --git a/OpenLuckyRandom.csproj b/OpenLuckyRandom.csproj index 07fdd5e..393f443 100644 --- a/OpenLuckyRandom.csproj +++ b/OpenLuckyRandom.csproj @@ -7,6 +7,8 @@ true enable assets\openluckyrandom.ico + 1.1.1 + What_Damon diff --git a/WndMain.cs b/WndMain.cs index cec6ca0..c5306d7 100644 --- a/WndMain.cs +++ b/WndMain.cs @@ -8,6 +8,7 @@ using OpenCvSharp; using OpenCvSharp.Extensions; using System.Diagnostics; +using System.Reflection; using System.Runtime.InteropServices; namespace OpenLuckyRandom @@ -125,10 +126,6 @@ private void LoadFaceCascade(string fileName) { currentStatusLabel.Text = $"成功加载人脸级联分类器: {fileName}"; } - - // 刷新显示 - this.Invalidate(true); - this.Update(); } catch (Exception ex) { @@ -358,7 +355,7 @@ 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" + @@ -366,7 +363,8 @@ private void aboutToolStripMenuItem_Click(object sender, EventArgs e) " · OpenCvSharp4.Extensions\n" + " · OpenCvSharp4.runtime.win\n" + "注意! OpenCV 的依赖可能使用到了不同的许可证\n" + - "请酌情考虑商用问题!", + "请酌情考虑商用问题!\n\n" + + $".NET版本: {Environment.Version.ToString()}", Heading = "关于 OpenLuckyRandom", Caption = "关于", Icon = TaskDialogIcon.Information, diff --git a/WndMain.resx b/WndMain.resx index 9886ea7..5321096 100644 --- a/WndMain.resx +++ b/WndMain.resx @@ -1,17 +1,17 @@  - @@ -117,27 +117,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 17, 17 - - - - iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAEESURBVEhL3ZKvDoJQFId5Dk0238GGr2DXbqBa3Cw6uy+g - RZozaTM4gxvZQHA6kc05/2CAetzP7bIrF0Hk3iLbx91O+L5xLloQBKQSDS/TNMkwDKnAGQYw0HVdKnAK - Ae/+kIK0wPV0JHvWI3veo4M1kR+wBjot24UQFpEW4OUAX6I2MJMc2K2GoRzrwp18HXDOHjUXp9cZFaeR - GoC0OnWpODq8zqyRxMDGvYdyRtbIx8B6f6Py2HmT/xKJDVRqjY/ytAhm/FwI1FtdKg23gjCOaITdFz8X - An3rIoiSYDL+Z2BzrDl3gMmiPwPAmrHu3IEksG6sXVkAwPlHAZVovu93VKKpfp4ISreGcqlKAwAAAABJ - RU5ErkJggg== - + + 17, 17 - + 174, 17 - - + + 354, 17 - + AAABAAUAAAAAAAEAIABuVwAAVgAAAICAAAABACAAKAgBAMRXAAAwMAAAAQAgAKglAADsXwEAICAAAAEA