Exemplo n.º 1
0
        private void SubMenu_TaoTK_Click(object sender, EventArgs e)
        {
            if (XL2.QuyenThaoTac.Any(o => o == (int)Quyen.TaoTKDangNhap) == false)
            {
                ACMessageBox.Show(Resources.Text_KoCoQuyen, Resources.Caption_ThongBao, 3000);
                return;
            }

            frm_TaoTaiKhoan frm1      = new frm_TaoTaiKhoan();
            int             indexForm = LayVitriForm(this, frm1.GetType());

            if (indexForm != -1)
            {
                frm1 = MdiChildren[indexForm] as frm_TaoTaiKhoan;
                if (frm1 != null)
                {
                    frm1.BringToFront();
                }
            }
            else
            {
                frm1.MdiParent   = this;
                frm1.WindowState = FormWindowState.Normal;
                frm1.Show();
            }
        }
Exemplo n.º 2
0
        private void barBut_Register_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frm_TaoTaiKhoan _frm = new frm_TaoTaiKhoan();

            _frm.Show();
        }