// 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; }
public Show(Movie m, MovieDay d, double p, Time t) { movie = m; Day = d; Price = p; time = t; }
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); } } }
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); } } }
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); } } }
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); }
static void notify(MovieDay day) { trayIcon.BalloonTipText = string.Format(ticketsFoundMessage, cinemaName, day.ToString()); trayIcon.ShowBalloonTip(100000000); }