private void initProject() { movieBS = new MovieBS(); cinemaBS = new CinemaBS(); roomCinemaBS = new RoomCinemaBS(); timeBS = new TimeBS(); }
private void FmAddRoom_Load(object sender, EventArgs e) { cinemaBS = new CinemaBS(); roomCinemaBS = new RoomCinemaBS(); dataCinema = cinemaBS.loadData(); foreach (DataRow rows in dataCinema.Rows) { cbxCinema.AddItem(rows["Name"].ToString()); } }
private void bunifuImageButton2_Click(object sender, EventArgs e) { string id = txtSearch.Text; if (id == "") { gvwCinema.DataSource = CinemaBS.loadData(); return; } CinemaBS = new CinemaBS(); try { var temp = CinemaBS.Search_Voucher_Id(id); gvwCinema.DataSource = temp; } catch (Exception) { MessageBox.Show("Search string is not in the right format! Please type again"); } }
private void FmAddCinema_Load(object sender, EventArgs e) { cinemaBS = new CinemaBS(); }
private void UcListCinemaAD_Load(object sender, System.EventArgs e) { CinemaBS = new CinemaBS(); gvwCinema.DataSource = CinemaBS.loadData(); }