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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (StatusText != null)
            {
                StatusText.Dispose();
                StatusText = null;
            }
        }
Beispiel #2
0
        void ReleaseDesignerOutlets()
        {
            if (ActivityExplainerLbl != null)
            {
                ActivityExplainerLbl.Dispose();
                ActivityExplainerLbl = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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