////////////////////////////////////NTP服务///////////////////////////////////// private void OnNTP(object sender, MouseButtonEventArgs e) { Tool.XControl.ImageButton Btn = sender as Tool.XControl.ImageButton; string net_id = Btn.Tag.ToString(); WinNTPService.Show(This, net_id); }
private void OnNTPBatch(object sender, RoutedEventArgs e) { string list = null; foreach (string ep in SelectRobotInfoList) { list += Tool.RobotsHome.RobotInfoCollect.GetInstance().FindNetId(ep) + "|"; } if (null == list) { this.ShowNotify("请选择需要执行NTP同步的车辆", "提示"); return; } WinNTPService.Show(This, list); }