}//// Metoden som anropar PrintClothesList som i sin tur Visar listans innehåll private void RemoveFromList() { var newClothes = Clothes.GetClothes(); Console.Clear(); PrintClothesList(); int index = InputController.IndexController(newClothes.Count); Clothes.Remove(index); }//Tar bort en rad från listan genom att anropa remove funktionen
} // metod för att ta emot inputs för list raden och returnera det public void PrintClothesList() { int index = 0; Console.WriteLine("************************"); Console.WriteLine("******* Clothes ********"); Console.WriteLine("************************\n"); var newClothes = Clothes.GetClothes(); foreach (var item in newClothes) { index++; Console.WriteLine(index + ". " + item.GetInformation()); } } //Visar listans innehåll