private void button3_Click(object sender, EventArgs e)
        {
            price  = label9.Text;
            time   = label10.Text;
            title  = label1.Text;
            cinema = label12.Text;
            seat   = label29.Text;

            this.Hide();
            movies frm2 = new movies();

            frm2.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            price  = label5.Text;
            time   = label6.Text;
            title  = label7.Text;
            cinema = label8.Text;
            seat   = label25.Text;

            this.Hide();
            movies frm2 = new movies();

            frm2.Show();
        }
Beispiel #3
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string user = "******", pass = "******";

            if (tboxUsername.Text == user && tboxUsername.Text != null &&
                tboxPassword.Text == pass && tboxPassword.Text != null)
            {
                //MessageBox.Show("Welcome");
                this.Hide();
                var form = new movies();
                form.Show();
            }
            else
            {
                ctr++;
                if (ctr == 3)
                {
                    MessageBox.Show("3 Invalid Login Attempt");
                    this.Close();
                }
                MessageBox.Show("Invalid User Account");
            }
        }