void OnItemSelected(object sender, SelectedItemChangedEventArgs e) { var occurrence = e.SelectedItem as Occurrence; var LogPage = new LogPage(); LogPage.BindingContext = occurrence; Navigation.PushAsync(LogPage); }
void Handle_Clicked(object sender, System.EventArgs e) { var occurrence = new Occurrence() { ID = Guid.NewGuid().ToString(), dateTime = DateTime.Now }; var LogPage = new LogPage(true); LogPage.BindingContext = occurrence; Navigation.PushAsync(LogPage); }
void OnAddItemClicked(object sender, EventArgs e) { var occurrence = new Occurrence() { ID = Guid.NewGuid().ToString(), dateTime = DateTime.Now.ToLocalTime() }; var LogPage = new LogPage(true); LogPage.BindingContext = occurrence; _occurrences.Add(occurrence); Navigation.PushAsync(LogPage); }