public string GetString(StringsList name)
 {
     try {
         return(langStrings[(currentLang == Langs.none ? Langs.zh_TW : currentLang)][name]);
     } catch (System.Collections.Generic.KeyNotFoundException) {
         /*#if DEBUG
          * Notifications.log(string.Format("I couldn't find {1} in strings {0}", currentLang.ToString(), name.ToString()));
          #endif*/
         return(langStrings[Langs.zh_TW][name]);
     }
 }
Example #2
0
 private void GoToOffset(object sender, RoutedEventArgs e)
 {
     ViewModel.GoToOffset();
     StringsList.ScrollIntoView(ViewModel.SelectedItem);
 }