void ReleaseDesignerOutlets() { if (CalendarButton != null) { CalendarButton.Dispose(); CalendarButton = null; } if (FavoritesButton != null) { FavoritesButton.Dispose(); FavoritesButton = null; } if (NavBar != null) { NavBar.Dispose(); NavBar = null; } if (NutritionButton != null) { NutritionButton.Dispose(); NutritionButton = null; } if (ProfileButton != null) { ProfileButton.Dispose(); ProfileButton = null; } if (WorkoutsButton != null) { WorkoutsButton.Dispose(); WorkoutsButton = null; } }
void ReleaseDesignerOutlets() { if (ContentView != null) { ContentView.Dispose(); ContentView = null; } if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (FavoritesButton != null) { FavoritesButton.Dispose(); FavoritesButton = null; } if (Separator != null) { Separator.Dispose(); Separator = null; } if (SortByLabel != null) { SortByLabel.Dispose(); SortByLabel = null; } if (SortBySegments != null) { SortBySegments.Dispose(); SortBySegments = null; } }