Ejemplo n.º 1
0
        public sealed override void Dispose()
        {
            if (PivotClient1 != null)
            {
                PivotClient1.Loaded -= PivotClient1_Loaded;
                PivotClient1.Dispose();
            }
            PivotClient1 = null;

            if (olapDataManager != null)
            {
                olapDataManager.OlapDataChanged           -= OlapDataManager_OlapDataChanged;
                olapDataManager.GetCubeSchema             -= OlapDataManager_GetCubeSchema;
                olapDataManager.GetCubeInfoCollection     -= OlapDataManager_GetCubeInfoCollection;
                olapDataManager.GetChildMembers           -= OlapDataManager_GetChildMembers;
                olapDataManager.GetChildrenByMDX          -= OlapDataManager_GetChildrenByMDX;
                olapDataManager.GetOlapDataWithTotalCount -= OlapDataManager_GetOlapDataWithTotalCount;
                olapDataManager.GetLevelMembersUsingMdx   -= OlapDataManager_GetLevelMembersUsingMdx;
                olapDataManager.Dispose();
            }
            olapDataManager = null;

            clientChannel = null;

            base.Dispose();
        }
Ejemplo n.º 2
0
 private void Dispose(bool disposing)
 {
     if (disposing && olapDataManager != null)
     {
         olapDataManager.Dispose();
     }
 }
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public sealed override void Dispose()
 {
     if (this.PivotChart != null)
     {
         PivotChart.Loaded -= PivotChart_Loaded;
         PivotChart.Dispose();
     }
     this.PivotChart = null;
     if (olapDataManager != null)
     {
         olapDataManager.OlapDataChanged       -= OlapDataManager_OlapDataChanged;
         olapDataManager.GetCubeSchema         -= OlapDataManager_GetCubeSchema;
         olapDataManager.GetCubeInfoCollection -= OlapDataManager_GetCubeInfoCollection;
         olapDataManager.Dispose();
     }
     olapDataManager = null;
     if (this.cmb_Orientation != null)
     {
         this.cmb_Orientation.SelectionChanged -= cmb_Orientation_SelectionChanged;
     }
     this.cmb_Orientation  = null;
     this.cmb_TextOverflow = null;
     if (this.txt_ColumnCount != null)
     {
         this.txt_ColumnCount.KeyDown -= this.Txt_Count_OnKeyDown;
     }
     this.txt_ColumnCount = null;
     if (this.txt_RowCount != null)
     {
         this.txt_RowCount.KeyDown -= this.Txt_Count_OnKeyDown;
     }
     this.clientChannel = null;
 }
Ejemplo n.º 4
0
 private void Dispose(bool isDisposing)
 {
     if (isDisposing && dataManager != null)
     {
         dataManager.Dispose();
     }
 }
