private void applyTraslations() { TitleViewLabel.Text = AppDelegate.LanguageBundle.GetLocalizedString("language_title"); ModifyButton.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("language_modify"), UIControlState.Normal); SpanishButton.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("language_spanish"), UIControlState.Normal); EnglishButton.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("language_english"), UIControlState.Normal); }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (EnglishButton != null) { EnglishButton.Dispose(); EnglishButton = null; } if (ModifyButton != null) { ModifyButton.Dispose(); ModifyButton = null; } if (SpanishButton != null) { SpanishButton.Dispose(); SpanishButton = null; } if (TitleViewLabel != null) { TitleViewLabel.Dispose(); TitleViewLabel = null; } }
private void styleView() { ModifyButton.Layer.CornerRadius = 4; SpanishButton.Layer.CornerRadius = 4; SpanishButton.Layer.BorderWidth = 1; SpanishButton.Layer.BorderColor = "#f3f3f3".ToUIColor().CGColor; EnglishButton.Layer.CornerRadius = 4; EnglishButton.Layer.BorderWidth = 1; EnglishButton.Layer.BorderColor = "#f3f3f3".ToUIColor().CGColor; SpanishButton.setLittleDownBorderShadow(); EnglishButton.setLittleDownBorderShadow(); }
public void SetConfiguredLang(string configuredLang) { SpanishButton.Layer.BorderColor = "#f3f3f3".ToUIColor().CGColor; SpanishButton.BackgroundColor = "#FFFFFF".ToUIColor(); EnglishButton.Layer.BorderColor = "#f3f3f3".ToUIColor().CGColor; EnglishButton.BackgroundColor = "#FFFFFF".ToUIColor(); SpanishButton.SetImage(null, UIControlState.Normal); EnglishButton.SetImage(null, UIControlState.Normal); if (configuredLang.Equals("es")) { SpanishButton.Layer.BorderColor = "#999999".ToUIColor().CGColor; SpanishButton.BackgroundColor = "#F3F3F3".ToUIColor(); SpanishButton.SetImage(UIImage.FromBundle("next"), UIControlState.Normal); } else if (configuredLang.Equals("en")) { EnglishButton.Layer.BorderColor = "#999999".ToUIColor().CGColor; EnglishButton.BackgroundColor = "#F3F3F3".ToUIColor(); EnglishButton.SetImage(UIImage.FromBundle("check"), UIControlState.Normal); } }