Пример #1
0
        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());
            }
        }
Пример #2
0
 private void Login_Linklabel_Click(object sender, EventArgs e)
 {
     NewForm login = new NewForm("Regiszt_Form", new WindowsFormsApp1.Login_Form());
 }
Пример #3
0
 private void Regist_Linklabel_Click(object sender, EventArgs e)
 {
     NewForm form = new NewForm("Login_Form", new WindowsFormsApp1.Regiszt_Form());
 }
Пример #4
0
        private void MainMouseClick(object sender, MouseEventArgs e)
        {
            NewForm newForm = new NewForm();

            newForm.Show();
        }
Пример #5
0
        private void _newButton_Click(object sender, EventArgs e)
        {
            var newForm = new NewForm();

            newForm.ShowDialog();
        }