public FrmPhongKhamHuuNghi()
        {
            try
            {
                bCheckValid = CheckValidation();
                if (!bCheckValid)
                {
                    FrmRegister frmRegister = new FrmRegister();
                    frmRegister.ShowDialog();
                }

                if (bCheckValid)
                {
                    FrmLogin frmLogin = new FrmLogin();

                    frmLogin.ShowDialog();
                    InitializeComponent();
                    //  InitCOMPort();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 2
0
        public FrmTraKetQua_Socket()
        {
            bCheckValid = CheckValidation();
            if (!bCheckValid)
            {
                FrmRegister frmRegister = new FrmRegister();
                frmRegister.ShowDialog();
            }

            if (bCheckValid)
            {
                InitializeComponent();
            }
        }
Exemplo n.º 3
0
        public Form1()
        {
            bCheckValid = CheckValidation();
            if (!bCheckValid)
            {
                FrmRegister frmRegister = new FrmRegister();
                frmRegister.ShowDialog();
            }

            if (bCheckValid)
            {
                FrmLogin frmLogin = new FrmLogin();
                frmLogin.ShowDialog();
                InitializeComponent();
                //  InitCOMPort();
            }
        }
Exemplo n.º 4
0
        public FrmMainRHM()
        {
            try
            {
                bCheckValid = CheckValidation();
                if (!bCheckValid)
                {
                    FrmRegister frmRegister = new FrmRegister();
                    frmRegister.ShowDialog();
                }

                //if (bCheckValid)
                //{
                //    FrmLogin frmLogin = new FrmLogin();
                //    frmLogin.ShowDialog();
                InitializeComponent();
                //}
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 5
0
        private void btActive_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var forms = new FrmRegister();

            forms.Show();
        }
Exemplo n.º 6
0
        private void btActive_Click(object sender, EventArgs e)
        {
            var f = new FrmRegister();

            f.ShowDialog();
        }
Exemplo n.º 7
0
        private void btActive_ItemClick(object sender, ItemClickEventArgs e)
        {
            var forms = new FrmRegister();

            forms.Show();
        }