void ReleaseDesignerOutlets() { if (Separator != null) { Separator.Dispose(); Separator = null; } if (SubsectionTitle != null) { SubsectionTitle.Dispose(); SubsectionTitle = null; } }
void ReleaseDesignerOutlets() { if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (Separator != null) { Separator.Dispose(); Separator = 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; } }
/// <summary> /// Releases all resources used by the <see cref="MySqlInstanceMenuGroup"/> class /// </summary> /// <param name="disposing">If true this is called by Dispose(), otherwise it is called by the finalizer</param> protected virtual void Dispose(bool disposing) { if (disposing) { try { // Free managed resources if (ConfigureMenuItem != null) { ConfigureMenuItem.Dispose(); } if (InstanceMenuItem != null) { InstanceMenuItem.Dispose(); } if (SqlEditorMenuItem != null) { SqlEditorMenuItem.Dispose(); } if (Separator != null) { Separator.Dispose(); } } catch { // Sometimes when the dispose is done from a thread different than the main one a cross-thread exception is thrown which is not critical // since these menu items will be disposed later by the garbage collector. No Exception is being actually handled or logged since we do // not wat to overwhelm the log with these error messages since they do not affect the Notifier's execution. } } // Add class finalizer if unmanaged resources are added to the class // Free unmanaged resources if there are any }
void ReleaseDesignerOutlets() { if (BottomBorderLeftConstraint != null) { BottomBorderLeftConstraint.Dispose(); BottomBorderLeftConstraint = null; } if (DescriptionAndDetailsSpaceConstraint != null) { DescriptionAndDetailsSpaceConstraint.Dispose(); DescriptionAndDetailsSpaceConstraint = null; } if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (DetailsButton != null) { DetailsButton.Dispose(); DetailsButton = null; } if (DetailsLabel != null) { DetailsLabel.Dispose(); DetailsLabel = null; } if (EndTimeLabel != null) { EndTimeLabel.Dispose(); EndTimeLabel = null; } if (LocationAndDescriptionConstraint != null) { LocationAndDescriptionConstraint.Dispose(); LocationAndDescriptionConstraint = null; } if (LocationLabel != null) { LocationLabel.Dispose(); LocationLabel = null; } if (NavigateOnMapButton != null) { NavigateOnMapButton.Dispose(); NavigateOnMapButton = null; } if (Separator != null) { Separator.Dispose(); Separator = null; } if (StarButton != null) { StarButton.Dispose(); StarButton = null; } if (StartTimeLabel != null) { StartTimeLabel.Dispose(); StartTimeLabel = null; } if (ThumbHeightConstraint != null) { ThumbHeightConstraint.Dispose(); ThumbHeightConstraint = null; } if (ThumbImageView != null) { ThumbImageView.Dispose(); ThumbImageView = null; } if (ThumbLabel != null) { ThumbLabel.Dispose(); ThumbLabel = null; } if (ThumbLabelView != null) { ThumbLabelView.Dispose(); ThumbLabelView = null; } if (ThumbLeftConstraint != null) { ThumbLeftConstraint.Dispose(); ThumbLeftConstraint = null; } if (ThumbTopConstraint != null) { ThumbTopConstraint.Dispose(); ThumbTopConstraint = null; } if (ThumbWidthConstraint != null) { ThumbWidthConstraint.Dispose(); ThumbWidthConstraint = null; } if (TimeBackgroundView != null) { TimeBackgroundView.Dispose(); TimeBackgroundView = null; } if (TimeTopConstraint != null) { TimeTopConstraint.Dispose(); TimeTopConstraint = null; } if (TitleAndLocationConstraint != null) { TitleAndLocationConstraint.Dispose(); TitleAndLocationConstraint = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (TitleLeftConstraint != null) { TitleLeftConstraint.Dispose(); TitleLeftConstraint = null; } }