public string PrettyPrintReleaseDate()
 {
     if (ReleaseDate == DateTime.MinValue)
     {
         return("Unknown");
     }
     return(ReleaseDate.ToShortDateString());
 }
Esempio n. 2
0
 // Print movie properties
 public override string ToString()
 {
     return("Title: " + Title +
            "\n\t\t Genre: " + Genre +
            "\n\t\t Classification: " + Classification +
            "\n\t\t Director: " + Director +
            "\n\t\t Stars: " + Starring +
            "\n\t\t Duration: " + Duration +
            "\n\t\t Release Date: " + ReleaseDate.ToShortDateString() +
            "\n\t\t Number of Copies: " + NumAvCopies);
 }
Esempio n. 3
0
        public string ToLongString()
        {
            string[] lines =
            {
                $"{Title} ({ReleaseDate.ToShortDateString()}), {Genre}-{ShowType.ToString()}",
                Description,
                Actors,
                $"IMDB: {ImdbRating} ({ImdbId})",
                (!Available ? " Unavailable" : "")
            };

            return(String.Join(Environment.NewLine, lines));
        }
Esempio n. 4
0
        public void DisplayMovieInformation()
        {
            Console.Write($"Movies : {MovieName}" +
                          $"\nRate : {Rate} out of 10" +
                          $"\nReleased on: {ReleaseDate.ToShortDateString()}" +
                          $"\nLanguages: ");

            for (int i = 0; i < Languages.Length; i++)
            {
                Console.Write(Languages[i]);
                if (i < Languages.Length - 1)
                {
                    Console.Write(", ");
                }
                else
                {
                    Console.WriteLine();
                }
            }
            Console.Write("Countries : ");
            for (int i = 0; i < Countries.Length; i++)
            {
                Console.Write(Countries[i]);
                if (i < Countries.Length - 1)
                {
                    Console.Write(", ");
                }
            }
            Console.Write("\nGenres : ");
            for (int i = 0; i < Genres.Length; i++)
            {
                Console.Write(Genres[i]);
                if (i < Genres.Length - 1)
                {
                    Console.Write(", ");
                }
                else
                {
                    Console.WriteLine();
                }
            }
            Console.WriteLine("---------------------------------------");
        }
Esempio n. 5
0
 public override string ToString()
 {
     return string.Format("Модель: {0}{1};\nЦена: {2}UAH;\nДата выпуска: {3};\nДиагональ дисплея: {4};\nОперационная система: {5};\nКоличество sim-карт: {6}шт;\nОперативная память: {7}Gb;\nВстроенная память: {8}Gb;\nКамера: {9}Mp;\nБатарея: {10}Mah;\nБлютуз: {11};\nWiFi: {12};\nGPS: {13};\nA-GPS: {14};\nOTG: {15}",
         BrandName, Name, Price, ReleaseDate.ToShortDateString(), DisplaySize, OS, SimCardQuantity, RAM, ROM, Camera, BatteryCapacity, Comm.Bluetooth, Comm.WiFi, Comm.GPS, Comm.AGPS, Comm.OTG);
 }
Esempio n. 6
0
 public override string ToString()
 {
     return($"ID [{Id}] Title [{Title}] Author [{Author}] Release Date [{ReleaseDate.ToShortDateString()}]");
 }
 public override string ToString()
 {
     return(String.Format("{0} directed by {1} was released on {2} with an age rating of {3} and a ticket sale price of {4}",
                          FilmName, Director, ReleaseDate.ToShortDateString(), AgeRating, TicketPrice));
 }
 public override string ToString()
 {
     return(String.Format("{0} directed by {1} was released on {2} with an age rating of {3} and a ticket sale price of {4} ({5} with Glasses & Promo Discount of {6})",
                          FilmName, Director, ReleaseDate.ToShortDateString(), AgeRating, TicketPrice, FinalTicketPrice, PromotionalDiscount));
 }
Esempio n. 9
0
 /// <summary>
 /// Generates the Cypher property string for the MediaNode.
 /// </summary>
 /// <returns>The Cypher property string for the MediaNode</returns>
 public override string GetCypherPropertyString()
 {
     // Get the base string
     return($"{base.GetCypherPropertyString()}, releaseDate:\"{ReleaseDate.ToShortDateString()}\", franchise:\"{Franchise}\", genres:{CypherQueryUtils.GetCypherStringArray(Genres)}");
 }
Esempio n. 10
0
 public override string ToString()
 {
     return(HostingType + " בתאריכים" + EntryDate.ToShortDateString() + "  " + ReleaseDate.ToShortDateString() + "סטטוס הבקשה" + Status);
 }
Esempio n. 11
0
 public override string ToString()
 {
     return(string.Format($"{Name} will be released on {ReleaseDate.ToShortDateString()} and is selling for {Price} with a pegi rating of {PEGI_rating}"));
 }
Esempio n. 12
0
 public override string ToString()
 {
     return($" {Name}{" - "}{ ReleaseDate.ToShortDateString() }");
 }
Esempio n. 13
0
 public override string ToString()
 {
     return("Movie_id: " + Id + " Title: " + Title + " Country: " + Country + " Release date: " + ReleaseDate.ToShortDateString() + " Age limit: " + AgeLimit);
 }
Esempio n. 14
0
 //https://store.playstation.com/store/api/chihiro/00_09_000/container/RU/ru/999/EP1004-CUSA00411_00-PREMIUMPACKOG001/image?w=240&h=240
 public override string ToString()
 {
     return($"ИД: {ID}\nНазвание:{Name}\nОписание:{Description}\nПостер: {PosterUri}\nДата выхода:{ReleaseDate.ToShortDateString()}");
 }
Esempio n. 15
0
 public override string ToString()
 {
     return($"ИД: {ID}\nНазвание:{Name}\nОписание:{Description}\nКол-во серий:{Episodes}\nПостер: {PosterUri}\nДата выхода:{ReleaseDate.ToShortDateString()}\nЖанры:{string.Join(", ", Genres)}");
 }
Esempio n. 16
0
 public override string ToString()
 {
     return(string.Format(
                "Game Title: {0};\nGenre: {1};\nPrice: {2}USD;\nRelease Date: {3};\nCompany: {4};\nPlatform: {5};\nDistribution: {6};\nLicence: {7};\nSize: {8}Gb",
                Name, Genre, Price, ReleaseDate.ToShortDateString(), CompanyName, Platform, Distribution, License, Size));
 }
 public static void UseInfoPage(this IApplicationBuilder app, string path = "/info")
 {
     app.Map(path, p => p.Run(async context => await context.Response.WriteAsync($"{ProjectName} v.{InformationalVersion} on {ReleaseDate.ToShortDateString()}").ConfigureAwait(false)));
 }
Esempio n. 18
0
 public override string ToString()
 {
     return(string.Format($"{Name} {Price:c} {ReleaseDate.ToShortDateString()}"));
 }
Esempio n. 19
0
        public override string ToString()
        {
            string desc = String.IsNullOrWhiteSpace(Beschreibung) ? "<keine Beschreibung>" : Beschreibung;

            return(String.Format("{0} - {1}: {2}", ReleaseDate.ToShortDateString(), ReleaseDate.ToShortTimeString(), desc));
        }
 public override string ToString()
 {
     return(String.Format("{0} in category {1}({7}) was directed by {2} was released on {3} with an age rating of {4} and a ticket sale price of {5} at the {6} Cinema ({8})",
                          FilmName, Category, Director, ReleaseDate.ToShortDateString(), AgeRating, TicketPrice, Cinema, SubCategory, CinemaAddress));
 }