初始化上传

This commit is contained in:
2025-08-26 08:37:44 +08:00
commit 31d81b91b6
448 changed files with 80981 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using Avalonia.Controls;
using System;
using System.Threading.Tasks;
using Ursa.Controls;
namespace .Views
{
public partial class MainWindow : UrsaWindow
{
public MainWindow()
{
InitializeComponent();
}
protected override async Task<bool> CanClose()
{
var result = await MessageBox.ShowOverlayAsync("Are you sure you want to exit?\n您确定要退出吗", "Exit", button: MessageBoxButton.YesNo);
if (result != MessageBoxResult.Yes)
{
return false;
}
Environment.Exit(0);
return true;
}
//private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
//{
// //MessageBoxResult result = MessageBox.Show("确定退出程序?", "提示", MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No);
// //if (result == MessageBoxResult.No)
// //{
// // e.Cancel = true;
// //}
// //else
// //{
// Environment.Exit(0);
// //}
//}
}
}