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; } }
private void btnUpdate_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Are you sure you want to Update Movie?", "Update?", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { GetPos(); UpdateSched(); Refresh r = new Refresh(); r.GetRefreshFrame(0); this.Visible = false; } }
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 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; } }
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!"); } }
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); } }