加载界面、程序关闭界面、单例模式

This commit is contained in:
2025-03-24 18:21:21 +08:00
parent 126db6bf91
commit 2b32e1a649
12 changed files with 807 additions and 199 deletions

View File

@ -19,7 +19,19 @@ namespace DHSoftware.Views
InitData();
}
/// <summary>
/// 窗体对象实例
/// </summary>
private static SettingWindow _instance;
internal static SettingWindow Instance
{
get
{
if (_instance == null)
_instance = new SettingWindow();
return _instance;
}
}
private void BindEventHandler()
{
Resize += SettingWindow1_Resize;