Esempio n. 1
0
 //新增活动
 private void Adddetection_btn_Click(object sender, RoutedEventArgs e)
 {
     if (dbUtill.QueryStudentCount() > 0)
     {
         AddActivityWin add = new AddActivityWin
         {
             WindowStartupLocation = WindowStartupLocation.CenterScreen
         };
         add.ShowDialog();
         if (add.DialogResult == true)
         {
             Init();
             ActivityId = "";
         }
     }
     else
     {
         MessageBox.Show("暂无学生数据,请先导入数据再试", "提示");
     }
 }