Beispiel #1
0
        void ReleaseDesignerOutlets()
        {
            if (AuthorNameLabel != null)
            {
                AuthorNameLabel.Dispose();
                AuthorNameLabel = null;
            }

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

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

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

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

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

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

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

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

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

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