private void homeBtn_Click(object sender, EventArgs e) { HomeForrm homeForm = new HomeForrm(); homeForm.GetObj(_loginUser); this.Close(); homeForm.Show(); }
private void button1_Click(object sender, EventArgs e) { HomeForrm homeForm = new HomeForrm(); this.Close(); homeForm.GetObj(_loginformobj); homeForm.Show(); }
private void Loginbtn_Click(object sender, EventArgs e) { username = usernameTB.Text; var password = passwordTB.Text; _flag = _login.LoginValidation(username, password); if (_flag == true) { usernameTB.Text = ""; passwordTB.Text = ""; _status = true; usernamelabel.Text = username; HomeForrm homeForm = new HomeForrm(); homeForm.GetObj(this); this.Hide(); homeForm.Show(); } if (_flag == false) { usernameTB.Text = ""; passwordTB.Text = ""; MessageBox.Show("Please check Your username and Password"); } }