Beispiel #1
0
        private UIItem Close(string typeName)
        {
            UIItem item = Find(typeName);

            if (item != null)
            {
                item.Close();
            }
            return(item);
        }
Beispiel #2
0
        private UIItem Open(string typeName)
        {
            UIItem item = Find(typeName);

            if (item != null)
            {
                item.Open();
            }
            return(item);
        }
Beispiel #3
0
        public UIItem Open(Type type)
        {
            UIItem item = Find(type.Name);

            if (item == null)
            {
                item = Activator.CreateInstance(type) as UIItem;
                UIDict.Add(type.Name, item);
            }
            Open(type.Name);
            return(item);
        }
Beispiel #4
0
        public UIItem Close(Type type)
        {
            UIItem item = Close(type.Name);

            return(item);
        }