Esempio n. 1
0
 public void initDb()
 {
     string dataSource = "MovieRackTodo.db";
     connection = new SQLiteConnection();
     connection.ConnectionString = "Data Source=" + dataSource;
     connection.Open();
     this.checkTables();
     db = this;
 }
Esempio n. 2
0
 private void initializeModel()
 {
     db = new SQLiteConnector();
     db.initDb();
     dbTodo = new SQLiteConnectorTodo();
     dbTodo.initDb();
     PictureHandler.initialize();
 }
Esempio n. 3
0
 public TodoListController(Controller c, SQLiteConnectorTodo dbTodo)
 {
     this.controller = c;
     this.dbTodo = dbTodo;
 }