예제 #1
0
파일: FrmMain.cs 프로젝트: ds-v-bui/ktx
        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();
        }
예제 #2
0
        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);
            }
        }