예제 #1
0
파일: Realtime.cs 프로젝트: runegri/MuPP
 public Realtime()
 {
     try
     {
         var dbPath = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.MyDocuments), DbName);
         //var dbPath = DbName;
         _conn = new SQLiteConnection(dbPath);
         _conn.EnsureTableExists<BusStop>();
         ThreadPool.QueueUserWorkItem(o => GetHandShake());
     }
     catch(Exception ex)
     {
         Debug.WriteLine(ex.ToString());
         throw;
     }
 }