public ObrasExposicion TodosLosCuadrosPrestados() { ObrasExposicion exposicion = new ObrasExposicion(); foreach (ObraDeArte obra in this.exposicion) { if (obra != null && obra is CuadroPrestado) { exposicion.InsertarObra(obra); } } Console.Clear(); return(exposicion); }
public ObrasExposicion ObrasArtistas(String nombreDelArtista) { ObrasExposicion exposicion = new ObrasExposicion(); foreach (ObraDeArte obra in this.exposicion) { if (obra != null && obra.GetNombreArtista() == nombreDelArtista) { exposicion.InsertarObra(obra); } } Console.Clear(); return(exposicion); }
/* AGREGAR DATOS AL CENTRO CULTURAL */ public void agregarObra(ObraDeArte obra) { obras.InsertarObra(obra); }