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

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

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

            if (TypeLabel != null)
            {
                TypeLabel.Dispose();
                TypeLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ThumbnailImageView != null)
            {
                ThumbnailImageView.Dispose();
                ThumbnailImageView = null;
            }

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

            if (ContentLabel != null)
            {
                ContentLabel.Dispose();
                ContentLabel = null;
            }
        }
Пример #3
0
 public void SetThumbnailImage(int key, Bitmap image) => ThumbnailImageView.SetImageBitmap(key == Key ? image : null);