Esempio n. 1
0
        /// <summary>
        /// 获取名称列表
        /// </summary>
        public XCIList <string> GetNameList()
        {
            XCIList <string> nameList = new XCIList <string>();

            foreach (var item in DictionaryData)
            {
                nameList.AddOrUpdate(item.Code);
            }
            return(nameList);
        }
Esempio n. 2
0
        private static void InitInterface(Assembly assembly)
        {
            Type         managerType = typeof(IManager);
            IList <Type> types       = AssemblyHelper.GetInterfaceType(assembly, managerType);

            foreach (Type t in types)
            {
                InterfaceEntity entity = BuildInterfaceEntity(t);
                ComponentList.AddOrUpdate(entity);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// 获取分类列表
        /// </summary>
        public XCIList <string> GetCategory()
        {
            XCIList <string> categoryList = new XCIList <string>();

            foreach (var item in ParamData)
            {
                if (!string.IsNullOrEmpty(item.Category))
                {
                    categoryList.AddOrUpdate(item.Category);
                }
            }
            return(categoryList);
        }
Esempio n. 4
0
        /// <summary>
        /// 获取分类列表
        /// </summary>
        public XCIList <string> GetCategory()
        {
            XCIList <string> categoryList = new XCIList <string>();
            var dataList = ParamData.Where(p => p.UserID == UserID);

            foreach (var item in dataList)
            {
                if (!string.IsNullOrEmpty(item.Category))
                {
                    categoryList.AddOrUpdate(item.Category);
                }
            }
            return(categoryList);
        }
Esempio n. 5
0
        public static XCIList <Type> GetTypeList(Type baseClassType)
        {
            XCIList <Type>    typeList = new XCIList <Type>();
            Action <Assembly> action   = p =>
            {
                IList <Type> types = AssemblyHelper.GetTypeByBase(p, baseClassType);
                foreach (Type t in types)
                {
                    typeList.AddOrUpdate(t);
                }
            };

            LoadData(action);
            return(typeList);
        }
Esempio n. 6
0
 public static void AddOrUpdate(ConfigEntity entity)
 {
     ConfigData.AddOrUpdate(entity);
 }