private void button1_Click(object sender, EventArgs e) { Buildyourbody b = new Buildyourbody(); b.Show(); this.Hide(); }
private void buttonLogin_Click(object sender, EventArgs e) { errorProviderLogin.Clear(); Login l = new Login(username.Text, pwd.Text); if (l.loginCheck() == true) { islogged = l.getUsername(); loggedID = l.getLoginId(); loggedTsuly = l.Tsuly; loggedTmagassag = l.Tmagassag; Buildyourbody b = new Buildyourbody(); b.Show(); this.Hide(); } else { FormError fe = new FormError("Sikertelen bejelentkezés!"); DialogResult result = fe.ShowDialog(); if (result == DialogResult.OK) { fe.Hide(); } //errorProviderLogin.SetError(buttonLogin, "Sikertelen Belépés!"); //MessageBox.Show("Sikertelen Belépés", "Belépés", MessageBoxButtons.OKCancel, MessageBoxIcon.Error); } }