Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            string path = System.IO.Path.GetDirectoryName(Application.ExecutablePath);

            if (isValid())
            {
                using (SqlConnection conn = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename= " + path + @"\Database1.mdf;Integrated Security=True"))
                {
                    string query = "SELECT * FROM Login WHERE Username = '******' AND Password = '******'";
                    SqlDataAdapter sda = new SqlDataAdapter(query, conn);
                    DataTable      dta = new DataTable();
                    sda.Fill(dta);
                    if (dta.Rows.Count == 1)
                    {
                        movieChoice movie = new movieChoice(KindOfMovie, reservedSeats);
                        this.Hide();
                        movie.ShowDialog();
                        this.Close();
                    }
                    else
                    {
                        MessageBox.Show("Onjuiste inloggegevens!");
                    }
                }
            }
        }
Ejemplo n.º 2
0
        private void FourDXBackButton_Click(object sender, EventArgs e)
        {
            movieChoice mc = new movieChoice(kindofmovie, reservedSeats);

            this.Hide();
            mc.ShowDialog();
            this.Close();
        }
Ejemplo n.º 3
0
        private void previousPage_Click(object sender, EventArgs e)
        {
            movieChoice mc = new movieChoice(KindOfMovie, ReservedList[indexDay][indexTime]);

            this.Hide();
            mc.ShowDialog();
            this.Close();
        }
Ejemplo n.º 4
0
        private void Terug_Click(object sender, EventArgs e)
        {
            movieChoice movie = new movieChoice(KindOfMovie, reservedSeats);

            this.Hide();
            movie.ShowDialog();
            this.Close();
        }