private void button5_Click(object sender, EventArgs e)
        {
            Movie_Details obofmoviedetail = new Movie_Details();

            obofmoviedetail.Show();
            this.Hide();
        }
        public void readinformation()
        {
            Movie_Details obofmoviedetail = new Movie_Details();

            user_id = Movie_Details.user_id;
            opendata();
            string quari = "select * from user_detail where Email_id=@email ";

            command = new SqlCommand(quari, con);
            command.Parameters.AddWithValue("@email", user_id);
            datareader = command.ExecuteReader();

            if (datareader.HasRows == true)
            {
                while (datareader.Read())
                {
                    label1.Text = datareader["Name"].ToString();
                    label2.Text = datareader["DOB"].ToString();
                    label3.Text = datareader["Gender"].ToString();
                    label4.Text = datareader["Mobile_no"].ToString();
                    label5.Text = datareader["Email_id"].ToString();
                    pictureBox1.ImageLocation = datareader["image_path"].ToString();
                }
            }
            else
            {
                MessageBox.Show("user_name password worng", "worng", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 3
0
        private void seat_booking_Load(object sender, EventArgs e)
        {
            Movie_Details ob_of_moviedetail = new Movie_Details();

            label2.Text = Movie_Details.moviename;
            movie_name  = label2.Text;
            label1.Text = booking.theater + "  " + booking.statename;
            tablename   = booking.theater + booking.statename;
            label1.Text = booking.theater + "  " + booking.statename;
            tablename   = booking.theater + booking.statename;
            label4.Text = "Date :" + booking.showdate;
            label3.Text = "Show Timing :" + booking.showtiming;
            seatreaddata();
            seat_price();
        }
 private void button2_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedItem == null)
     {
         MessageBox.Show("select payment option");
     }
     else
     {
         updateseat();
         insert_bookinginformation();
         earning();
         send_detail_by_mail();
         Movie_Details obofmovie = new Movie_Details();
         obofmovie.Show();
         this.Dispose();
     }
 }