Exemple #1
0
        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;
            }
        }
Exemple #2
0
 private void NoBTN_Click(object sender, EventArgs e)
 {
     MainForm home = new MainForm(sessionId);
     home.Show();
     this.Visible = false;
 }
Exemple #3
0
 public void setForm(MainForm form)
 {
     this.mForm = form;
 }
Exemple #4
0
 private void cancelBTN_Click(object sender, EventArgs e)
 {
     MainForm mForm = new MainForm(sessionId);
     mForm.Show();
     this.Close();
 }