Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add datepicker to newexpensepage, give a proper name
- in newexpensepage cs file, change the date from
- datetime.now to take date from the date picker
- add date picker to expensespage,
- add button below the date picker
- modify the expensedatabase code to have
- a new method
- public Task<List<Expense>> GetExpenseForDateAsync(DateTime date)
- {
- return database.Table<Expense>()
- .Where(i => i.Date == date).ToListAsync();
- }
- call the above method when the new button is clicked
- only expenses selected for the date should be displayed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement