async Task Submit(ButtonRow button) { if (await ConfirmAsync("ConfirmText")) { if (!await TodoPage.CheckSecretKey(_todoList, _submitAccount.SubmitAccount, this)) { return; } IsBusy = true; var text = _text.Edit.Text; UIApp.Run(() => TodoApp.Current.AddUpdateTodoItem(_submitAccount.SubmitAccount, text, _todoList, _task)); } }
async Task Submit(ButtonRow button) { var todoList = _listSelection.Selection; if (!await TodoPage.CheckSecretKey(todoList, _submitAccount.SubmitAccount, this)) { return; } if (!await ConfirmAsync("Confirm")) { return; } IsBusy = true; var text = _editor.Edit.Text; UIApp.Run(() => TodoApp.Current.AddUpdateTodoItem(_submitAccount.SubmitAccount, text, todoList, null)); }
async Task Submit(ButtonRow button) { var todoList = _listSelection.Selection; var submitAccount = _submitAccount.SubmitAccount; if (!await TodoPage.CheckSecretKey(todoList, submitAccount, this)) { return; } IsBusy = true; try { var list = _listSelection.Selection; var accountid = long.Parse(_accountId.Edit.Text); UIApp.Run(() => TodoApp.Current.InviteToList(submitAccount, todoList, accountid)); } catch (Exception ex) { Log.IgnoreException(ex); } }