async void OnDeleteClicked(object sender, EventArgs e)
        {
            var todoItem = (TodoItem)BindingContext;
            TodoItemDatabase database = await TodoItemDatabase.Instance;
            await database.DeleteItemAsync(todoItem);

            await Navigation.PopAsync();
        }
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            TodoItemDatabase database = await TodoItemDatabase.Instance;

            listView.ItemsSource = await database.GetItemsAsync();
        }
示例#3
0
        public void TodoItemDatabase_NotNull_Test()
        {
            var sut = new TodoItemDatabase();

            Assert.IsNotNull(sut);
        }
		//protected static TaskRepository me;

        public TodoItemRepository(SQLiteConnection conn, string dbLocation)
		{
			db = new TodoItemDatabase(conn, dbLocation);
		}