private void InitializeAppDataPath()
 {
     if (FullAppDataPath == string.Empty || FullTimeDBPath == string.Empty)
     {
         FullAppDataPath = EnvLibrary.GetAppDataPath();
         FullTimeDBPath  = EnvLibrary.GetDBPath();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Gets the (currently static) SQLCE connection string
 /// </summary>
 /// <returns>Connection String</returns>
 private string GetConnectionString()
 {
     return("DataSource=" + EnvLibrary.GetDBPath());
 }
Beispiel #3
0
 /// <summary>
 /// Checks if a file exists where the SQLCE DB is expected to be
 /// </summary>
 /// <returns></returns>
 public bool CheckDatabaseExists()
 {
     return(File.Exists(EnvLibrary.GetDBPath()));
 }