首页 新闻 会员 周边

Common.Base.Instance.IsApplicationRunning 这个common是哪个命令空间下的呢

0
悬赏园豆:5 [已解决问题] 解决于 2021-01-04 08:27
问题补充:

装了下面那个包也不正确。

Console666的主页 Console666 | 初学一级 | 园豆:4
提问于:2021-01-03 22:37
< >
分享
最佳答案
0

页面底部评论有答复

Regarding the ‘Common.Base.Instance.IsApplicationRunning’ it is a boolean that (as you said) indicates the activity of the application. If it is running it is true and during ‘application closure’ it turns to false.

I would suggest to use a bool variable which at the startup of the application is true and during the termination turns to false. Depending of which (WPF/WinForm/Console) you are using.

不要用代码里面的(代码里的只是伪代码),他建议使用一个变量,如果程序启动就用true,程序关闭使用false

收获园豆:5
E行者 | 小虾三级 |园豆:1761 | 2021-01-04 08:19

我昨晚上也看到了 谢谢哈

Console666 | 园豆:4 (初学一级) | 2021-01-04 08:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册