private void showProductPrices(ServiceList sl) { output.Write("\tPrices: "); for (int i = 0; i < sl.GetServicesCount(); i++) { output.Write(sl.Services.ElementAt(i).price + " "); output.WriteLine(sl.Services.ElementAt(i).name); } }
private void showCatalog(ServiceList sl) { output.WriteLine(" ==== ServiceList ==== "); for (int i = 0; i < sl.GetServicesCount(); i++) { output.WriteLine(); output.WriteLine("service \"" + sl.Services.ElementAt(i).name + "\":"); output.WriteLine("\tDescription: " + sl.Services.ElementAt(i).description); output.WriteLine("\tImage URL: " + sl.Services.ElementAt(i).imageURL); } output.WriteLine(); output.WriteLine(" ==== End ServiceList ==== "); showProductPrices(sl); }