void UpdateAttendanceCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e) { if (e.Error == null) { var a = SelectedAttendance; var index = Attendances.IndexOf(SelectedAttendance); Attendances.RemoveAt(index); Attendances.Insert(index, a); SelectedAttendance = a; } else { ErrorProvider.ShowError(e.Error, Navigator); } Busy = false; }