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



        private void OnLocalizationUpdated(object sender,
                                           LocalizationEventArgs e)
        {
            PostCategoryTextBlock
            .GetBindingExpression(TextBlock.TextProperty)?
            .UpdateTarget();
        }
예제 #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();
        }
예제 #3
0
 private void OnLocalizationUpdated(object sender,
                                    LocalizationEventArgs e)
 {
     PurposeProfileStat
     .GetBindingExpression(UserProfileStat.StatValueProperty)?
     .UpdateTarget();
     SexProfileStat
     .GetBindingExpression(UserProfileStat.StatValueProperty)?
     .UpdateTarget();
 }
예제 #4
0
 private void OnLocalizationUpdated(object sender,
                                    LocalizationEventArgs e)
 {
     UpdatePostsTypes();
 }
예제 #5
0
 private static void OnLocalizationUpdated(
     object sender, LocalizationEventArgs e)
 {
     LocalizationUpdated?.Invoke(
         sender, e);
 }
예제 #6
0
 private static void OnLocalizationsNotFound(
     object sender, LocalizationEventArgs e)
 {
     LocalizationsNotFound?.Invoke(
         sender, e);
 }
예제 #7
0
 private void OnLocalizationUpdated(object sender,
                                    LocalizationEventArgs e)
 {
     ReloadPostCategories();
 }