private void btn_Login_Click(object sender, EventArgs e) { Server.Service1 server = new Server.Service1(); EnterAdmin p = new EnterAdmin(); bool islogin; bool ispassed; server.SLoginAdmin(txt_Email.Text, txt_Password.Text, out islogin, out ispassed); if (ispassed) { if (islogin) { p.Show(); this.Hide(); } else { MessageBox.Show("You cant take the seat of Admin now!"); } } txt_Password.Clear(); txt_Email.Clear(); }