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

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

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

            if (ButtonNext != null)
            {
                ButtonNext.Dispose();
                ButtonNext = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (author != null)
            {
                author.Dispose();
                author = null;
            }

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

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

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

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

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

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