Esempio n. 1
0
 public void FetchTracks()
 {
     Tracks.Clear();
     string query = "select * from Spoor";
     OracleDataReader dbr = DBManager.ExecuteQuery(query);
     if (!dbr.HasRows)
     {
         return;
     }
     else while (dbr.Read())
         {
             Track track = new Track(Convert.ToInt32(dbr["ID"].ToString()), Convert.ToInt32(dbr["Nummer"].ToString()));
             track.LinkSectors(FetchSectors(track));
             Tracks.Add(track);
         }
 }