void ReleaseDesignerOutlets()
        {
            if (BarChartCardView != null)
            {
                BarChartCardView.Dispose();
                BarChartCardView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (ColorsLegendContainerView != null)
            {
                ColorsLegendContainerView.Dispose();
                ColorsLegendContainerView = null;
            }
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (BarChartCardView != null)
            {
                BarChartCardView.Dispose();
                BarChartCardView = null;
            }

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

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

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

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

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

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

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

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

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

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

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