Ejemplo n.º 5
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (chartDataManager1 != null)
         {
             chartDataManager1.Dispose();
         }
         if (chartDataManager2 != null)
         {
             chartDataManager2.Dispose();
         }
         if (chartDataManager3 != null)
         {
             chartDataManager3.Dispose();
         }
         if (chartDataManager4 != null)
         {
             chartDataManager4.Dispose();
         }
         if (gaugeDataManager != null)
         {
             gaugeDataManager.Dispose();
         }
         if (adomdProvider != null)
         {
             adomdProvider.Dispose();
         }
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Method is used to freeing the memory with clearing instances, events and objects.
 /// </summary>
 public sealed override void Dispose()
 {
     base.Dispose();
     if (pivotGrid != null)
     {
         pivotGrid.Dispose();
     }
     pivotGrid = null;
     if (olapDataManager != null)
     {
         olapDataManager.OlapDataChanged -= OlapDataManager_OlapDataChanged;
         olapDataManager.OlapDataChanged -= OlapDataManager_OlapDataChanged;
         olapDataManager.GetCubeSchema   -= OlapDataManager_GetCubeSchema;
         olapDataManager.Dispose();
     }
     olapDataManager = null;
     if (cmbProduct != null)
     {
         cmbProduct.SelectionChanged -= cmbProduct_SelectionChanged;
     }
     cmbProduct = null;
     if (cmbReport != null)
     {
         cmbReport.SelectionChanged -= cmbReport_SelectionChanged;
     }
     cmbReport = null;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Method is used to freeing the memory with clearing instances, events and objects.
 /// </summary>
 public sealed override void Dispose()
 {
     base.Dispose();
     if (olapDataManager != null)
     {
         olapDataManager.OlapDataChanged       -= OlapDataManager_OlapDataChanged;
         olapDataManager.GetCubeSchema         -= OlapDataManager_GetCubeSchema;
         olapDataManager.GetCubeInfoCollection -= OlapDataManager_GetCubeInfoCollection;
         olapDataManager.Dispose();
     }
     if (chkEnableColumnHeaderHyperlink != null)
     {
         chkEnableColumnHeaderHyperlink.Checked -= chkEnableColumnHeaderHyperlink_Checked;
     }
     chkEnableColumnHeaderHyperlink = null;
     if (chkEnableRowHeaderHyperlink != null)
     {
         chkEnableRowHeaderHyperlink.Checked -= chkEnableRowHeaderHyperlink_Checked;
     }
     chkEnableRowHeaderHyperlink = null;
     if (chkEnableSummaryColumnHeaderHyperlink != null)
     {
         chkEnableSummaryColumnHeaderHyperlink.Checked -= chkEnableSummaryColumnHeaderHyperlink_Checked;
     }
     chkEnableSummaryColumnHeaderHyperlink = null;
     if (chkEnableSummaryRowHeaderHyperlink != null)
     {
         chkEnableSummaryRowHeaderHyperlink.Checked -= chkEnableSummaryRowHeaderHyperlink_Checked;
     }
     chkEnableSummaryRowHeaderHyperlink = null;
     if (chkEnableValueCellsHyperlink != null)
     {
         chkEnableValueCellsHyperlink.Checked -= chkEnableValueCellsHyperlink_Checked;
     }
     chkEnableValueCellsHyperlink = null;
     if (pivotGrid != null)
     {
         pivotGrid.ValueCellStyle.IsHyperlinkCell     = false;
         pivotGrid.RowHeaderStyle.IsHyperlinkCell     = false;
         pivotGrid.ColumnHeaderStyle.IsHyperlinkCell  = false;
         pivotGrid.SummaryColumnStyle.IsHyperlinkCell = false;
         pivotGrid.SummaryRowStyle.IsHyperlinkCell    = false;
         pivotGrid.Dispose();
     }
     pivotGrid = null;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Method is used to freeing the memory with clearing instances, events and objects.
 /// </summary>
 public sealed override void Dispose()
 {
     base.Dispose();
     if (pivotGrid != null)
     {
         pivotGrid.Dispose();
     }
     pivotGrid = null;
     if (olapDataManager != null)
     {
         olapDataManager.OlapDataChanged       -= OlapDataManager_OlapDataChanged;
         olapDataManager.GetCubeSchema         -= OlapDataManager_GetCubeSchema;
         olapDataManager.GetCubeInfoCollection -= OlapDataManager_GetCubeInfoCollection;
         olapDataManager.Dispose();
     }
     olapDataManager = null;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Method is used to freeing the memory with clearing instances, events and objects.
 /// </summary>
 /// <param name="isDisposing">The boolean value</param>
 private void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         if (this.olapDataManager != null)
         {
             olapDataManager.OlapDataChanged           -= OlapDataManager_OlapDataChanged;
             olapDataManager.GetCubeSchema             -= OlapDataManager_GetCubeSchema;
             olapDataManager.GetCubeInfoCollection     -= OlapDataManager_GetCubeInfoCollection;
             olapDataManager.GetChildMembers           -= OlapDataManager_GetChildMembers;
             olapDataManager.GetChildrenByMDX          -= OlapDataManager_GetChildrenByMDX;
             olapDataManager.GetOlapDataWithTotalCount -= OlapDataManager_GetOlapDataWithTotalCount;
             olapDataManager.GetLevelMembersUsingMdx   -= OlapDataManager_GetLevelMembersUsingMDX;
             olapDataManager.GetExecuteMemberCount     -= OlapDataManager_GetExecuteMemberCount;
             olapDataManager.Dispose();
             OlapDataManager = null;
         }
         ProductSalesData  = null;
         BusinessSalesData = null;
     }
 }
Ejemplo n.º 10
0
 public sealed override void Dispose()
 {
     if (pivotGrid != null)
     {
         this.pivotGrid.Loaded -= PivotGrid_Loaded;
         this.pivotGrid.Dispose();
     }
     pivotGrid = null;
     if (olapDataManager != null)
     {
         olapDataManager.OlapDataChanged           -= OlapDataManager_OlapDataChanged;
         olapDataManager.GetCubeSchema             -= OlapDataManager_GetCubeSchema;
         olapDataManager.GetCubeInfoCollection     -= OlapDataManager_GetCubeInfoCollection;
         olapDataManager.GetChildMembers           -= OlapDataManager_GetChildMembers;
         olapDataManager.GetChildrenByMDX          -= OlapDataManager_GetChildrenByMDX;
         olapDataManager.GetOlapDataWithTotalCount -= OlapDataManager_GetOlapDataWithTotalCount;
         olapDataManager.GetLevelMembersUsingMdx   -= OlapDataManager_GetLevelMembersUsingMdx;
         olapDataManager.Dispose();
     }
     olapDataManager = null;
     base.Dispose();
 }
Ejemplo n.º 11
0
        public sealed override void Dispose()
        {
            if (pivotClient1 != null)
            {
                pivotClient1.Dispose();
            }
            pivotClient1 = null;

            if (pivotClient != null)
            {
                pivotClient.Dispose();
            }
            pivotClient = null;

            clientToolbarBinding            = null;
            gridToolbarBinding              = null;
            chartToolbarBinding             = null;
            showTogglePivotButtonBinding    = null;
            showMDXButtonBinding            = null;
            showExpanderButtonBinding       = null;
            showReportListBinding           = null;
            showReportMenuBinding           = null;
            showCubeDimensionBrowserBinding = null;
            showSearchBoxBinding            = null;
            showSlicerAxisBinding           = null;
            showColumnAxisBinding           = null;
            showRowAxisBinding              = null;
            showValueAxisBinding            = null;
            displayModeBinding              = null;

            if (rdBtn_Olap != null)
            {
                this.rdBtn_Olap.Click -= OlapDataSource_Click;
            }
            rdBtn_Olap = null;
            if (rdBtn_Relational != null)
            {
                this.rdBtn_Relational.Click -= RelationalDataSource_Click;
            }
            rdBtn_Relational = null;

            if (viewModel != null)
            {
                viewModel.Dispose();
            }
            viewModel = null;

            if (olapDataManager != null)
            {
                olapDataManager.OlapDataChanged           -= OlapDataManager_OlapDataChanged;
                olapDataManager.GetCubeSchema             -= OlapDataManager_GetCubeSchema;
                olapDataManager.GetCubeInfoCollection     -= OlapDataManager_GetCubeInfoCollection;
                olapDataManager.GetChildMembers           -= OlapDataManager_GetChildMembers;
                olapDataManager.GetChildrenByMDX          -= OlapDataManager_GetChildrenByMDX;
                olapDataManager.GetOlapDataWithTotalCount -= OlapDataManager_GetOlapDataWithTotalCount;
                olapDataManager.GetLevelMembersUsingMdx   -= OlapDataManager_GetLevelMembersUsingMdx;
                olapDataManager.Dispose();
            }
            olapDataManager = null;

            clientChannel = null;

            base.Dispose();
        }