private DBManager(string dataSource)
{
this.DataSource = dataSource;
if (connection != null)
{
connection.Close();
connection = null;
}
connection = new SQLiteConnection(String.Format("Data source={0};Version=3;PRAGMA synchronous=off", DataSource));
connection.Open();
if (connection != null)
{
//CreateDatabase();
}
timer = new Timer();
timer.Interval = 1000;
timer.Tick += timer_Tick;
command = connection.CreateCommand();
}