public static void StartMenu() { do { Console.Clear(); Console.WriteLine("\"Seasonal Flowers\" Management Program"); FlowerHashtable.PrintTable(); Console.WriteLine("\nPlease choose a function by its number."); Console.WriteLine("1. Edit a season"); Console.WriteLine("2. Remove a flower"); Console.WriteLine("3. Exit"); switch (Selecting()) { case '1': FlowerHashtable.ChangeFlower(); break; case '2': FlowerHashtable.RemoveFlower(); break; case '3': Program.Exit(); break; default: continue; } }while (true); }
static void Main() { FlowerHashtable.Initialize(); FlowerHashtable.PrintTable(); FlowerHashtable.Change(); FlowerHashtable.PrintTable(); Exit(); }