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 (CalendarButton != null) { CalendarButton.Dispose(); CalendarButton = null; } if (CommunityButton != null) { CommunityButton.Dispose(); CommunityButton = null; } if (NutritionButton != null) { NutritionButton.Dispose(); NutritionButton = null; } if (ProfileButton != null) { ProfileButton.Dispose(); ProfileButton = null; } if (WorkoutsButton != null) { WorkoutsButton.Dispose(); WorkoutsButton = null; } }