Пример #1
0
 private void initProject()
 {
     movieBS      = new MovieBS();
     cinemaBS     = new CinemaBS();
     roomCinemaBS = new RoomCinemaBS();
     timeBS       = new TimeBS();
 }
Пример #2
0
        private void UcListSeat_Load(object sender, EventArgs e)
        {
            SeatBS       = new SeatBS();
            roomCinemaBS = new RoomCinemaBS();

            //gvwSeat.DataSource = SeatBS.loadData();
            loadRoom();
        }
Пример #3
0
        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());
            }
        }
Пример #4
0
        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);
            }
        }