private void initProject() { movieBS = new MovieBS(); cinemaBS = new CinemaBS(); roomCinemaBS = new RoomCinemaBS(); timeBS = new TimeBS(); }
private void UcListSeat_Load(object sender, EventArgs e) { SeatBS = new SeatBS(); roomCinemaBS = new RoomCinemaBS(); //gvwSeat.DataSource = SeatBS.loadData(); loadRoom(); }
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 AddSeat_Load(object sender, EventArgs e) { List <string> listCinem = new List <string>(); roomCinemaBS = new RoomCinemaBS(); seatBS = new SeatBS(); dataRoom = roomCinemaBS.loadCinemaAndRoom(); foreach (DataRow rows in dataRoom.Rows) { listCinem.Add(rows["nameCinema"].ToString()); } listCinem = listCinem.Distinct().ToList(); foreach (string temp in listCinem) { cbxCinema.AddItem(temp); } }