Ejemplo n.º 1
0
 private void initProject()
 {
     movieBS      = new MovieBS();
     cinemaBS     = new CinemaBS();
     roomCinemaBS = new RoomCinemaBS();
     timeBS       = new TimeBS();
 }
Ejemplo n.º 2
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());
            }
        }
Ejemplo n.º 3
0
        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");
            }
        }
Ejemplo n.º 4
0
 private void FmAddCinema_Load(object sender, EventArgs e)
 {
     cinemaBS = new CinemaBS();
 }
Ejemplo n.º 5
0
 private void UcListCinemaAD_Load(object sender, System.EventArgs e)
 {
     CinemaBS             = new CinemaBS();
     gvwCinema.DataSource = CinemaBS.loadData();
 }