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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (servingSizeText != null)
            {
                servingSizeText.Dispose();
                servingSizeText = null;
            }
        }
Example #3
0
        void ReleaseDesignerOutlets()
        {
            if (AnalysisLabel != null)
            {
                AnalysisLabel.Dispose();
                AnalysisLabel = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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