예제 #1
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);
        }
예제 #2
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);
            }
        }