コード例 #1
0
 protected override IDataSetProvider CreateDataSetProvider(IBusinessObjectCollection col)
 {
     _dataSetProvider = new ReadOnlyDataSetProvider(col);
     _dataSetProvider.RegisterForBusinessObjectPropertyUpdatedEvents = true;
     return _dataSetProvider;
 }
コード例 #2
0
 private void GridLoaderDelegateSetDataSource(IGridBase grid, IBusinessObjectCollection col)
 {
     if (col == null)
     {
         grid.DataSource = null;
         return;
     }
     var dataSetProvider = new ReadOnlyDataSetProvider(col);
     IUIDef uiDef = ((ClassDef)col.ClassDef).GetUIDef(grid.UiDefName);
     grid.DataSource = dataSetProvider.GetDataView(uiDef.UIGrid);
 }
コード例 #3
0
 public override IDataSetProvider CreateDataSetProvider(IBusinessObjectCollection col)
 {
     ReadOnlyDataSetProvider dataSetProvider = new ReadOnlyDataSetProvider(col);
     dataSetProvider.RegisterForBusinessObjectPropertyUpdatedEvents = false;
     return dataSetProvider;
 }
コード例 #4
0
 public void GridLoaderDelegateLoadFromDiffCol(IGridBase grid, IBusinessObjectCollection col)
 {
     var dataSetProvider = new ReadOnlyDataSetProvider(_colToLoadFrom);
     IUIDef uiDef = ((ClassDef)col.ClassDef).GetUIDef(grid.UiDefName);
     var bindingListView = dataSetProvider.GetDataView(uiDef.UIGrid);
     grid.DataSource = bindingListView;
 }