private void btnMainMenu_Click(object sender, EventArgs e) { StudentLoginViewForm stu = new StudentLoginViewForm(); stu.Show(); this.Hide(); }
private void button2_Click(object sender, EventArgs e) { StudentLoginViewForm form = new StudentLoginViewForm(); this.Hide(); form.Show(); }
private void button1_Click(object sender, EventArgs e) { localhost.Service1 ser = new localhost.Service1(); bool isvaliduser; bool isvaliduserpassed; ser.isValidUser(txtusername.Text, txtpassword.Text, out isvaliduser, out isvaliduserpassed); if (isvaliduser) { StudentLoginViewForm r = new StudentLoginViewForm(); this.Hide(); r.Show(); } else { MessageBox.Show("InValid User"); } }