Exemplo n.º 1
0
 //修改改级
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (myDataGridView1.DataSource == null)
     {
         return;
     }
     if (myDataGridView1.SelectedRows.Count == 1)
     {
         AddClassForm frm = new AddClassForm(FormStatus.Update, int.Parse(this.myDataGridView1.CurrentRow.Cells[0].Value.ToString()));
         frm.Show();
     }
 }
Exemplo n.º 2
0
        //新增班级
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddClassForm frm = new AddClassForm(FormStatus.Add, null);

            frm.Show();
        }