Esempio n. 1
0
        public async void SearchFilter(string filter)
        {
            listView.BeginRefresh();

            if (string.IsNullOrWhiteSpace(filter))
            {
                listView.ItemsSource = await todoItemDatabase.GetItemsAsync();
            }
            else
            {
                listView.ItemsSource = todoItemDatabase.GetItemsAsync().Result.Where(x => x.Memo.ToLower().Contains(filter));
            }

            listView.EndRefresh();
        }
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            TodoItemDatabase database = await TodoItemDatabase.Instance;

            listView.ItemsSource = await database.GetItemsAsync();
        }
Esempio n. 3
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            listView.ItemsSource = await itemDB.GetItemsAsync();
        }
Esempio n. 4
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            await itemDB.GetItemsAsync();
        }