public static void ConfigureDatabase()
 {
     try
     {
         Database = new Database.Database(Path.Combine(Settings.DataFolder, "database.db"));
     }
     catch (DllNotFoundException ex)
     {
         if (Log.IsVerbose)
         {
             Log.Error(String.Format("Error(ignored): Database at {0}: {1}", Path.Combine(Settings.DataFolder, "database.db"), ex.Message), ex);
         }
         else
         {
             Log.Error(String.Format("Error(ignored): Database at {0}: {1}", Path.Combine(Settings.DataFolder, "database.db"), ex.Message), null);
         }
     }
 }
 public static void Configure()
 {
     LogFile = Path.Combine(Settings.DataFolder, "Log", "app.log");
     Configure(LogFile);
     Database = new Database.Database(Path.Combine(Settings.DataFolder, "database.db"));
 }
Exemple #3
0
 public static void Configure()
 {
     LogFile = Path.Combine(Settings.DataFolder, "Log", "app.log");
     Configure(LogFile);
     Database = new Database.Database(Path.Combine(Settings.DataFolder, "database.db"));
 }