BizHawk/BizHawk.Client.DBMan/Program.cs

37 lines
697 B
C#
Raw Normal View History

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();
DB.Con.ConnectionString = @"Version=3,uri=file://gamedb/game.db";
2014-03-11 02:48:27 +00:00
DB.Con.Open();
}
}
}