Example #1
0
        private void tsmiUpdate_Click(object sender, EventArgs e)
        {
            int     StudentNo = Convert.ToInt32(this.dgvList.SelectedRows[0].Cells[0].Value);
            AddForm add       = new AddForm(this);

            add.type      = "修改";
            add.StudentNo = StudentNo;
            add.ShowDialog();
        }
Example #2
0
        private void tsmiAddStudent_Click(object sender, EventArgs e)
        {
            AddForm add = new AddForm();

            add.ShowDialog();
        }