public UpdatePage(ObservableItem item) { InitializeComponent(); titleCell.Text = item.Title; descriptionCell.Text = item.Description; updateButton.Clicked += (object sender, EventArgs e) => { item.Title = titleCell.Text; item.Description = descriptionCell.Text; Navigation.PopAsync(); }; }
public InsertPage(ObservableCollection <ObservableItem> items) { InitializeComponent(); insertButton.Clicked += (object sender, EventArgs e) => { ObservableItem item = new ObservableItem { Title = titleCell.Text, Description = descriptionCell.Text }; items.Add(item); Navigation.PopAsync(); }; }