public void GetCostOfAll() { for (int i = 0; i < factory.waybillList.Count; i++) { Console.WriteLine(factory.waybillList[i].ToString() + "\nЗатраты: " + factory.GetCost(factory.waybillList[i])); } Console.WriteLine("Итого: " + factory.GetFullCost()); }
public string GetFullCost() { return(Enterprice.GetFullCost().ToString()); }