Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (OnFavoritesBtn != null)
            {
                OnFavoritesBtn.Dispose();
                OnFavoritesBtn = null;
            }

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

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

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

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

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

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

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

            if (OnSaucesBtn != null)
            {
                OnSaucesBtn.Dispose();
                OnSaucesBtn = null;
            }
        }
Exemple #2
0
        void ReleaseDesignerOutlets()
        {
            if (TitleImageView != null)
            {
                TitleImageView.Dispose();
                TitleImageView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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