Ejemplo n.º 1
0
 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);
         }
     }
 }
Ejemplo n.º 2
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"));
 }
Ejemplo n.º 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"));
 }