private void Login_Button_Click(object sender, EventArgs e) { try { Sql select = new Sql("SELECT felhasz FROM users WHERE felhasz='" + Felhasz.Text + "'AND jelszo= SHA1('" + Jelszo.Text + "')"); if (select.rdr.HasRows == true) { MessageBox.Show("Sikeres bejelentkezés"); NewForm form = new NewForm("Login_Form", new WindowsFormsApp1.Form3()); } else { MessageBox.Show("Hibás felhasználónév / jelszó!"); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void Login_Linklabel_Click(object sender, EventArgs e) { NewForm login = new NewForm("Regiszt_Form", new WindowsFormsApp1.Login_Form()); }
private void Regist_Linklabel_Click(object sender, EventArgs e) { NewForm form = new NewForm("Login_Form", new WindowsFormsApp1.Regiszt_Form()); }
private void MainMouseClick(object sender, MouseEventArgs e) { NewForm newForm = new NewForm(); newForm.Show(); }
private void _newButton_Click(object sender, EventArgs e) { var newForm = new NewForm(); newForm.ShowDialog(); }