private cResumenConcepto Buscar(object obj) { foreach (cResumenConcepto aux in _datos) { if (aux.Concepto.ToString() == obj.ToString()) { return(aux); } } cResumenConcepto nuevo = new cResumenConcepto(obj); _datos.Add(nuevo); return(nuevo); }
public void AgregarDato(object Concepto, DateTime fecha, decimal cant) { cResumenConcepto obj = Buscar(Concepto); obj.Sumar(fecha, cant, _porDia); }