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

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

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

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

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

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

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

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