private void cậpNhậtSinhViênToolStripMenuItem_Click(object sender, EventArgs e) { FrmSinhVien frm = new FrmSinhVien(); frm.Ten = txtname.Text; frm.Quyen = txtquyen.Text; frm.ShowDialog(); }
private void btThoat_Click(object sender, EventArgs e) { DialogResult rs; rs = MessageBox.Show("Bạn muốn thoát không?", "Thoát", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (rs == DialogResult.Yes) { this.Close(); FrmSinhVien fr = new FrmSinhVien(); fr.btHuy_Click(sender, e); } }