Example #1
0
        /// <summary>
        /// 停止主进程。退出程序时调用
        /// </summary>
        public void Exit()
        {
            if (config.options.General.Data)
            {
                //更新用眼时长
                statistic.StatisticUseEyeData();
                //数据持久化
                statistic.Save();
            }

            screen.Dispose();
            DoStop();
            WindowManager.Close("TipWindow");
        }
Example #2
0
 /// <summary>
 /// 停止主进程。退出程序时调用
 /// </summary>
 public void Exit()
 {
     screenService.Dispose();
     DoStop();
     WindowManager.Close("TipWindow");
 }