Exemple #1
0
 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;
            }
        }
Exemple #3
0
        void ReleaseDesignerOutlets()
        {
            if (ArabicButton != null)
            {
                ArabicButton.Dispose();
                ArabicButton = null;
            }

            if (BokmalButton != null)
            {
                BokmalButton.Dispose();
                BokmalButton = null;
            }

            if (EnglishButton != null)
            {
                EnglishButton.Dispose();
                EnglishButton = null;
            }

            if (NynorskButton != null)
            {
                NynorskButton.Dispose();
                NynorskButton = null;
            }

            if (LithuanianButton != null)
            {
                LithuanianButton.Dispose();
                LithuanianButton = null;
            }

            if (PolishButton != null)
            {
                PolishButton.Dispose();
                PolishButton = null;
            }

            if (SomaliButton != null)
            {
                SomaliButton.Dispose();
                SomaliButton = null;
            }

            if (TigrinyaButton != null)
            {
                TigrinyaButton.Dispose();
                TigrinyaButton = null;
            }

            if (UrduButton != null)
            {
                UrduButton.Dispose();
                UrduButton = null;
            }
        }
Exemple #4
0
 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();
 }
        private void UiSettingsShow()
        {
            ThemeLabel.Show();
            ForestButton.Show();
            DesertButton.Show();
            MountainsButton.Show();
            CityButton.Show();
            SunsetButton.Show();

            mDivider1.Show();
            LanguageLabel.Show();
            RussianButton.Show();
            EnglishButton.Show();
        }
Exemple #6
0
 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);
     }
 }
Exemple #7
0
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

            if (ChooseLanguageHeaderLbl != null)
            {
                ChooseLanguageHeaderLbl.Dispose();
                ChooseLanguageHeaderLbl = null;
            }

            if (ContentLabel != null)
            {
                ContentLabel.Dispose();
                ContentLabel = null;
            }

            if (ContentLabelOne != null)
            {
                ContentLabelOne.Dispose();
                ContentLabelOne = null;
            }

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

            if (Header != null)
            {
                Header.Dispose();
                Header = null;
            }

            if (HeaderLabel != null)
            {
                HeaderLabel.Dispose();
                HeaderLabel = null;
            }

            if (BokmalButton != null)
            {
                BokmalButton.Dispose();
                BokmalButton = null;
            }

            if (BokmalLabel != null)
            {
                BokmalLabel.Dispose();
                BokmalLabel = null;
            }

            if (NynorskButton != null)
            {
                NynorskButton.Dispose();
                NynorskButton = null;
            }

            if (NynorskLabel != null)
            {
                NynorskLabel.Dispose();
                NynorskLabel = null;
            }

            if (EnglishButton != null)
            {
                EnglishButton.Dispose();
                EnglishButton = null;
            }

            if (EnglishLabel != null)
            {
                EnglishLabel.Dispose();
                EnglishLabel = null;
            }

            if (PolishButton != null)
            {
                PolishButton.Dispose();
                PolishButton = null;
            }

            if (PolishLabel != null)
            {
                PolishLabel.Dispose();
                PolishLabel = null;
            }

            if (SomaliButton != null)
            {
                SomaliButton.Dispose();
                SomaliButton = null;
            }

            if (SomaliLabel != null)
            {
                SomaliLabel.Dispose();
                SomaliLabel = null;
            }

            if (TigrinyaButton != null)
            {
                TigrinyaButton.Dispose();
                TigrinyaButton = null;
            }

            if (TigrinyaLabel != null)
            {
                TigrinyaLabel.Dispose();
                TigrinyaLabel = null;
            }

            if (ArabicButton != null)
            {
                ArabicButton.Dispose();
                ArabicButton = null;
            }

            if (ArabicLabel != null)
            {
                ArabicLabel.Dispose();
                ArabicLabel = null;
            }

            if (LithuanianButton != null)
            {
                LithuanianButton.Dispose();
                LithuanianButton = null;
            }

            if (LithuanianLabel != null)
            {
                LithuanianLabel.Dispose();
                LithuanianLabel = null;
            }

            if (UrduButton != null)
            {
                UrduButton.Dispose();
                UrduButton = null;
            }

            if (UrduLabel != null)
            {
                UrduLabel.Dispose();
                UrduLabel = null;
            }

            if (RestartAppLabl != null)
            {
                RestartAppLabl.Dispose();
                RestartAppLabl = null;
            }

            if (SmittestopLinkButtonLbl != null)
            {
                SmittestopLinkButtonLbl.Dispose();
                SmittestopLinkButtonLbl = null;
            }

            if (SmittestopLinkButtonStackView != null)
            {
                SmittestopLinkButtonStackView.Dispose();
                SmittestopLinkButtonStackView = null;
            }

            if (switchButton != null)
            {
                switchButton.Dispose();
                switchButton = null;
            }
        }