Beispiel #1
0
 protected virtual void OnAnalysisControlCreated()
 {
     UpdateActionState();
     foreach (AnalysisEditorBase analysisEditor in analysisEditors)
     {
         IAnalysisControl analysisControl = analysisEditor.Control;
         if (!(((ISupportPivotGridFieldBuilder)analysisControl).FieldBuilder is PivotGridFieldBuilder))
         {
             var pivotGridFieldBuilder = new PivotGridFieldBuilder(analysisControl);
             pivotGridFieldBuilder.SetModel(Application.Model);
             ((ISupportPivotGridFieldBuilder)analysisControl).FieldBuilder = pivotGridFieldBuilder;
         }
         analysisEditor.IsDataSourceReadyChanged += analysisEditor_IsDataSourceReadyChanged;
     }
 }
Beispiel #2
0
        void AnalysisEditorOnControlCreated(object sender, EventArgs eventArgs)
        {
            var analysisEditor = ((AnalysisEditorBase)sender);

            analysisEditor.ControlCreated -= AnalysisEditorOnControlCreated;
            IAnalysisControl analysisControl = analysisEditor.Control;

            if (!(((ISupportPivotGridFieldBuilder)analysisControl).FieldBuilder is PivotGridFieldBuilder))
            {
                var pivotGridFieldBuilder = new PivotGridFieldBuilder(analysisControl);
                pivotGridFieldBuilder.SetModel(Application.Model);
                ((ISupportPivotGridFieldBuilder)analysisControl).FieldBuilder = pivotGridFieldBuilder;
            }
            analysisEditor.IsDataSourceReadyChanged += analysisEditor_IsDataSourceReadyChanged;
        }