public static void Main(string[] args) { string filepath = @"D:\Documents\Visual Studio 2015\Projects\Lab15\Lab15\countries.txt"; CountriesApp option = new CountriesApp(filepath); while (true) { option.Menu(); } }
static void Main(string[] args) { string FileName = "../../Countries.txt"; CountriesApp MyCountriesApp = new CountriesApp(); List <string> CountryList = new List <string>(); CountriesTextFile.ReaderLineByLine(FileName, CountryList); Console.WriteLine("Welcome to the Countries of the World app!"); while (MyCountriesApp.CompleteUserChoice(MyCountriesApp.GetUserChoice(), FileName, CountryList) != 0) { MyCountriesApp.CompleteUserChoice(MyCountriesApp.GetUserChoice(), FileName, CountryList); Console.WriteLine(); } Console.WriteLine("Thanks for using the Countries of the World app! Goodbye! (Press enter to exit...)"); Console.Read(); }