void SetOnOffBtnState(bool isRunning) { if (isRunning) { string accessibilityText = InfectionStatusViewModel.INFECTION_STATUS_STOP_BUTTON_ACCESSIBILITY_TEXT; string buttonText = InfectionStatusViewModel.INFECTION_STATUS_STOP_BUTTON_TEXT; OnOffBtn.AccessibilityLabel = AccessibilityUtils.RemovePoorlySpokenSymbolsString(accessibilityText); OnOffBtn.BackgroundColor = UIColor.Clear; OnOffBtn.Layer.BorderColor = ColorHelper.PRIMARY_COLOR.CGColor; OnOffBtn.Layer.BorderWidth = 1; OnOffBtn.SetTitleColor(ColorHelper.PRIMARY_COLOR, UIControlState.Normal); OnOffBtn.SetTitle(buttonText, UIControlState.Normal); } else { string accessibilityText = InfectionStatusViewModel.INFECTION_STATUS_START_BUTTON_ACCESSIBILITY_TEXT; string buttonText = InfectionStatusViewModel.INFECTION_STATUS_START_BUTTON_TEXT; OnOffBtn.AccessibilityLabel = AccessibilityUtils.RemovePoorlySpokenSymbolsString(accessibilityText); OnOffBtn.BackgroundColor = ColorHelper.PRIMARY_COLOR; OnOffBtn.Layer.BorderColor = UIColor.Clear.CGColor; OnOffBtn.Layer.BorderWidth = 0; OnOffBtn.SetTitleColor(ColorHelper.TEXT_COLOR_ON_PRIMARY, UIControlState.Normal); OnOffBtn.SetTitle(buttonText, UIControlState.Normal); } }
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; } }
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; } }