Exemple #1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Are you sure you want to Delete Movie?", "Delete?", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                DeleteSched();
                Refresh r = new Refresh();
                r.GetRefreshFrame(0);
                this.Visible = false;
            }
        }
Exemple #2
0
        private void btnPullout_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Are you sure you want to Pull-out Movie?", "Pull-out", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                GetIDMovie();
                PullOut();
                Refresh r = new Refresh();
                r.GetRefreshFrame(0);
                this.Visible = false;
            }
        }
Exemple #3
0
        private void frmReceiptViewer_FormClosed(object sender, FormClosedEventArgs e)
        {
            classOrderDetail c = new classOrderDetail();

            c.ResetData();

            classTransaction t = new classTransaction();

            c.ResetData();

            Refresh r = new Refresh();

            r.GetRefreshFrame(0);
        }
Exemple #4
0
 private void btnSet_Click(object sender, EventArgs e)
 {
     if (picBoxMovie.Image == null)
     {
         MessageBox.Show("Please Fill up Everything");
     }
     else
     {
         GetPos();
         InsertMovieSchedule();
         //ValidateSchedule();
         Refresh r = new Refresh();
         r.GetRefreshFrame(0);
         this.Visible = false;
     }
 }
Exemple #5
0
        private void btEnter_Click(object sender, EventArgs e)
        {
            if (!tbName.Text.Trim().Equals("") && !tbContact.Text.Trim().Equals("") && !tbEmail.Text.Trim().Equals(""))
            {
                dbAddBooking();
                PrintReceipt();

                //printPreviewDialog1.Document = printDocument1;
                //printPreviewDialog1.ShowDialog();

                Refresh r = new Refresh();
                r.GetRefreshFrame(0);

                this.Close();
            }
            else
            {
                MessageBox.Show("Please input some infor!");
            }
        }
Exemple #6
0
        private void btnPayment_Click(object sender, EventArgs e)
        {
            if (seatnumcount <= 0)
            {
                MessageBox.Show("Please Select Seat Number!");
            }
            else if (cbSched.Text == "No Available")
            {
                MessageBox.Show("No schedule available");
            }
            else
            {
                DateTime currentDate = DateTime.Now;

                String date   = dateTimePicker1.Value.Date.ToString("yyyy-MM-dd");
                String screen = cbScreen.SelectedItem.ToString();

                refreshPnl = new Refresh();
                refreshPnl.GetRefreshFrame(1);

                timer.Tick += new EventHandler(RefreshEvent);
                timer.Start();

                classOrderDetail c = new classOrderDetail();
                c.ResetData();
                c.setDate(date);
                c.setScreen(screen);
                c.setTime(SelSchedTime);
                c.setSetseatNo(seatnum);

                classTransaction t = new classTransaction();
                t.ResetData();
                t.setDate(currentDate.ToString("yyyy-MM-dd"));

                frmOrderDetail form = new frmOrderDetail();
                form.ShowDialog(this);
            }
        }