public void StudentInfoLoaded(GetStudentInfoCompletedEventArgs result) { if (result.Result == null) { CourseAccess = null; Password = string.Empty; WasStudentFound = false; Name = string.Empty; CourseStatuses = null; } else { CourseAccess = result.Result.AvailableCourseID; Password = result.Password; WasStudentFound = true; Name = result.Result.Name; CourseStatuses = result.CourseProgress; } IsPending = false; }
private void HandleStudentInfoResults(GetStudentInfoCompletedEventArgs results) { eventAggregator.GetEvent<StudentInfoLoadedEvent>().Publish(results); }