加载界面、程序关闭界面、单例模式
This commit is contained in:
@ -15,9 +15,22 @@ namespace DHSoftware.Views
|
||||
public WelcomeWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
|
||||
Control.CheckForIllegalCrossThreadCalls = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 窗体对象实例
|
||||
/// </summary>
|
||||
private static WelcomeWindow _instance;
|
||||
internal static WelcomeWindow Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_instance == null)
|
||||
_instance = new WelcomeWindow();
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user