private void tsbDelete_Click_1(object sender, EventArgs e)
 {
     if (departmentBindingSource.Current != null)
     {
         try
         {
             if (MessageBox.Show("确定删除吗?", "确定", MessageBoxButtons.YesNo,
                                 MessageBoxIcon.Question) == DialogResult.Yes)
             {
                 departmentBindingSource.RemoveCurrent();
                 this.tableAdapterManager.UpdateAll(this.student_Manage_DB);
             }
         }
         catch (Exception ex)
         {
             DialogResult  result = MessageBox.Show("违规操作,删除失败", "操作提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
             frmDepartment f      = frmDepartment.Instacne();
             f.Close();
             //f.MdiParent = this;
             f = frmDepartment.Instacne();
             f.Show();
             f.Focus();
         }
     }
 }
예제 #2
0
        private void 系部信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDepartment f = frmDepartment.Instacne();

            f.MdiParent = this;
            f.Show();
            f.Focus();
        }
예제 #3
0
        private void metroTile1_Click(object sender, EventArgs e)
        {
            frmDepartment f = frmDepartment.Instacne();

            //f.MdiParent = this;
            f.Show();
            f.Focus();
        }