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(); }