public override void WritePartsList(List <string> list) { list.Add(Tarifa.ToString() + " - " + Numero); foreach (Telefono assembly in elements) { assembly.WritePartsList(list); } }
public override string ToString() { return($"Vencimento: {Data.ToString("dd/MM/yyyy")}" + Environment.NewLine + $"Valor do serviço: R$ {ValorDoServico.ToString("F2", CultureInfo.InvariantCulture)}" + Environment.NewLine + $"Tarifa: R$ {Tarifa.ToString("F2", CultureInfo.InvariantCulture)}" + Environment.NewLine + $"Juros: R$ {Juros.ToString("F2", CultureInfo.InvariantCulture)}" + Environment.NewLine + $"Total: R$ {Total.ToString("F2", CultureInfo.InvariantCulture)}"); }