void ReleaseDesignerOutlets() { if (ButtonCreateAlert != null) { ButtonCreateAlert.Dispose(); ButtonCreateAlert = null; } if (EmailAlertLabel != null) { EmailAlertLabel.Dispose(); EmailAlertLabel = null; } if (EmptyAlertButton != null) { EmptyAlertButton.Dispose(); EmptyAlertButton = null; } if (EmptyAlertImageButton != null) { EmptyAlertImageButton.Dispose(); EmptyAlertImageButton = null; } if (MobileNotificationLabel != null) { MobileNotificationLabel.Dispose(); MobileNotificationLabel = null; } if (NextButton != null) { NextButton.Dispose(); NextButton = null; } if (NotifActivatedLabel != null) { NotifActivatedLabel.Dispose(); NotifActivatedLabel = null; } if (TableViewDontMove != null) { TableViewDontMove.Dispose(); TableViewDontMove = null; } }
private void InitialiseAllStrings() { MobileNotificationLabel.Text = Application.LocalizedString("MobileNotification"); NotifActivatedLabel.Text = Application.LocalizedString("NotifActivatedDontMove"); EmailAlertLabel.Text = Application.LocalizedString("EmailAlert"); ButtonCreateAlert.SetTitle(Application.LocalizedString("CreateButton"), UIControlState.Normal); EmptyAlertButton.SetTitle(Application.LocalizedString("NoEmailAlertConfigured"), UIControlState.Normal); if (App.Locator.ModeDontMove.LsAlertsModeDontMove?.Count > 0) { NextButton.SetTitle(Application.LocalizedString("Next"), UIControlState.Normal); } else { NextButton.SetTitle(Application.LocalizedString("Skip"), UIControlState.Normal); } }