Ejemplo n.º 1
0
 public GameScannersSettings GetSettings()
 {
     if (SettingsCollection.Count() == 0)
     {
         var settings = new GameScannersSettings {
             CrcExcludeFileTypes = new List <string> {
                 "*.chd"
             }
         };
         SettingsCollection.Insert(settings);
         return(settings);
     }
     else
     {
         return(SettingsCollection.FindAll().First());
     }
 }
Ejemplo n.º 2
0
 public void SetSettings(GameScannersSettings settings)
 {
     settings.Id = 0;
     SettingsCollection.Upsert(settings);
 }