Esempio 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);
        }
Esempio 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);
        }