Exemple #1
0
        public void InitHallWithHallId(string szTheaterId, string szHallId)
        {
            cbb_Hall.ResetText();
            List <SimHall> list = SimHall.RetrieveItems(szTheaterId);

            cbb_Hall.DataSource   = list;
            cbb_Hall.SelectedItem = FindHallByHallId(list, szHallId);
        }
Exemple #2
0
        public void InitHall(string szTheaterId)
        {
            cbb_Hall.ResetText();
            List <SimHall> list = SimHall.RetrieveItems(szTheaterId);

            cbb_Hall.DataSource = list;
            if (list.Count > 0)
            {
                cbb_Hall.SelectedItem = list[0];
            }
            else
            {
                cbb_Hall.SelectedItem = null;
            }
        }
Exemple #3
0
 public void InitHall(string szTheaterId)
 {
     cbb_Hall.ResetText();
     cbb_Hall.DataSource   = SimHall.RetrieveItems(szTheaterId);
     cbb_Hall.SelectedItem = null;
 }