Exemple #1
0
 public static List <Sound> InitializeSQLite(string pathToDB)
 {
     if (!File.Exists(pathToDB))
     {
         SQLiteConnection.CreateFile(pathToDB);
         cnx = new SQLiteConnection(String.Format("Data Source={0};Version=3;", pathToDB));
         CreateTables();
     }
     else
     {
         cnx = new SQLiteConnection(String.Format("Data Source={0};Version=3;", pathToDB));
         return(SQLiteHandler.FetchSounds());
     }
     return(new List <Sound>());
 }