private void 学生选课表Tile_Click(object sender, EventArgs e)
        {
            frmStuCou f = new frmStuCou();

            //f.MdiParent = this;
            f.Show();
            f.Focus();
        }
Beispiel #2
0
 private void metroTile4_Click(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToDecimal(gradeTextBox.Text) < 0 || Convert.ToDecimal(gradeTextBox.Text) > 100)
         {
             DialogResult result = MessageBox.Show("对不起,输入成绩无效", "操作提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
             frmStuCou    f      = new frmStuCou();
             this.Close();
             f = new frmStuCou();
             f.Show();
             f.Focus();
             return;
         }
         ChangeEnabledState();
         this.Validate();
         this.stuCouBindingSource.EndEdit();
         this.tableAdapterManager.UpdateAll(this.student_Manage_DB);
     }
     catch (Exception ex)
     {
         DialogResult result = MessageBox.Show("对不起,数据库中无此学号对应的学生/无对应的课程号/重复录入,请检查,添加失败", "操作提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
     }
 }