public async void SaveNote(object sender, EventHandler e) { if (currentNote.userNote != noteEditor.Text) { currentNote.userNote = noteEditor.Text; for (int i = 0; i < App.serverData.mei_user.noteList.Count; i++) { if (App.serverData.mei_user.noteList[i].noteID == currentNote.noteID) { var cTime = DateTime.Now; currentNote.noteDateTime = cTime.ToString("MM/dd/yyyy hh:mm:ss tt"); App.serverData.mei_user.noteList[i] = currentNote; await((HomeLayout)App.Current.MainPage).SetLoading(true, "Saving note..."); await BaseFunctions.EditNoteInServer(currentNote); await((HomeLayout)App.Current.MainPage).SetLoading(false, "Deleting note..."); } } } noteEditor.Unfocus(); //if(parentNotes!=null) //parentNotes.SetDetails(); e(this, null); }