private async void deleteNote() { if (client.Session == null) { statusTxt.Text = "You need to Sign In"; } else { statusTxt.Text = "Deleting... " + noteTitle.Text; String noteId = notes[noteTitle.Text].id; try { LiveOperationResult result = await client.Delete(noteId); statusTxt.Text = "Note deleted"; saveBtn.IsEnabled = false; addBtn.IsEnabled = true; deleteNoteBtn.IsEnabled = false; cancelBtn.IsEnabled = false; needToSave = false; findNoteList(folderIds.Peek()); } catch (LiveConnectException e) { } } }