private void MenuUpdateMonitorData_OnClick(object sender, RoutedEventArgs e) { Worker.Run(() => { DevMonitorHelper.GetAllMonitorNodeData(); }, () => { MessageBox.Show("初始化KKSNode点完成"); }); }
private void MenuUpdateAllDate_OnClick(object sender, RoutedEventArgs e) { Worker.Run(() => { DateTime start = DateTime.Now; DevMonitorHelper.InitKKSNode(); DevMonitorHelper.ParseMonitorPoint(); DevMonitorHelper.SaveMonitorPoint(); DevMonitorHelper.ReParseMonitPoint(true); DevMonitorHelper.GetAllMonitorNodeData(); TimeSpan time = DateTime.Now - start; Log.Info(LogTags.KKS, string.Format("【全部】完成 用时:{0}", time)); }, () => { MessageBox.Show("更新数据完成"); }); }