private void frmOrderDetail_Load(object sender, EventArgs e) { classOrderDetail c = new classOrderDetail(); seatNo = c.getseatNo; lblDate.Text = c.getDate; lblScreen.Text = c.getScreen; lblTime.Text = c.getTime; CreateColumn(); }
private void frmPaymentCash_Load(object sender, EventArgs e) { classOrderDetail c = new classOrderDetail(); Date = c.getDate; Screen = c.getScreen; Time = c.getTime; seatNo = c.getseatNo; classTransaction t = new classTransaction(); currentDate = t.getDate; }
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); }
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); } }