Ejemplo n.º 1
0
        private async Task SubmitNote()
        {
            try
            {
                await manager.UpdateNote(status.ID, currentNote);

                status.Note = currentNote;
                NotifyPropertyChanged("Note");
                NotifyPropertyChanged("NoteChanged");

                Trace.WriteLine("Note changed to '" + currentNote + "' for " + status.ID);
            }
            catch (Exception ex)
            {
                currentNote = status.Note;
                NotifyPropertyChanged("Note");
                NotifyPropertyChanged("NoteChanged");

                ui.ShowError(ex, "Failed to update experiment note");
            }
        }