async void OnItemSelected(object sender, EventArgs args) { DummyArchive selected = (DummyArchive)EmployeeView.SelectedItem; var nextPage = new ArchivePage(selected); await Navigation.PushAsync(nextPage); }
async void OnButtonClicked(object sender, EventArgs args) { var nextPage = new ArchivePage(new DummyArchive("New Archive", "C:/New Archive", new[] { "Empty File" })); await Navigation.PushAsync(nextPage); }