private void onCustomCellEdit(PivotCustomCellEditEventArgs e) { if (e.DataField != _valueField) { return; } var ds = e.CreateDrillDownDataSource(); var parameterName = ds.StringValue(_parameterField); var compoundName = ds.StringValue(_compoundField); if (_presenter.ShouldCalculateBioAvailability(compoundName, parameterName)) { e.RepositoryItem = _calculateBioAvailabilityRepository; } else if (_presenter.ShouldCalculateDDIRatio(compoundName, parameterName)) { e.RepositoryItem = _calculateDDIRatioRepository; } else if (hasWarning(ds)) { e.RepositoryItem = _warningRepositoryEdit; } }
private void onCustomCellEdit(PivotCustomCellEditEventArgs e) { if (e.DataField != _valueField) { return; } var ds = e.CreateDrillDownDataSource(); if (!hasWarning(ds)) { return; } e.RepositoryItem = _warningRepositoryEdit; }