private void button2_Click(object sender, EventArgs e)
        {
            web_interface form = new web_interface();

            form.Show();
            this.Close();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string text1;
            string text2;
            bool   found = false;

            foreach (Credentials cred in credentials)
            {
                text1 = cred.username;
                text2 = cred.password;
                if (textBox1.Text == text1 && textBox2.Text == text2)
                {
                    found = true;
                    web_interface form2 = new web_interface();
                    File.WriteAllText(Application.StartupPath + "/loggedin.txt", textBox1.Text);
                    form2.Show();
                    this.Hide();
                }
            }

            if (!found)
            {
                MessageBox.Show("Ο συνδυασμός στοιχείων είναι λανθασμένος!");
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            File.WriteAllText(Application.StartupPath + "/loggedin.txt", "");
            web_interface form = new web_interface();

            form.Show();
            this.Hide();
        }
        public Confirmation()
        {
            InitializeComponent();
            monthCalendar1.MinDate = DateTime.Today;
            web_interface form  = new web_interface();
            string        movie = System.IO.File.ReadAllText("movie.txt");

            label5.Text = movie;


            pictureBox1.ImageLocation  = red;
            pictureBox2.ImageLocation  = red;
            pictureBox3.ImageLocation  = red;
            pictureBox4.ImageLocation  = red;
            pictureBox5.ImageLocation  = red;
            pictureBox6.ImageLocation  = red;
            pictureBox7.ImageLocation  = red;
            pictureBox8.ImageLocation  = red;
            pictureBox9.ImageLocation  = red;
            pictureBox10.ImageLocation = red;
            pictureBox11.ImageLocation = red;
            pictureBox12.ImageLocation = red;
            pictureBox13.ImageLocation = red;
            pictureBox14.ImageLocation = red;
            pictureBox15.ImageLocation = red;
            pictureBox16.ImageLocation = red;
            pictureBox17.ImageLocation = red;
            pictureBox18.ImageLocation = red;
            pictureBox19.ImageLocation = red;
            pictureBox20.ImageLocation = red;
            pictureBox21.ImageLocation = red;
            pictureBox22.ImageLocation = red;
            pictureBox23.ImageLocation = red;
            pictureBox23.ImageLocation = red;
            pictureBox24.ImageLocation = red;
            pictureBox25.ImageLocation = red;
            pictureBox26.ImageLocation = red;
            pictureBox27.ImageLocation = red;
            pictureBox28.ImageLocation = red;
            pictureBox29.ImageLocation = red;
            pictureBox30.ImageLocation = red;
            pictureBox31.ImageLocation = red;
            pictureBox32.ImageLocation = red;
            pictureBox33.ImageLocation = red;
            pictureBox34.ImageLocation = red;
            pictureBox35.ImageLocation = red;
            pictureBox36.ImageLocation = red;
            pictureBox37.ImageLocation = red;
            pictureBox38.ImageLocation = red;
            pictureBox39.ImageLocation = red;
            pictureBox40.ImageLocation = red;
        }