コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 /* AGREGAR DATOS AL CENTRO CULTURAL */
 public void agregarObra(ObraDeArte obra)
 {
     obras.InsertarObra(obra);
 }