private void loginLogin() { Guid id = service.Login(txtUsername.Text, txtPassword.Text, "Account Manager"); if (id == Guid.Empty) { //txtUsername.Text = ""; txtPassword.Text = ""; ErrorLBL.Text = "Invalid Username or Password "; ErrorLBL.ForeColor = Color.Red; ErrorLBL.Visible = true; } else { MainForm home = new MainForm(id); home.Show(); this.Visible = false; } }
private void NoBTN_Click(object sender, EventArgs e) { MainForm home = new MainForm(sessionId); home.Show(); this.Visible = false; }
public void setForm(MainForm form) { this.mForm = form; }
private void cancelBTN_Click(object sender, EventArgs e) { MainForm mForm = new MainForm(sessionId); mForm.Show(); this.Close(); }