//数校同步按钮 private void Sync_btn_Click(object sender, RoutedEventArgs e) { bool flag = requestUtill.SyncSystemData(); if (flag == true) { dbUtill.SaveSynchronizeTime(); MessageBox.Show("同步成功", "提示"); checkerPage.LastTimeInit(); } else { MessageBox.Show("同步失败,请与技术人员联系", "提示"); } }
//同步学生数据 private void UpdateStuBtn_Click(object sender, RoutedEventArgs e) { MyCustomControlLibrary.MMessageBox.ShowLoading(MyCustomControlLibrary.MMessageBox.LoadType.Circle, "正在同步", new Point(0, 0), new Size(0, 0), "", Orientation.Vertical, "#ffffff", 3); bool flag = requestUtill.SyncSystemData(); if (flag == true) { MyCustomControlLibrary.MMessageBox.MClosed(); dbUtill.SaveSynchronizeTime(); MessageBox.Show("同步成功", "提示"); UIInit(); LastTimeInit(); } else { MessageBox.Show("同步失败,请与技术人员联系", "提示"); } }