public App() { InitializeComponent(); toDosService = new ToDosService(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "todos.xml")); toDosService.LoadToDos(); MainPage = new NavigationPage(new ToDoListPage(toDosService)); }
public ToDoListPage(ToDosService toDosService) { this.toDosService = toDosService; InitializeComponent(); BindingContext = toDosService; }
public ToDoDetailPage(ToDosService toDosService) { this.toDosService = toDosService; InitializeComponent(); }