コード例 #1
0
        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;
            }
        }
コード例 #2
0
        private void onCustomCellEdit(PivotCustomCellEditEventArgs e)
        {
            if (e.DataField != _valueField)
            {
                return;
            }
            var ds = e.CreateDrillDownDataSource();

            if (!hasWarning(ds))
            {
                return;
            }

            e.RepositoryItem = _warningRepositoryEdit;
        }