Пример #1
0
        private void ComboBoxLanguage_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            AppLanguage.LanguageCode = (ComboBoxLanguage.SelectedItem as ListBoxItem).Tag.ToString();
            AppLanguage.SetCurrentThreadCulture(System.Threading.Thread.CurrentThread);
            AppLanguage.Save();

            Close();

            Initialize(this.Owner);
        }
Пример #2
0
        private void SetPhrases()
        {
            AppLanguage.SetCurrentThreadCulture(Thread.CurrentThread);

            LocalHelper.ThisPC = AppLanguage.Get("LangThisPC");

            DaysWord.TodayWord     = AppLanguage.Get("LangTextToday");
            DaysWord.YesterdayWord = AppLanguage.Get("LangTextYesterday");
            DaysWord._set();

            SizeUnit.SizeB  = AppLanguage.Get("LangSizeBytes");
            SizeUnit.SizeKB = AppLanguage.Get("LangSizeKB");
            SizeUnit.SizeMB = AppLanguage.Get("LangSizeMB");
            SizeUnit.SizeGB = AppLanguage.Get("LangSizeGB");
            SizeUnit.SizeTB = AppLanguage.Get("LangSizeTB");

            LabelServerTime.ContentStringFormat = AppLanguage.Get("LangLabelElapsedTime_X");
        }
Пример #3
0
 public MainWindow()
 {
     AppLanguage.SetCurrentThreadCulture(Thread.CurrentThread);
     _initialize();
 }