diff --git a/AboutForm.cs b/AboutForm.cs index 681db35..2da3aad 100644 --- a/AboutForm.cs +++ b/AboutForm.cs @@ -57,7 +57,7 @@ namespace AppStore // 初始化并添加应用信息 infoLabel = new Label(); - infoLabel.Text = "kortapp-z\n版本: 1.2.5\n作者: zs-yg\n一个简单、开源的应用商店\nkortapp-z是完全免费\n基于.NET8和C/C++的软件"; + infoLabel.Text = "kortapp-z\n版本: 1.2.6\n作者: zs-yg\n一个简单、开源的应用商店\nkortapp-z是完全免费\n基于.NET8和C/C++的软件"; infoLabel.Font = new Font("Microsoft YaHei", 12); infoLabel.AutoSize = false; infoLabel.Width = 300; diff --git a/MainForm.cs b/MainForm.cs index 6f5d6c0..2ec56c4 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -569,6 +569,43 @@ namespace AppStore } flowPanel.Controls.Add(iconExtractorCard); + // 文本转换器工具卡片 + var textConverterCard = new ToolCard(); + textConverterCard.ToolName = "文本转换器"; + try + { + string iconPath = Path.Combine(Application.StartupPath, "img", "resource", "png", "text converter.png"); + if (File.Exists(iconPath)) + { + textConverterCard.ToolIcon = Image.FromFile(iconPath); + } + else + { + textConverterCard.ToolIcon = SystemIcons.Shield.ToBitmap(); + } + } + catch + { + textConverterCard.ToolIcon = SystemIcons.Shield.ToBitmap(); + } + + textConverterCard.UpdateDisplay(); + textConverterCard.ToolCardClicked += (s, e) => { + try { + string toolPath = Path.Combine(Application.StartupPath, "resource", "text_converter.exe"); + if (File.Exists(toolPath)) { + Process.Start(toolPath); + } else { + MessageBox.Show("文本转换器工具未找到,请确保已正确安装", "错误", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } catch (Exception ex) { + MessageBox.Show($"启动文本转换器失败: {ex.Message}", "错误", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + }; + flowPanel.Controls.Add(textConverterCard); + } catch (Exception ex) { diff --git a/inno/innosetup_x64.iss b/inno/innosetup_x64.iss index 98620b3..a29b720 100644 --- a/inno/innosetup_x64.iss +++ b/inno/innosetup_x64.iss @@ -2,7 +2,7 @@ ; 有关创建 Inno Setup 脚本文件的详细信息,请参阅帮助文档! #define MyAppName "kortapp-z" -#define MyAppVersion "1.2.5" +#define MyAppVersion "1.2.6" #define MyAppPublisher "zsyg" #define MyAppURL "https://github.com/zs-yg/kortapp-z" #define MyAppExeName "kortapp-z.exe" diff --git a/inno/innosetup_x86.iss b/inno/innosetup_x86.iss index 76f94ba..c2c2a8a 100644 --- a/inno/innosetup_x86.iss +++ b/inno/innosetup_x86.iss @@ -2,7 +2,7 @@ ; 有关创建 Inno Setup 脚本文件的详细信息,请参阅帮助文档! #define MyAppName "kortapp-z" -#define MyAppVersion "1.2.5" +#define MyAppVersion "1.2.6" #define MyAppPublisher "zsyg" #define MyAppURL "https://github.com/zs-yg/kortapp-z" #define MyAppExeName "kortapp-z.exe"