Exemplo n.º 1
0
 private void initProject()
 {
     movieBS      = new MovieBS();
     cinemaBS     = new CinemaBS();
     roomCinemaBS = new RoomCinemaBS();
     timeBS       = new TimeBS();
 }
Exemplo n.º 2
0
        private void bunifuImageButton3_Click(object sender, EventArgs e)
        {
            string id = txtSearch.Text;

            if (id == "")
            {
                dgvData.DataSource = TimeBS.loadData();
                return;
            }
            try
            {
                TimeBS = new TimeBS();
                var temp = TimeBS.Search_Time_Id(id);
                dgvData.DataSource = temp;
            }
            catch (Exception)
            {
                MessageBox.Show("Search string is not in the right format! Please type again");
            }
        }
Exemplo n.º 3
0
 private void UcTimeShow_Load(object sender, EventArgs e)
 {
     timeBS = new TimeBS();
     loadData();
 }
Exemplo n.º 4
0
 private void UcTimeShowing_Load(object sender, System.EventArgs e)
 {
     TimeBS             = new TimeBS();
     dgvData.DataSource = TimeBS.loadData();
 }