Beispiel #1
0
        private static void AddCustomizedType(BaseProfile profile)
        {
            var customizedTypes = profile.GetAllCustomizedTypes();

            //初始化类型池
            foreach (var customizedType in customizedTypes)
            {
                var customizedTypeCollection = new CustomTypeCollection(customizedType.Name);
                CustomTypeManager.AddCustomizedTypeCollection(customizedType.Name,
                                                              customizedTypeCollection);

                CustomTypeManager.AddCustomizedType(customizedType.Name, customizedType);


                //加到注册表
                ResourceClassRegister.AddCustomizedType(customizedType.Name, customizedType.FullName,
                                                        profile.GetPackageName());
            }
        }