void ReleaseDesignerOutlets() { if (AnimatedImageView != null) { AnimatedImageView.Dispose(); AnimatedImageView = null; } if (LivePhotoView != null) { LivePhotoView.Dispose(); LivePhotoView = null; } #if __TVOS__ if (LivePhotoPlayButton != null) { LivePhotoPlayButton.Dispose(); LivePhotoPlayButton = null; } #endif if (ImageView != null) { ImageView.Dispose(); ImageView = null; } if (Space != null) { Space.Dispose(); Space = null; } if (TrashButton != null) { TrashButton.Dispose(); TrashButton = null; } if (PlayButton != null) { PlayButton.Dispose(); PlayButton = null; } if (EditButton != null) { EditButton.Dispose(); EditButton = null; } if (ProgressView != null) { ProgressView.Dispose(); ProgressView = null; } }
void ReleaseDesignerOutlets() { if (UpdateButton != null) { UpdateButton.Dispose(); UpdateButton = null; } if (TrashButton != null) { TrashButton.Dispose(); TrashButton = null; } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (Grid != null) { if (!Grid.IsDisposed) { Grid.Dispose(); } Grid = null; } if (TitleLabel != null) { if (!TitleLabel.IsDisposed) { TitleLabel.Dispose(); } TitleLabel = null; } if (GoldLabel != null) { if (!GoldLabel.IsDisposed) { GoldLabel.Dispose(); } GoldLabel = null; } if (GameGoldLabel != null) { if (!GameGoldLabel.IsDisposed) { GameGoldLabel.Dispose(); } GameGoldLabel = null; } if (WeightLabel != null) { if (!WeightLabel.IsDisposed) { WeightLabel.Dispose(); } WeightLabel = null; } if (CurrencyLabel != null) { if (!CurrencyLabel.IsDisposed) { CurrencyLabel.Dispose(); } CurrencyLabel = null; } if (CloseButton != null) { if (!CloseButton.IsDisposed) { CloseButton.Dispose(); } CloseButton = null; } if (SortButton != null) { if (!SortButton.IsDisposed) { SortButton.Dispose(); } SortButton = null; } if (TrashButton != null) { if (!TrashButton.IsDisposed) { TrashButton.Dispose(); } TrashButton = null; } if (GoldTitle != null) { if (!GoldTitle.IsDisposed) { GoldTitle.Dispose(); } GameGoldTitle = null; } if (GameGoldTitle != null) { if (!GameGoldTitle.IsDisposed) { GameGoldTitle.Dispose(); } GameGoldTitle = null; } } }