private void client_GetUserNotesCompleted(object sender, GetUserNotesCompletedEventArgs e) { if (e.Error == null) { notes = e.Result; foreach (DataBoundApp1.ServiceReference1.Note n in notes) { this.Items.Add(new ItemViewModel() { LineOne = n.Content, LineTwo = "", LineThree = n.Description }); } this.IsDataLoaded = true; } else { notes = new ObservableCollection <DataBoundApp1.ServiceReference1.Note>(); } }
void _client_GetUserNotesCompleted(object sender, GetUserNotesCompletedEventArgs e) { if (e.Error == null) { this.Notes = e.Result; this.ErrorMsg = null; } else { this.ErrorMsg = e.Error.Message; } }