3 Star 10 Fork 4

Talon/ScriptBox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
About.xaml.cs 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
Talon 提交于 2025-04-09 16:32 +08:00 . feat: 优化关于页面
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace ScriptBox
{
/// <summary>
/// About.xaml 的交互逻辑
/// </summary>
public partial class About : Window
{
public string SWVersion { get; set; }
public About(string version)
{
InitializeComponent();
SWVersion = version;
DataContext = this;
}
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
// 在默认浏览器中打开链接
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
// 停止 Hyperlink 控件自动处理链接
e.Handled = true;
}
private void BtnClose_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
private void HeaderGrid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (e.ChangedButton == MouseButton.Left)
{
this.DragMove();
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/talonshaw/ScriptBox.git
git@gitee.com:talonshaw/ScriptBox.git
talonshaw
ScriptBox
ScriptBox
master

搜索帮助