public AssignMovieToHall(int i, employee a) { InitializeComponent(); aa = a; empOrMan = i; dataGridViewMovieInfo.DataSource = t.GetAllMovie(); dataGridViewMovieInfo.Columns[2].Visible = false; dataGridViewMovieInfo.Columns[3].Visible = false; dataGridViewMovieInfo.Columns[4].Visible = false; dataGridViewMovieInfo.Columns[5].Visible = false; dataGridViewMovieInfo.Columns[6].Visible = false; dataGridViewMovieInfo.Columns[7].Visible = false; dataGridViewMovieHallInfo.DataSource = t2.GetMovieHall(); if (i == 3) { assignHall_button.Text = "Book Seat"; setSlottime.Enabled = false; setHallIdTxt.Enabled = false; setMovieIdtxt.Enabled = false; dataGridViewMovieHallInfo.DataSource = t2.GetMovieByDate(setMovieDate.Value.Date); } else { } }
public void updateGrid() { dataGridView1.DataSource = t.GetAllMovie(); /* * dataGridView1.Columns[1].Visible = false; * dataGridView1.Columns[2].Visible = false; * dataGridView1.Columns[3].Visible = false; * dataGridView1.Columns[4].Visible = false; * dataGridView1.Columns[5].Visible = false; * dataGridView1.Columns[6].Visible = false; */ }
public Delete_Movie(employee a) { InitializeComponent(); aa = a; dataGridView1.DataSource = t1.GetAllMovie(); /* dataGridView1.Columns[1].Visible = false; * dataGridView1.Columns[2].Visible = false; * dataGridView1.Columns[3].Visible = false; * dataGridView1.Columns[4].Visible = false; * dataGridView1.Columns[5].Visible = false; * dataGridView1.Columns[6].Visible = false;*/ }
public Ticket_Booking(employee a) { InitializeComponent(); aa = a; movieListdataGridView.DataSource = t.GetAllMovie(); }