本文整理汇总了C#中ModelInterfaceExtenders.Add方法的典型用法代码示例。如果您正苦于以下问题:C# ModelInterfaceExtenders.Add方法的具体用法?C# ModelInterfaceExtenders.Add怎么用?C# ModelInterfaceExtenders.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ModelInterfaceExtenders
的用法示例。
在下文中一共展示了ModelInterfaceExtenders.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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>();
}
示例2: ExtendModelInterfaces
public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders)
{
base.ExtendModelInterfaces(extenders);
extenders.Add<IModelColumn, IModelConditionalFormatting>();
extenders.Add<IModelListView, IModelConditionalFormatting>();
extenders.Add<IModelApplication, IModelApplicationConditionalEditorStates>();
}
示例3: 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>();
}
示例4: 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);
}
示例5: 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);
}
}
示例6: 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);
}
示例7: 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);
}
示例8: 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);
}
}
示例9: 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);
}
示例10: ExtendModelInterfaces
public void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
extenders.Add<IModelListView, IModelListViewOptionsTreeList>();
extenders.Add<IModelRootNavigationItems, IModelListViewOptionsTreeListNavigation>();
extenders.Add<IModelColumn, IModelColumnOptionsTreeListView>();
var builder = new InterfaceBuilder(extenders);
var assembly = builder.Build(CreateBuilderData(), GetPath(TreeListType().Name));
builder.ExtendInteface(typeof(IModelOptionsTreeList), TreeListType(), assembly);
builder.ExtendInteface(typeof(IModelOptionsColumnTreeListView), TreeListColumnType(), assembly);
ExtendModelInterfaces(builder,assembly);
}
示例11: ExtendInterfaces
protected override void ExtendInterfaces(ModelInterfaceExtenders extenders) {
extenders.Add<IModelListView, IModelListViewOptionsAdvBandedView>();
extenders.Add<IModelColumn, IModelColumnOptionsAdvBandedView>();
var builder = new InterfaceBuilder(extenders);
var columnViewType = typeof(AdvBandedGridView);
var interfaceBuilderDatas = GetInterfaceBuilderData(columnViewType, typeof(AdvBandedGridColumn)).ToList();
interfaceBuilderDatas.Add(GetData(typeof(GridBand), typeof(DevExpress.XtraGrid.Views.BandedGrid.GridBand)));
var assembly = builder.Build(interfaceBuilderDatas, GetPath(columnViewType.Name));
builder.ExtendInteface<IModelOptionsAdvBandedView, AdvBandedGridView>(assembly);
builder.ExtendInteface<IModelOptionsColumnAdvBandedView, AdvBandedGridColumn>(assembly);
builder.ExtendInteface<IModelGridBand, GridBand>(assembly);
}
示例12: 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);
}
示例13: ExtendModelInterfaces
public void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
extenders.Add<IModelMemberViewItem, IModelMemberViewItemRepositoryItem>();
var builder = new InterfaceBuilder(extenders);
XafTypesInfo.Instance.LoadTypes(typeof(RepositoryItem).Assembly);
var assembly = builder.Build(CreateBuilderData(), GetPath("RepositoryItem"));
XafTypesInfo.Instance.LoadTypes(assembly);
foreach (var typeInfo in RepositoryItemDescendants()) {
string name = typeInfo.Name;
var type = Type.GetType(typeof(IModelRepositoryItem).Namespace + ".IModel" + name, true);
builder.ExtendInteface(type, typeInfo.Type, assembly);
}
var calcType = builder.CalcType(typeof(AppearanceObject), assembly);
extenders.Add(calcType, typeof(IModelAppearanceFont));
}
示例14: 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);
}
示例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);
}