static void Main(string[] args) { do { Print.Menu(); var option = Decision.CheckingIfTheUserEnteredANumber(); switch (option) { case 1: Print.List(); break; case 2: Find.ANameByAnOrderNumber(); break; case 3: Find.AnOrderNumberByAName(); break; case 4: Add.NewSong(); break; case 5: Remove.ASongByOrderNumber(); break; case 6: Remove.ASongByName(); break; case 7: DataStore.PlayList.Clear(); break; case 8: Edit.ASongName(); break; case 9: Exchange.Positions(); break; case 0: Environment.Exit(0); break; case 10: Shuffle.Songs(); break; default: Console.WriteLine("Niste upisali dobar broj"); break; } Console.WriteLine(); Console.WriteLine(); }while (true); }
static void Main(string[] args) { var PlayList = new Dictionary <int, string>() { { 1, "Iron Maiden - The Wicker Man" }, { 2, "Iron Maiden - Dance of the Dead" }, { 3, "AC/DC - TNT" }, { 4, "Billy Idol - Rebel Yell" }, { 5, "Billy Idol - White Wedding" }, { 6, "AC/DC - Thunderstruck" }, { 7, "Iron Maiden - The Trooper" }, { 8, "Iron Maiden - Aces High" }, { 9, "Whitesnake - Here I go again" }, { 10, "Aerosmith - Dream On" }, { 11, "Aerosmith - Janie's got a gun" } }; do { Print.Menu(); var option = int.Parse(Console.ReadLine()); Random rnd = new Random(); switch (option) { case 1: Print.List(); break; case 2: Find.ANameByAnOrderNumber(); break; case 3: Find.AnOrderNumberByAName(); break; case 4: EnteringANewSong(PlayList); break; case 5: RemovingSongByOrderNumber(PlayList); break; case 6: RemovingSongByName(PlayList); break; case 7: PlayList.Clear(); break; case 8: EditingSongName(PlayList); break; case 9: ChangingOrderNumberForASong(PlayList); break; case 0: Environment.Exit(0); break; case 10: Shuffle(PlayList); break; default: Console.WriteLine("Niste upisali dobar broj"); break; } Console.WriteLine(); Console.WriteLine(); }while (true); }