Ejemplo n.º 1
0
        public object Create(string type)
        {
            Events exhibition;

            if (type == temporary)
            {
                exhibition = new Temporary();
            }
            else if (type == permanent)
            {
                exhibition = new Permanent();
            }
            else
            {
                return(null);
            }
            return(exhibition);
        }
Ejemplo n.º 2
0
        public object ImportData(string type, Dictionary <string, string> dictionary)
        {
            Events exhibition;

            if (type == temporary)
            {
                exhibition = new Temporary(dictionary);
            }
            else if (type == permanent)
            {
                exhibition = new Permanent(dictionary);
            }
            else
            {
                return(null);
            }
            return(exhibition);
        }