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); } }
public FrmTraKetQua_Socket() { bCheckValid = CheckValidation(); if (!bCheckValid) { FrmRegister frmRegister = new FrmRegister(); frmRegister.ShowDialog(); } if (bCheckValid) { InitializeComponent(); } }
public Form1() { bCheckValid = CheckValidation(); if (!bCheckValid) { FrmRegister frmRegister = new FrmRegister(); frmRegister.ShowDialog(); } if (bCheckValid) { FrmLogin frmLogin = new FrmLogin(); frmLogin.ShowDialog(); InitializeComponent(); // InitCOMPort(); } }
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); } }
private void btActive_Click(object sender, EventArgs e) { var f = new FrmRegister(); f.ShowDialog(); }