Пример #1
0
        void PivotGridControlOnCustomSummary(object sender, PivotGridCustomSummaryEventArgs e)
        {
            var customSummaryType = ((IModelListViewOptionsPivotGrid)View.Model).OptionsPivotGrid.General.CustomSummaryType;

            if (customSummaryType != null)
            {
                var pivotCustomSummaryEvent = _ruleCollector.CreateInstance <IPivotCustomSummaryEvent>(Frame, customSummaryType);
                pivotCustomSummaryEvent.Calculate(e);
            }
        }
Пример #2
0
 IPivotDrawCellEvent DrawCell(IModelDrawCellRule modelDrawCellRule)
 {
     return(_ruleCollector.CreateInstance <IPivotDrawCellEvent>(Frame, modelDrawCellRule.DrawCellType));
 }