将温度定时查询注释放开

This commit is contained in:
maqiao 2025-02-10 08:47:05 +08:00
parent 8136de7300
commit ae1179c247
1 changed files with 13 additions and 13 deletions

View File

@ -394,20 +394,20 @@ namespace DM_Weight.ViewModels
}; };
timer.Start(); timer.Start();
} }
//#region 温度查询定 #region
//int interval = Convert.ToInt32(ConfigurationManager.AppSettings["Interval"]); int interval = Convert.ToInt32(ConfigurationManager.AppSettings["Interval"]);
//if (interval > 0) if (interval > 0)
//{ {
// WDTimer = new System.Timers.Timer(); WDTimer = new System.Timers.Timer();
// WDTimer.Elapsed += new System.Timers.ElapsedEventHandler(GetWD); WDTimer.Elapsed += new System.Timers.ElapsedEventHandler(GetWD);
// WDTimer.Interval = interval; WDTimer.Interval = interval;
// WDTimer.Start(); WDTimer.Start();
// //WDTimer.AutoReset = true; //WDTimer.AutoReset = true;
// //WDTimer.Enabled = true; //WDTimer.Enabled = true;
//} }
//#endregion #endregion
//GetWD(); GetWD();
} }
//每次导航的时候该实列用不用重新创建true是不重新创建,false是重新创建 //每次导航的时候该实列用不用重新创建true是不重新创建,false是重新创建