Esempio n. 1
0
        public void VipPrice(int VipCost)
        {
            DataTable dt  = Screening.RetrieveCinemaIDTable();
            DataTable dt2 = Screening.ScreeningDates();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                string sScreeningID = dt2.Rows[i]["ScreeningID"].ToString();
                int    iScreeningID = int.Parse(sScreeningID);
                string sCinemaID    = dt.Rows[i]["CinemaID"].ToString();
                int    iCinemaID    = int.Parse(sCinemaID);
                string kind         = CinemaClass.CinemaKind(iCinemaID);
                if (kind == "vip")
                {
                    int normalPrice = Screening.RetrieveScreeningPrice(iScreeningID);
                    int sum         = normalPrice + (normalPrice * VipCost / (100));
                    Screening.InputPrice(sum, iScreeningID);
                }
            }
        }