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

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

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

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

            if (ItemList != null)
            {
                ItemList.Dispose();
                ItemList = null;
            }
        }
Beispiel #2
0
        protected override void UnloadContent()
        {
            sb.Dispose();
            dt.Dispose();

            WhitePixel.Dispose();

            base.UnloadContent();
        }
        void ReleaseDesignerOutlets()
        {
            if (DisplayImage != null)
            {
                DisplayImage.Dispose();
                DisplayImage = null;
            }

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

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