コード例 #1
0
 private void PopulateUI(CollectionSettings settings)
 {
     this.textMusicDirectory.Text = settings.MusicDirectory;
     this.textFileNamingPattern.Text = settings.FileNamingPattern;
     this.checkNetworkEncoding.IsChecked = settings.NetworkEncoding;
     this.textLocalThreads.Text = this.SettingsManager.Settings.LocalConcurrencyLevel.ToString();
 }
コード例 #2
0
 private void ReloadSettings()
 {
     this.Settings = this.settingsCollection.FindOne();
     if (this.Settings == null)
     {
         this.Settings = CollectionSettings.CreateDefault();
         this.SaveSettings();
     }
 }