コード例 #1
0
ファイル: Synchronizers.cs プロジェクト: landytest/eXpand
 public GridLstEditorDynamicModelSynchronizer(XafGridView gridView, IModelListViewOptionsGridView modelListView, bool overrideViewDesignMode)
     : base(gridView, modelListView)
 {
     ModelSynchronizerList.Add(new GridListEditorViewOptionsSynchronizer(gridView, modelListView.GridViewOptions, overrideViewDesignMode));
     ModelSynchronizerList.Add(new GridListEditorColumnOptionsSynchroniser(gridView, modelListView));
     ModelSynchronizerList.Add(new RepositoryItemColumnViewSynchronizer(gridView, modelListView));
 }
コード例 #2
0
ファイル: Synchronizers.cs プロジェクト: xwagner2/eXpand
        public GridListEditorDynamicModelSynchronizer(XafGridView gridView, IModelListViewOptionsGridView modelListView, bool overrideViewDesignMode)
            : base(gridView, modelListView)
        {
            var adapters = modelListView.GridViewModelAdapters.SelectMany(adapter => adapter.ModelAdapters);

            foreach (var adapter in adapters)
            {
                ModelSynchronizerList.Add(new GridListEditorViewOptionsSynchronizer(gridView, adapter, overrideViewDesignMode));
            }
            ModelSynchronizerList.Add(new GridViewListEditorDynamicModelSynchronizer(gridView, modelListView, overrideViewDesignMode));
            ModelSynchronizerList.Add(new GridListEditorColumnOptionsSynchroniser(gridView, modelListView));
            ModelSynchronizerList.Add(new RepositoryItemColumnViewSynchronizer(gridView, modelListView));
        }
コード例 #3
0
 public GridListEditorDynamicModelSynchronizer(DevExpress.XtraGrid.Views.Grid.GridView gridView, IModelListViewOptionsGridView modelListView, bool overrideViewDesignMode)
     : base(gridView, modelListView)
 {
     if (!modelListView.BandsLayout.Enable)
     {
         var adapters = modelListView.GridViewModelAdapters.Select(adapter => adapter.ModelAdapter);
         foreach (var adapter in adapters)
         {
             ModelSynchronizerList.Add(new GridListEditorViewOptionsSynchronizer(gridView, adapter, overrideViewDesignMode));
         }
     }
     ModelSynchronizerList.Add(new GridViewListEditorDynamicModelSynchronizer(gridView, modelListView, overrideViewDesignMode));
     ModelSynchronizerList.Add(new GridListEditorColumnOptionsSynchroniser(gridView, modelListView));
     ModelSynchronizerList.Add(new RepositoryItemColumnViewSynchronizer(gridView, modelListView));
 }
コード例 #4
0
 public GridViewListEditorDynamicModelSynchronizer(DevExpress.XtraGrid.Views.Grid.GridView gridView, IModelListViewOptionsGridView modelListView, bool overrideViewDesignMode)
     : base(gridView, modelListView)
 {
     ModelSynchronizerList.Add(new GridViewViewOptionsSynchronizer(gridView, modelListView, overrideViewDesignMode));
     ModelSynchronizerList.Add(new GridViewColumnOptionsSynchroniser(gridView, modelListView));
     ModelSynchronizerList.Add(new RepositoryItemColumnViewSynchronizer(gridView, modelListView));
 }
コード例 #5
0
ファイル: Synchronizers.cs プロジェクト: xwagner2/eXpand
 public GridViewViewOptionsSynchronizer(DevExpress.XtraGrid.Views.Grid.GridView gridView, IModelListViewOptionsGridView modelListView, bool overrideViewDesignMode)
     : base(gridView, modelListView.GridViewOptions, overrideViewDesignMode)
 {
 }