提交单例模式释放错误
This commit is contained in:
parent
33c2994455
commit
cb7e216b3a
DHSoftware
@ -25,7 +25,7 @@ namespace DHSoftware
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (_instance == null)
|
if (_instance == null || _instance.IsDisposed)
|
||||||
_instance = new LoginWindow();
|
_instance = new LoginWindow();
|
||||||
return _instance;
|
return _instance;
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ namespace DHSoftware.Views
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (_instance == null)
|
if (_instance == null || _instance.IsDisposed)
|
||||||
_instance = new SettingWindow();
|
_instance = new SettingWindow();
|
||||||
return _instance;
|
return _instance;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user