Exemple #1
0
 private void btnHuyDK_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (!this.Controls.Contains(UC_HuyDKHoc.Instance))
     {
         using (frmKey frm = new frmKey())
         {
             frm.ShowDialog();
             if (frm.DialogResult == DialogResult.OK)
             {
                 this.Controls.Add(UC_HuyDKHoc.Instance);
                 UC_HuyDKHoc.Instance.Dock = DockStyle.Fill;
                 UC_HuyDKHoc.Instance.BringToFront();
             }
         }
     }
     else
     {
         UC_HuyDKHoc.Instance.BringToFront();
     }
 }
Exemple #2
0
        private void btnDangKy_Click(object sender, EventArgs e)
        {
            frmKey key = new frmKey(_mahoa);

            key.ShowDialog();
        }
Exemple #3
0
 private void btnDangKy_Click(object sender, EventArgs e)
 {
     frmKey key = new frmKey(_mahoa);
     key.ShowDialog();
 }