diff --git a/AboutForm.cs b/AboutForm.cs index 691bea9..a967dac 100644 --- a/AboutForm.cs +++ b/AboutForm.cs @@ -50,7 +50,7 @@ namespace AppStore // 初始化并添加应用信息 infoLabel = new Label(); - infoLabel.Text = "kortapp-z\n版本: 1.0.9\n作者: zs-yg\n一个简单、开源的应用商店\nkortapp-z是完全免费\n基于.NET8和C/C++的软件"; + infoLabel.Text = "kortapp-z\n版本: 1.1.0\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 8926fe3..2d8d2ef 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -518,6 +518,42 @@ namespace AppStore } flowPanel.Controls.Add(imageViewerCard); + // 密码生成器工具卡片 + var passwordGeneratorCard = new ToolCard(); + passwordGeneratorCard.ToolName = "密码生成器"; + try + { + string iconPath = Path.Combine(Application.StartupPath, "img", "resource", "png", "password_generator.png"); + if (File.Exists(iconPath)) + { + passwordGeneratorCard.ToolIcon = Image.FromFile(iconPath); + } + else + { + passwordGeneratorCard.ToolIcon = SystemIcons.Shield.ToBitmap(); + } + } + catch + { + passwordGeneratorCard.ToolIcon = SystemIcons.Shield.ToBitmap(); + } + passwordGeneratorCard.ToolCardClicked += (s, e) => { + try { + string toolPath = Path.Combine(Application.StartupPath, "resource", "password_generator.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); + } + }; + passwordGeneratorCard.UpdateDisplay(); + flowPanel.Controls.Add(passwordGeneratorCard); + } catch (Exception ex) {