Пример #1
0
        public TheatherHalls(int hallNumber, int dateID)
        {
            prices = AD.getPrices(hallNumber);

            if (hallNumber == 1)
            {
                AD.CreateHall(150, 14, 12, dateID, prices.Item1, prices.Item2, prices.Item3);
                int hallID = AD.GetHallID(dateID);
                Hall1(hallID);
            }
            else if (hallNumber == 2)
            {
                AD.CreateHall(300, 19, 18, dateID, prices.Item1, prices.Item2, prices.Item3);
                int hallID = AD.GetHallID(dateID);
                Hall2(hallID);
            }
            else if (hallNumber == 3)
            {
                AD.CreateHall(500, 20, 30, dateID, prices.Item1, prices.Item2, prices.Item3);
                int hallID = AD.GetHallID(dateID);
                Hall3(hallID);
            }
        }