Example #1
0
 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;
 }
Example #2
0
		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);
		}
Example #3
0
 public SqliteNoteRepository(Database database)
 {
     if (database == null)
         throw new ArgumentNullException ("database");
     this.database = database;
 }