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); } }
IPivotDrawCellEvent DrawCell(IModelDrawCellRule modelDrawCellRule) { return(_ruleCollector.CreateInstance <IPivotDrawCellEvent>(Frame, modelDrawCellRule.DrawCellType)); }