コード例 #1
0
        public SettingsPanel()
        {
            InitializeComponent();
            CKBShowDebugWindowOnNextLaunch.IsChecked = Properties.Settings.Default.ShowDebuggingWindowNextLaunch;

            CbBoxLanguage.ItemsSource       = LanguageHelper.Langs;
            CbBoxLanguage.SelectedIndex     = LanguageHelper.FindIndex(App.Current.Resources["LanguageCode"].ToString());
            CbBoxLanguage.SelectionChanged += CbBoxLanguage_SelectionChanged;

            CbBoxTheme.ItemsSource       = ThemeManager.Themes;
            CbBoxTheme.SelectedIndex     = ThemeManager.GetCrtIndex();
            CbBoxTheme.SelectionChanged += CbBoxTheme_SelectionChanged;
        }