Example #1
0
 private static void SetTopAndBottomText(BilingualText instance, string DataToShow)
 {
     if (DataToShow != null)
     {
         instance.EnglishText = AppResources.ResourceManager.GetString(DataToShow, new CultureInfo("en"));
         instance.LocalText   = AppResources.ResourceManager.GetString(DataToShow, new CultureInfo("ar"));
     }
 }
Example #2
0
 private static void AddArgumentStringWithTopAndBottomText(BilingualText instance, string argument)
 {
     if (argument != null)
     {
         instance.EnglishText = string.Format(instance.EnglishText, argument);
         instance.LocalText   = string.Format(instance.LocalText, argument);
     }
 }
Example #3
0
 private static void UpdateControl(BilingualText instance, string language)
 {
     if (language == AppLanguage.multi.ToString())
     {
         instance.topText.Visibility    = Visibility.Visible;
         instance.bottomText.Visibility = Visibility.Visible;
     }
     else if (language != AppLanguage.en.ToString())
     {
         instance.topText.Visibility    = Visibility.Collapsed;
         instance.bottomText.Visibility = Visibility.Visible;
     }
     else
     {
         instance.topText.Visibility    = Visibility.Visible;
         instance.bottomText.Visibility = Visibility.Collapsed;
     }
 }
Example #4
0
 private static void SetForeGroundColor(BilingualText instance, Brush TextColor)
 {
     instance.topText.Foreground    = TextColor;
     instance.bottomText.Foreground = TextColor;
 }