示例#1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Login_UI login = new Login_UI();

            login.Show();
        }
示例#2
0
        private void Logout_Button_Click(object sender, EventArgs e)
        {
            this.Hide();
            Login_UI LoginUI = new Login_UI();

            LoginUI.Show();
        }
示例#3
0
        private void Register_Btn_Click(object sender, EventArgs e)
        {
            string role = "User";

            if (passcheck_text.Text != Password_text.Text)
            {
                MessageBox.Show("De wachtwoorden komen niet overeen.");
            }
            else if (passcheck_text.Text == "" && username_text.Text == "" && firstname_text.Text == "" && lastname_text.Text == "" && email_text.Text == "" && Password_text.Text == "")
            {
                MessageBox.Show("Je moet alles invullen om door te gaan.");
            }
            else
            {
                con.Execute(@"INSERT INTO `sql11169883`.`login`
                (`UserName`,
                `Password`,
                `Role`,
                `Email`,
                `Firstname`,
                `Lastname`)
                VALUES('" + username_text.Text + "','" + Password_text.Text + "','" + role + "','" + email_text.Text + "','" + firstname_text.Text + "','" + lastname_text.Text + "')", con);
                MessageBox.Show("Gelukt! U kunt nu inloggen");
            }
            Login_UI login = new Login_UI();

            this.Hide();
            login.Show();
        }