示例#1
0
 // Constructor
 public Show(Movie movie, MovieDay day, double price, Time time)
 {
     Movie = movie;
     Day   = day;
     Price = price;
     Time  = time;
 }
 public Show(Movie movie, MovieDay day, double price, Time time)
 {
     this.Movie = movie;
     this.Day   = day;
     this.Price = price;
     this.Time  = time;
 }
示例#3
0
 public Show(Movie m, MovieDay d, double p, Time t)
 {
     movie = m;
     Day   = d;
     Price = p;
     time  = t;
 }
示例#4
0
 public void PrintShows(MovieDay day)
 {
     foreach (Show s in Shows)
     {
         if (s.Day == day)
         {
             Console.WriteLine(s + "\n");
         }
     }
 }
 public void PrintShows(MovieDay day)
 {
     foreach (Show x in Shows)
     {
         if (x.Day == day)
         {
             Console.WriteLine(x);
         }
     }
 }
示例#6
0
 public void PrintShows(MovieDay day)
 {
     Console.WriteLine("\n\n Movie Shows and Days \n");
     Console.WriteLine("**************************************************************");
     foreach (var item in Shows)
     {
         if (item.Day == day)
         {
             Console.WriteLine(item);
         }
     }
 }
示例#7
0
        public void PrintShows(MovieDay day)
        {
            Console.WriteLine("Print all shows that are on the day: {0}", day);

            int i = 0;

            foreach (Show show in Shows)
            {
                if (show.Day == day)
                {
                    i++;
                    Console.WriteLine("     {0}: {1}", i, show);
                }
            }
        }
示例#8
0
        static string sendRequest(MovieDay day)
        {
            string         html    = string.Empty;
            var            url     = string.Format(baseURL, days[day]);
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

            request.AutomaticDecompression = DecompressionMethods.GZip;

            using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
                using (Stream stream = response.GetResponseStream())
                    using (StreamReader reader = new StreamReader(stream))
                    {
                        html = reader.ReadToEnd();
                    }

            //Console.WriteLine(html);

            return(html);
        }
示例#9
0
 static void notify(MovieDay day)
 {
     trayIcon.BalloonTipText = string.Format(ticketsFoundMessage, cinemaName, day.ToString());
     trayIcon.ShowBalloonTip(100000000);
 }