Example #1
0
#pragma warning restore SS002 // DateTime.Now was referenced



        private void OnLocalizationUpdated(object sender,
                                           LocalizationEventArgs e)
        {
            PostCategoryTextBlock
            .GetBindingExpression(TextBlock.TextProperty)?
            .UpdateTarget();
        }
Example #2
0
        private static void main_LanguageChangedEvent(object sender, LocalizationEventArgs eventArgs)
        {
            var newCulture = eventArgs.Culture;

            Thread.CurrentThread.CurrentCulture   = CultureInfo.GetCultureInfo(newCulture);
            Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(newCulture);
            _doNotExit = true;
            _fm?.Close();
        }
Example #3
0
 private void OnLocalizationUpdated(object sender,
                                    LocalizationEventArgs e)
 {
     PurposeProfileStat
     .GetBindingExpression(UserProfileStat.StatValueProperty)?
     .UpdateTarget();
     SexProfileStat
     .GetBindingExpression(UserProfileStat.StatValueProperty)?
     .UpdateTarget();
 }
Example #4
0
 private void OnLocalizationUpdated(object sender,
                                    LocalizationEventArgs e)
 {
     UpdatePostsTypes();
 }
Example #5
0
 private static void OnLocalizationUpdated(
     object sender, LocalizationEventArgs e)
 {
     LocalizationUpdated?.Invoke(
         sender, e);
 }
Example #6
0
 private static void OnLocalizationsNotFound(
     object sender, LocalizationEventArgs e)
 {
     LocalizationsNotFound?.Invoke(
         sender, e);
 }
Example #7
0
 private void OnLocalizationUpdated(object sender,
                                    LocalizationEventArgs e)
 {
     ReloadPostCategories();
 }