private void bt_Class_Click(object sender, EventArgs e)
        {
            FrmAddClass frmclass = new FrmAddClass();

            frmclass.updatelist1 += new UpdateEventHandler(updata);
            frmclass.ShowDialog();
        }
        private void bt_ReviceClass_Click(object sender, EventArgs e)
        {
            int rows   = dgv_Class.CurrentRow.Index;            //得到行
            int column = dgv_Class.CurrentCell.ColumnIndex + 1; //得到列

            string Grade = dgv_Class.Rows[rows].Cells[2].Value.ToString();

            string ClassID    = dgv_Class.Rows[rows].Cells[1].Value.ToString();
            string Class      = dgv_Class.Rows[rows].Cells[0].Value.ToString();
            string Department = dgv_Class.Rows[rows].Cells[3].Value.ToString();

            int         key    = 1;
            FrmAddClass revice = new FrmAddClass(Grade, ClassID, Class, Department, key);

            revice.updatelist1 += new UpdateEventHandler(updata);  //调用委托
            revice.ShowDialog();
            //MessageBox.Show(Department);
            //MessageBox.Show(dgv_Class.CurrentRow.Index.ToString());   //选中行的索引
            //MessageBox.Show(dgv_Class.CurrentCell.Value.ToString());  //选中单元格的值
        }