当前位置: 首页>>代码示例>>C#>>正文


C# ModelInterfaceExtenders类代码示例

本文整理汇总了C#中ModelInterfaceExtenders的典型用法代码示例。如果您正苦于以下问题:C# ModelInterfaceExtenders类的具体用法?C# ModelInterfaceExtenders怎么用?C# ModelInterfaceExtenders使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ModelInterfaceExtenders类属于命名空间,在下文中一共展示了ModelInterfaceExtenders类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ExtendModelInterfaces

 public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders)
 {
     base.ExtendModelInterfaces(extenders);
     extenders.Add<IModelColumn, IModelConditionalFormatting>();
     extenders.Add<IModelListView, IModelConditionalFormatting>();
     extenders.Add<IModelApplication, IModelApplicationConditionalEditorStates>();
 }
开发者ID:kamchung322,项目名称:Namwah,代码行数:7,代码来源:Registration.cs

示例2: ExtendModelInterfaces

 public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
     base.ExtendModelInterfaces(extenders);
     extenders.Add<IModelOptions, IModelOptionsQueryStringParameter>();
     extenders.Add<IModelMemberViewItem, IModelMemberViewItemRelativeDate>();
     extenders.Add<IModelListView, IModelListViewTwoDimensionListEditor>();
     extenders.Add<IModelColumnSummaryItem, IModelColumnSummaryItemTwoDimensionListEditor>();
 }
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:XpandSystemAspNetModule.cs

示例3: ExtendModelInterfaces

 public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
     base.ExtendModelInterfaces(extenders);
     extenders.Add<IModelRootNavigationItems, IModelRootNavigationItemsAutoSelectedGroupItem>();
     extenders.Add<IModelMemberViewItem, IModelMemberViewItemFastSearch>();
     extenders.Add<IModelMemberViewItem, IModelMemberViewItemRichEdit>();
     extenders.Add<IModelMemberViewItem, IModelMemberViewItemDuration>();
 }
开发者ID:derjabkin,项目名称:eXpand,代码行数:7,代码来源:XpandSystemWindowsFormsModule.cs

示例4: ExtendModelInterfaces

        public void ExtendModelInterfaces(ModelInterfaceExtenders extenders){
            extenders.Add<IModelDetailView, IModelDetailViewXafLayoutControl>();
            var builder = new InterfaceBuilder(extenders);
            var assembly = builder.Build(CreateBuilderData(), GetPath(typeof(XafLayoutControl).Name));

            builder.ExtendInteface<IModelXafLayoutControl, XafLayoutControl>(assembly);

        }
开发者ID:kamchung322,项目名称:eXpand,代码行数:8,代码来源:XafLayoutControlModelAdapterController.cs

示例5: ExtendModelInterfaces

 public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders)
 {
     base.ExtendModelInterfaces(extenders);
     extenders.Add<IModelColumn, IModelColumnAurumFilter>();
     extenders.Add<IModelClass, IModelClassNestedListActions>();
     extenders.Add<IModelPropertyEditor, IModelPropertyEditorDisplayItem>();
     extenders.Add<IModelListView, IModelNestedListViewActions>();
     extenders.Add<IModelViews, IModelDefaultShowDetailView>();
     extenders.Add<IModelListView, IModelShowDetailView>();
 }
开发者ID:LSTANCZYK,项目名称:devexpress_xaf_aurum,代码行数:10,代码来源:Module.cs

示例6: ExtendModelInterfaces

        public void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
            extenders.Add<IModelPivotSettings, IModelPivotSettingsEx>();
            extenders.Add<IModelListView, IModelListViewOptionsPivotGrid>();

            var builder = new InterfaceBuilder(extenders);
            var interfaceBuilderDatas = CreateBuilderData();
            var assembly = builder.Build(interfaceBuilderDatas, GetPath(typeof(PivotGridControl).Name));

            builder.ExtendInteface<IModelOptionsPivotGrid, PivotGridControl>(assembly);
        }
开发者ID:aries544,项目名称:eXpand,代码行数:10,代码来源:PivotGridModelAdapterController.cs

示例7: GetModelInterfaceExtenders

 private static ModelInterfaceExtenders GetModelInterfaceExtenders(Type moduleType) {            
     var modelInterfaceExtenders = new ModelInterfaceExtenders();
     if (typeof(XpandModuleBase).IsAssignableFrom(moduleType)){
         XpandModuleBase.CallMonitor.Clear();
         ((XpandModuleBase)moduleType.CreateInstance()).ExtendModelInterfaces(modelInterfaceExtenders);
     }
     if (typeof(IModelExtender).IsAssignableFrom(moduleType))
         ((IModelExtender) moduleType.CreateInstance()).ExtendModelInterfaces(modelInterfaceExtenders);
     return modelInterfaceExtenders;
 }
开发者ID:aries544,项目名称:eXpand,代码行数:10,代码来源:ParsingExtensions.cs

示例8: foreach

        void IModelExtender.ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
            foreach (var modelExtenderPair in GetModelExtenderPairs()) {
                extenders.Add(modelExtenderPair.InterfaceType, modelExtenderPair.ExtenderType);
            }

            IEnumerable<DynamicModelType> dynamicModelTypes = GetDynamicModelTypes().ToList();
            foreach (var dynamicModelType in dynamicModelTypes) {
                extenders.Add(dynamicModelType.BaseTypeCore, dynamicModelType);
            }
        }
开发者ID:kevin3274,项目名称:eXpand,代码行数:10,代码来源:OptionsController.cs

