public static frmClass Instacne()
 {
     if (_Instance == null)
     {
         _Instance = new frmClass();
     }
     return(_Instance);
 }
        private void 班级信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmClass f = frmClass.Instacne();

            f.MdiParent = this;
            f.Show();
            f.Focus();
        }
        private void metroTile2_Click(object sender, EventArgs e)
        {
            frmClass f = frmClass.Instacne();

            //f.MdiParent = this;
            f.Show();
            f.Focus();
        }
 private void metroTile3_Click(object sender, EventArgs e)
 {
     try
     {
         ChangeEnabledState();
         this.Validate();
         this.classBindingSource.EndEdit();
         this.tableAdapterManager.UpdateAll(this.student_Manage_DB);
     }
     catch (Exception ex)
     {
         DialogResult result = MessageBox.Show("对不起,该班级已存在", "操作提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
         frmClass     f      = new frmClass();
         this.Close();
         f = new frmClass();
         f.Show();
         f.Focus();
         return;
     }
 }