public SqliteTaskRepository(SqliteBackend backend, Database database) { if (backend == null) throw new ArgumentNullException ("backend"); if (database == null) throw new ArgumentNullException ("database"); this.backend = backend; this.database = database; }
void IBackend.Initialize (IPreferences preferences) { if (preferences == null) throw new ArgumentNullException ("preferences"); database = new Database (); database.Open (); taskListRepo = new SqliteTaskListRepository (database); taskRepo = new SqliteTaskRepository (database); noteRepo = new SqliteNoteRepository (database); IsInitialized = true; if (Initialized != null) Initialized (this, EventArgs.Empty); }
public SqliteNoteRepository(Database database) { if (database == null) throw new ArgumentNullException ("database"); this.database = database; }