示例9: ExtendModelInterfaces

        public void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
            var interfaceBuilder = new InterfaceBuilder(extenders);
            var componentType = typeof(DXMenuItem);
            var builderData = new InterfaceBuilderData(componentType) {
                Act = info => info.Name != "Id" && info.DXFilter()
            };
            var assembly = interfaceBuilder.Build(new List<InterfaceBuilderData> { builderData },GetPath(componentType.Name));

            interfaceBuilder.ExtendInteface<IModelSchedulerPopupMenuItem, DXMenuItem>(assembly);
        }
开发者ID:derjabkin,项目名称:eXpand,代码行数:10,代码来源:SchedulerModelAdapterController.cs

示例10: ExtendModelInterfaces

        public void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
            extenders.Add<IModelListView, IModelListViewOptionsGridView>();
            extenders.Add<IModelColumn, IModelColumnOptionsGridView>();

            var builder = new InterfaceBuilder(extenders);

            var assembly = builder.Build(CreateBuilderData(), GetPath(typeof(ASPxGridView).Name));

            builder.ExtendInteface<IModelOptionsGridView, ASPxGridView>(assembly);
            builder.ExtendInteface<IModelOptionsColumnGridView, GridViewColumn>(assembly);
        }
开发者ID:dimajanzen,项目名称:eXpand,代码行数:11,代码来源:GridViewModelAdapterController.cs

示例11: ExtendInterfaces

        protected override void ExtendInterfaces(ModelInterfaceExtenders extenders) {
            extenders.Add<IModelListView, IModelListViewOptionsGridView>();
            extenders.Add<IModelColumn, IModelColumnOptionsGridView>();

            var builder = new InterfaceBuilder(extenders);
            var assembly = BuildAssembly(builder, typeof(XafGridView), typeof(XafGridColumn));


            builder.ExtendInteface<IModelOptionsGridView, XafGridView>(assembly);
            builder.ExtendInteface<IModelOptionsColumnGridView, XafGridColumn>(assembly);
        }
开发者ID:noxe,项目名称:eXpand,代码行数:11,代码来源:GridViewModelAdapterController.cs

示例12: foreach

 void IModelExtender.ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
     foreach (var modelExtenderPair in GetModelExtenderPairs()) {
         extenders.Add(modelExtenderPair.InterfaceType, modelExtenderPair.ExtenderType);
     }
     var modelApplicationCreatorProperties = XpandModuleBase.ModelApplicationCreatorProperties;
     ModelAutoGeneratedTypeCollector collector = modelApplicationCreatorProperties.AutoGeneratedTypeCollector;
     IEnumerable<DynamicModelType> dynamicModelTypes = GetDynamicModelTypes().ToList();
     foreach (var dynamicModelType in dynamicModelTypes) {
         collector.RegisterType(new ModelAutoGeneratedType(collector, dynamicModelType));
         extenders.Add(dynamicModelType.BaseType, dynamicModelType);
     }
 }
开发者ID:gvilas,项目名称:eXpand,代码行数:12,代码来源:OptionsController.cs

示例13: ExtendModelInterfaces

        public void ExtendModelInterfaces(ModelInterfaceExtenders extenders){
            extenders.Add<IModelSchedulerPopupMenuItem, IModelSchedulerPopupMenuItemEx>();
            var interfaceBuilder = new InterfaceBuilder(extenders);
            var builderData = new InterfaceBuilderData(typeof(SchedulerMenuItem)){Act = info =>{
                if (info.Name == "Id")
                    return false;
                return info.DXFilter();
            }
            };
            var assembly = interfaceBuilder.Build(new List<InterfaceBuilderData> { builderData }, GetPath(typeof(SchedulerMenuItem).Name));

            interfaceBuilder.ExtendInteface<IModelSchedulerPopupMenuItem,SchedulerMenuItem>(assembly);
        }
开发者ID:derjabkin,项目名称:eXpand,代码行数:13,代码来源:SchedulerModelAdapterController.cs

示例14: ExtendInterfaces

        protected override void ExtendInterfaces(ModelInterfaceExtenders extenders) {

            extenders.Add<IModelListView, IModelListViewOptionsLayoutView>();
            extenders.Add<IModelColumn, IModelColumnOptionsLayoutView>();

            var builder = new InterfaceBuilder(extenders);
            var assembly = BuildAssembly(builder, typeof(XafLayoutView), typeof(LayoutViewColumn));


            builder.ExtendInteface<IModelOptionsLayoutView, XafLayoutView>(assembly);
            builder.ExtendInteface<IModelOptionsColumnLayoutView, LayoutViewColumn>(assembly);

            ExtendWithFont(extenders, builder, assembly);
        }
开发者ID:derjabkin,项目名称:eXpand,代码行数:14,代码来源:LayoutViewModelAdapterController.cs

示例15: ExtendModelInterfaces

        public void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
            extenders.Add<IModelListView, IModelListViewOptionsScheduler>();

            var builder = new InterfaceBuilder(extenders);
            var interfaceBuilderDatas = CreateBuilderData();
            var assembly = builder.Build(interfaceBuilderDatas, GetPath(typeof(SchedulerControl).Name));

            builder.ExtendInteface<IModelOptionsSchedulerEx, SchedulerControl>(assembly);
            builder.ExtendInteface<IModelSchedulerPopupMenu, SchedulerPopupMenu>(assembly);
            builder.ExtendInteface<IModelAppoitmentLabel, AppointmentLabel>(assembly);
            builder.ExtendInteface<AppointmentStorage, IAppoitmentStorageLabels>(assembly);
            builder.ExtendInteface<IModelAppoitmentStatus, AppointmentStatus>(assembly);
            builder.ExtendInteface<AppointmentStorage, IAppoitmentStorageStatuses>(assembly);
        }
开发者ID:paulute,项目名称:eXpand,代码行数:14,代码来源:SchedulerModelAdapterController.cs


注:本文中的ModelInterfaceExtenders类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。