Esempio n. 1
0
        private void 课程信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCourse f = frmCourse.Instacne();

            f.MdiParent = this;
            f.Show();
            f.Focus();
        }
Esempio n. 2
0
 public static frmCourse Instacne()
 {
     if (_Instance == null)
     {
         _Instance = new frmCourse();
     }
     return(_Instance);
 }
Esempio n. 3
0
        private void metroTile4_Click(object sender, EventArgs e)
        {
            frmCourse f = frmCourse.Instacne();

            //f.MdiParent = this;
            f.Show();
            f.Focus();
        }
Esempio n. 4
0
 private void toolStripButton_Click(object sender, EventArgs e)
 {
     try
     {
         ChangeEnabledState();
         this.Validate();
         this.courseBindingSource.EndEdit();
         this.tableAdapterManager.UpdateAll(this.student_Manage_DB);
     }
     catch (Exception ex)
     {
         DialogResult result = MessageBox.Show("该课程号已经存在,请重新确认", "操作提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
         frmCourse    f      = new frmCourse();
         this.Close();
         f = new frmCourse();
         f.Show();
         f.Focus();
         return;
     }
 }