public override void ViewDidLoad() { try { base.ViewDidLoad(); c.AddViews(Snackbar, Snackbar.SnackText, Snackbar.SnackButton); RoundBottom_Base = RoundBottom; Snackbar_Base = Snackbar; BottomConstraint_Base = BottomConstraint; SnackTopConstraint_Base = SnackTopConstraint; SnackBottomConstraint_Base = SnackBottomConstraint; ScrollBottomConstraint_Base = ScrollBottomConstraint; ScrollBottomOuterConstraint_Base = ScrollBottomOuterConstraint; SettingsHeaderText.Text = LangEnglish.MenuSettings; NotificationsLabel.Text = LangEnglish.NotificationsText; NotificationsInApp.Text = LangEnglish.NotificationsInApp; NotificationsBackground.Text = LangEnglish.NotificationsBackground; NotificationsNewMatchLabel.Text = LangEnglish.NotificationsNewMatchText; NotificationsNewMessageLabel.Text = LangEnglish.NotificationsNewMessageText; NotificationsUnmatchLabel.Text = LangEnglish.NotificationsUnmatchText; NotificationsRematchLabel.Text = LangEnglish.NotificationsRematchText; DisplaySection.Text = LangEnglish.DisplaySection; MapIconSizeLabel.Text = LangEnglish.MapIconSizeText; MapRatioLabel.Text = LangEnglish.MapRatioText; LocationHistoryButton.Layer.MasksToBounds = true; MessageSend.Layer.MasksToBounds = true; ProgramLogButton.Layer.MasksToBounds = true; MapIconSize.MinValue = Constants.MapIconSizeMin; MapIconSize.MaxValue = Constants.MapIconSizeMax; MapRatio.MinValue = Constants.MapRatioMin; MapRatio.MaxValue = Constants.MapRatioMax; LocationLabel.Text = LangEnglish.LocationText; InAppLocationRateLabel.Text = LangEnglish.InAppLocationRate; InAppLocationRate.MinValue = Constants.InAppLocationRateMin; InAppLocationRate.MaxValue = Constants.InAppLocationRateMax; if (Constants.SafeLocationMode) { /*c.CollapseY(BackgroundLocationLabel); * c.CollapseY(BackgroundLocation); * BackgroundLocation.Hidden = true; * c.CollapseY(BackgroundLocationRateLabel); * c.CollapseY(BackgroundLocationRate); * BackgroundLocationRate.Hidden = true; * c.CollapseY(BackgroundLocationRateValue); * * InAppLocationRateLabelConstraint.Constant = 0; * LocationHistoryButtonConstraint.Constant = -5;*/ InAppLocationRateExplanation.Text = LangEnglish.InAppLocationRateExplanation; } else { c.CollapseY(InAppLocationRateExplanation); /*BackgroundLocationRateLabelConstraint.Constant = 0; * * BackgroundLocationLabel.Text = LangEnglish.BackgroundLocation; * BackgroundLocationRateLabel.Text = LangEnglish.BackgroundLocationRate;*/ } //BackgroundLocationRate.MinValue = Constants.BackgroundLocationRateMin; //BackgroundLocationRate.MaxValue = Constants.BackgroundLocationRateMax; LocationHistoryButton.SetTitle(LangEnglish.LocationHistory, UIControlState.Normal); SettingsFormCaption.SetTitle(LangEnglish.SettingsFormCaption, UIControlState.Normal); MessageSend.SetTitle(LangEnglish.SettingsFormSend, UIControlState.Normal); ProgramLogIncluded.Text = LangEnglish.ProgramLogIncluded; ProgramLogButton.SetTitle(LangEnglish.SeeProgramLog, UIControlState.Normal); c.DrawBorder(MessageEdit); c.CollapseY(MessageContainer); SettingsBack.TouchDown += SettingsBack_TouchDown; SettingsBack.TouchUpInside += SettingsBack_TouchUpInside; MapIconSize.ValueChanged += MapIconSize_ValueChanged; MapRatio.ValueChanged += MapRatio_ValueChanged; //BackgroundLocation.ValueChanged += BackgroundLocation_ValueChanged; InAppLocationRate.ValueChanged += InAppLocationRate_ValueChanged; //BackgroundLocationRate.ValueChanged += BackgroundLocationRate_ValueChanged; LocationHistoryButton.TouchUpInside += LocationHistoryButton_TouchUpInside; SettingsFormCaption.TouchUpInside += SettingsFormCaption_TouchUpInside; MessageSend.TouchUpInside += SettingsMessageSend_TouchUpInside; ProgramLogButton.TouchUpInside += ProgramLogButton_TouchUpInside; } catch (Exception ex) { c.ReportErrorSilent(ex.Message + Environment.NewLine + ex.StackTrace); } }
void ReleaseDesignerOutlets() { if (BottomConstraint != null) { BottomConstraint.Dispose(); BottomConstraint = null; } if (CheckMatchBackground != null) { CheckMatchBackground.Dispose(); CheckMatchBackground = null; } if (CheckMatchInApp != null) { CheckMatchInApp.Dispose(); CheckMatchInApp = null; } if (CheckMessageBackground != null) { CheckMessageBackground.Dispose(); CheckMessageBackground = null; } if (CheckMessageInApp != null) { CheckMessageInApp.Dispose(); CheckMessageInApp = null; } if (CheckRematchBackground != null) { CheckRematchBackground.Dispose(); CheckRematchBackground = null; } if (CheckRematchInApp != null) { CheckRematchInApp.Dispose(); CheckRematchInApp = null; } if (CheckUnmatchBackground != null) { CheckUnmatchBackground.Dispose(); CheckUnmatchBackground = null; } if (CheckUnmatchInApp != null) { CheckUnmatchInApp.Dispose(); CheckUnmatchInApp = null; } if (DisplaySection != null) { DisplaySection.Dispose(); DisplaySection = null; } if (InAppLocationRate != null) { InAppLocationRate.Dispose(); InAppLocationRate = null; } if (InAppLocationRateExplanation != null) { InAppLocationRateExplanation.Dispose(); InAppLocationRateExplanation = null; } if (InAppLocationRateLabel != null) { InAppLocationRateLabel.Dispose(); InAppLocationRateLabel = null; } if (InAppLocationRateLabelConstraint != null) { InAppLocationRateLabelConstraint.Dispose(); InAppLocationRateLabelConstraint = null; } if (InAppLocationRateValue != null) { InAppLocationRateValue.Dispose(); InAppLocationRateValue = null; } if (LocationHistoryButton != null) { LocationHistoryButton.Dispose(); LocationHistoryButton = null; } if (LocationHistoryButtonConstraint != null) { LocationHistoryButtonConstraint.Dispose(); LocationHistoryButtonConstraint = null; } if (LocationLabel != null) { LocationLabel.Dispose(); LocationLabel = null; } if (MapIconSize != null) { MapIconSize.Dispose(); MapIconSize = null; } if (MapIconSizeLabel != null) { MapIconSizeLabel.Dispose(); MapIconSizeLabel = null; } if (MapIconSizeValue != null) { MapIconSizeValue.Dispose(); MapIconSizeValue = null; } if (MapRatio != null) { MapRatio.Dispose(); MapRatio = null; } if (MapRatioLabel != null) { MapRatioLabel.Dispose(); MapRatioLabel = null; } if (MapRatioValue != null) { MapRatioValue.Dispose(); MapRatioValue = null; } if (MessageContainer != null) { MessageContainer.Dispose(); MessageContainer = null; } if (MessageEdit != null) { MessageEdit.Dispose(); MessageEdit = null; } if (MessageSend != null) { MessageSend.Dispose(); MessageSend = null; } if (NotificationsBackground != null) { NotificationsBackground.Dispose(); NotificationsBackground = null; } if (NotificationsInApp != null) { NotificationsInApp.Dispose(); NotificationsInApp = null; } if (NotificationsLabel != null) { NotificationsLabel.Dispose(); NotificationsLabel = null; } if (NotificationsNewMatchLabel != null) { NotificationsNewMatchLabel.Dispose(); NotificationsNewMatchLabel = null; } if (NotificationsNewMessageLabel != null) { NotificationsNewMessageLabel.Dispose(); NotificationsNewMessageLabel = null; } if (NotificationsRematchLabel != null) { NotificationsRematchLabel.Dispose(); NotificationsRematchLabel = null; } if (NotificationsUnmatchLabel != null) { NotificationsUnmatchLabel.Dispose(); NotificationsUnmatchLabel = null; } if (ProgramLogButton != null) { ProgramLogButton.Dispose(); ProgramLogButton = null; } if (ProgramLogIncluded != null) { ProgramLogIncluded.Dispose(); ProgramLogIncluded = null; } if (RippleSettings != null) { RippleSettings.Dispose(); RippleSettings = null; } if (RoundBottom != null) { RoundBottom.Dispose(); RoundBottom = null; } if (ScrollBottomConstraint != null) { ScrollBottomConstraint.Dispose(); ScrollBottomConstraint = null; } if (ScrollBottomOuterConstraint != null) { ScrollBottomOuterConstraint.Dispose(); ScrollBottomOuterConstraint = null; } if (Settings_Scroll != null) { Settings_Scroll.Dispose(); Settings_Scroll = null; } if (SettingsBack != null) { SettingsBack.Dispose(); SettingsBack = null; } if (SettingsFormCaption != null) { SettingsFormCaption.Dispose(); SettingsFormCaption = null; } if (SettingsHeaderText != null) { SettingsHeaderText.Dispose(); SettingsHeaderText = null; } if (Snackbar != null) { Snackbar.Dispose(); Snackbar = null; } if (SnackBottomConstraint != null) { SnackBottomConstraint.Dispose(); SnackBottomConstraint = null; } if (SnackTopConstraint != null) { SnackTopConstraint.Dispose(); SnackTopConstraint = null; } }