mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
31 lines
917 B
C#
31 lines
917 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Input;
|
|
using Sheas_Cealer.Utils;
|
|
|
|
namespace Sheas_Cealer.Wins;
|
|
|
|
public partial class AboutWin : Window
|
|
{
|
|
internal AboutWin() => InitializeComponent();
|
|
protected override void OnSourceInitialized(EventArgs e) => IconRemover.RemoveIcon(this);
|
|
|
|
private void AboutButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
Button? senderButton = sender as Button;
|
|
|
|
if (senderButton == VersionButton)
|
|
MessageBox.Show("密码: 3wnj");
|
|
|
|
ProcessStartInfo processStartInfo = new(senderButton == EmailButton ? "mailto:" : string.Empty + senderButton!.ToolTip) { UseShellExecute = true };
|
|
Process.Start(processStartInfo);
|
|
}
|
|
|
|
private void AboutWin_KeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
if (e.Key == Key.Escape)
|
|
Close();
|
|
}
|
|
} |