private void iconButton5_Click(object sender, EventArgs e) { fLogin f = new fLogin(); f.Show(); this.Hide(); }
private void label7_Click(object sender, EventArgs e) { this.Hide(); fLogin login = new fLogin(); login.Show(); }
private void label1_Click(object sender, EventArgs e) { this.Close(); fLogin f = new fLogin(); f.Show(); }
private void fUserDashBoard_FormClosed(object sender, FormClosedEventArgs e) { fLogin login = new fLogin(); login.Show(); this.Hide(); }
private void gunaLinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { fLogin f = new fLogin(); f.Show(); this.Hide(); }
private void linkLogout_Click(object sender, EventArgs e) { _logout = true; this.Hide(); fLogin frm = new fLogin(); frm.Show(); }
private void bunifuFlatButton2_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(txtUsername.Text)) { smgError("vui lòng nhập tên đăng nhập "); txtUsername.Focus(); } else if (String.IsNullOrEmpty(txtPasswword.Text)) { smgError("vui lòng nhập mật khẩu "); txtPasswword.Focus(); } else if ((txtPasswword.Text.Length <= 4)) { smgError(" mật khẩu phải trên 4 ký tự "); txtPasswword.Focus(); } else if (String.IsNullOrEmpty(txtRepeatPass.Text)) { smgError("vui lòng nhập lại mật khẩu "); txtRepeatPass.Focus(); } else if (txtPasswword.Text != txtRepeatPass.Text) { smgError("mật khẩu không khớp nhau "); txtRepeatPass.Focus(); picCheckPass2.Visible = false; } else if (String.IsNullOrEmpty(txtEmail.Text)) { smgError("vui lòng nhập email "); txtEmail.Focus(); } else if (IsEmail(txtEmail.Text) == false) { smgError("không đúng định dạng email "); txtEmail.Focus(); } else if (gunaCheckBox1.Checked == false) { smgError("click checkbox ? "); } else if (gunaCheckBox1.Checked) { fLogin f = new fLogin(); f.Show(); this.Hide(); } }
private void BtnSucssec_Click(object sender, EventArgs e) { if (txtNewPass2.Text != txtNewPass.Text) { fLogin f = new fLogin(); f.Show(); this.Hide(); } }
private void timerLoading_Tick(object sender, EventArgs e) { try { panelLoading.Width += 48; if (panelLoading.Width == 48) { timerLoading.Stop(); System.Threading.Thread.Sleep(2000); label4.Text = "Loading Reven..."; revenCtr = new RevenCtr(); timerLoading.Start(); } if (panelLoading.Width == 144) { timerLoading.Stop(); System.Threading.Thread.Sleep(3500); label4.Text = "Loading Product..."; productCtr = new ProductCtr(); timerLoading.Start(); } if (panelLoading.Width == 336) { timerLoading.Stop(); System.Threading.Thread.Sleep(1000); label4.Text = "Loading Customer..."; wareHouseCtr = new WareHouseCtr(); timerLoading.Start(); } if (panelLoading.Width >= 368) { timerLoading.Stop(); fLogin f = new fLogin(); this.Hide(); f.Show(); } } catch (Exception) { return; } }
public void OpenLoginForm() { Form frmChild = this.MdiChildren.OfType <fLogin>().FirstOrDefault(); if (frmChild == null) { fLogin frm = new fLogin(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.FormBorderStyle = FormBorderStyle.None; frm.Dock = DockStyle.Fill; frm.accountAccuracy += Frm_accountAccuracy; frm.Show(); return; } frmChild.Activate(); }
private void fSignUp_FormClosed(object sender, FormClosedEventArgs e) { parentForm.Show(); }