public sealed override void Dispose()
        {
            ShowGrandTotal.Click   -= ShowGrandTotal_Click;
            ShowLevelTypeAll.Click -= ShowLevelTypeAll_Click;
            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;
            allowMultiFunctionalSortFilterBinding = null;
            showValueCellToolTipBinding           = null;
            showHyperlinkBinding = null;
            freezeHeadersBinding = null;
            showLegendBinding    = null;

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

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

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

            base.Dispose();
        }
Пример #2
0
        public override void Dispose()
        {
            if (Application.Current != null)
            {
                Application.Current.Suspending -= Current_Suspending;
            }

            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 (this.PivotClient1 != null)
            {
                this.PivotClient1.Dispose();
            }
            this.PivotClient1 = null;

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

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

            base.Dispose();
        }
Пример #3
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();
        }