2014-03-11 02:48:27 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using Community.CsharpSqlite.SQLiteClient;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.DBMan
|
|
|
|
|
{
|
|
|
|
|
internal static class Program
|
|
|
|
|
{
|
|
|
|
|
[STAThread]
|
|
|
|
|
static void Main()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
InitDB();
|
|
|
|
|
Application.EnableVisualStyles();
|
|
|
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
|
Application.Run(new DBMan_MainForm());
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show(e.ToString());
|
|
|
|
|
}
|
|
|
|
|
finally
|
|
|
|
|
{
|
|
|
|
|
if (DB.Con != null) DB.Con.Dispose();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void InitDB()
|
|
|
|
|
{
|
|
|
|
|
DB.Con = new SqliteConnection();
|
2014-03-17 03:00:07 +00:00
|
|
|
|
DB.Con.ConnectionString = @"Version=3,uri=file://gamedb/game.db";
|
2014-03-11 02:48:27 +00:00
|
|
|
|
DB.Con.Open();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|