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 GetCost(Waybill wb) { return(Enterprice.GetCost(wb).ToString()); }