Ejemplo n.º 1
0
        private IGridViewAutoBindColumn <CurveDTO, T> createFor <T>(Expression <Func <CurveDTO, T> > propertyToBindTo, CurveOptionsColumns curveOptionsColumn, RepositoryItem repositoryItem = null, bool showInColumnChooser = true)
        {
            var column = _gridBinderCurves.AutoBind(propertyToBindTo)
                         .WithShowInColumnChooser(showInColumnChooser)
                         .WithOnValueUpdated((curveDTO, value) => notifyCurvePropertyChange(curveDTO));

            if (repositoryItem != null)
            {
                column.WithRepository(curve => repositoryItem);
            }

            column.XtraColumn.Tag = curveOptionsColumn.ToString();
            return(column);
        }
 public GridColumnSettings ColumnSettingsFor(CurveOptionsColumns curveOptionsColumn) => _curveSettingsPresenter.ColumnSettings(curveOptionsColumn.ToString());