示例#1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmStudentProfile frm = new frmStudentProfile();

            frm.Show();
            this.Hide();
        }
示例#2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            frmStudentProfile frm = new frmStudentProfile();

            frm.studentID = Convert.ToInt32(dgvStudents.SelectedRows[0].Cells[0].Value.ToString());
            frm.Show();
            this.Hide();
        }