public CalculaJurosInput( ValorInicial valorInicial, Meses meses) { this.ValorInicial = valorInicial; this.Meses = meses; }
public override string ToString() { return("Conta " + Conta + " titular: " + Nome + ", Saldo: $ " + ValorInicial.ToString("F2", CultureInfo.InvariantCulture) ); }
public string RenderCheck() { var a = AtributosHtml.AtributosComunes($"div_{IdHtml}", IdHtml, PropiedadHtml, Tipo); var valores = a.MapearComunes(); valores["CssContenedor"] = Css.Render(enumCssFiltro.ContenedorCheck); valores["Css"] = Css.Render(enumCssFiltro.Check); valores["Etiqueta"] = Etiqueta; valores["Checked"] = ValorInicial.ToString().ToLower(); valores["Accion"] = Accion; return(PlantillasHtml.Render(PlantillasHtml.checkFlt, valores)); }
public override bool Equals(object obj) { if (obj == null || obj.GetType() != GetType()) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } var outro = obj as JurosCompostos; return (ValorInicial.Equals(outro.ValorInicial) && TaxaJuros.Equals(outro.TaxaJuros) && Meses.Equals(outro.Meses)); }
public override int GetHashCode() => ValorInicial.GetHashCode() ^ TaxaJuros.GetHashCode() ^ Meses.GetHashCode();