Esempio n. 1
0
        public override void WritePartsList(List <string> list)
        {
            list.Add(Tarifa.ToString() + " - " + Numero);

            foreach (Telefono assembly in elements)
            {
                assembly.WritePartsList(list);
            }
        }
Esempio n. 2
0
 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)}");
 }