void ReleaseDesignerOutlets() { if (AddAlertButton != null) { AddAlertButton.Dispose(); AddAlertButton = 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 (PreviousButton != null) { PreviousButton.Dispose(); PreviousButton = null; } if (Tableview != null) { Tableview.Dispose(); Tableview = null; } }
public void InitialiseAllStrings() { MobileNotificationLabel.Text = Application.LocalizedString("MobileNotification"); NotifActivatedLabel.Text = Application.LocalizedString("NotifActivatedZone"); EmailAlertLabel.Text = Application.LocalizedString("EmailAlert"); AddAlertButton.SetTitle(Application.LocalizedString("CreateButton"), UIControlState.Normal); NextButton.SetTitle(Application.LocalizedString("Next"), UIControlState.Normal); EmptyAlertButton.SetTitle(Application.LocalizedString(Application.LocalizedString("NoEmailAlertConfigured")), UIControlState.Normal); PreviousButton.SetTitle(Application.LocalizedString("Previous"), UIControlState.Normal); if (App.Locator.ModeZone.LsAlertsModeZone?.Count > 0) { NextButton.SetTitle(Application.LocalizedString("Next"), UIControlState.Normal); } else { NextButton.SetTitle(Application.LocalizedString("Skip"), UIControlState.Normal); } }