protected async void Save(object sender, EventArgs e) { task.Title = nameTextEdit.Text; task.Description = notesTextEdit.Text; task.IsDone = doneCheckbox.Checked; try { await task.ToParseObject().SaveAsync(); Finish(); } catch (ParseException pe) { Console.WriteLine("Parse Exception:{0}", pe.Message); Finish(); } }
protected async void Save(object sender, EventArgs e) { task.Title = titleText.Text; task.Description = descriptionText.Text; task.IsDone = doneSwitch.On; descriptionText.ResignFirstResponder(); // hide keyboard titleText.ResignFirstResponder(); NavigationController.PopToRootViewController(true); // save to Parse try { await task.ToParseObject().SaveAsync(); await screen.ReloadAsync(); } catch (ParseException pe) { Console.WriteLine("Parse Exception:{0}", pe.Message); } }