CURELab.SignLanguage.HandDetector.DBManager.DBManager C# (CSharp) 메소드

DBManager() 개인적인 메소드

private DBManager ( string dataSource ) : System
dataSource string
리턴 System
        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();
        }