public AcceptDenyViewModel(Approvals student) { if(student == null) { throw new ArgumentNullException("student"); } this.student = student; }
public void UpdateModel(Approvals model) { student = model; OnPropertyChanged("SocialSecurityNumber"); OnPropertyChanged("FirstName"); OnPropertyChanged("LastName"); OnPropertyChanged("GPA"); OnPropertyChanged("SAT"); OnPropertyChanged("DesirabilityMetric"); }
private void returnStudentList() { appliedStudents = new ObservableCollection<AcceptDenyViewModel>(); DataTable result = Database.Proc("getStudentDetail", (new[] {new MySqlParameter("term", Terms[SelectedTerm].Name), new MySqlParameter("degreeName", DegreePrograms[SelectedProgram].Name)})); if(result != null && result.Rows.Count > 0) { for(int i = 0; i < result.Rows.Count; i++) { DataRow user = result.Rows[i]; Approvals student = new Approvals(user); appliedStudents.Add(new AcceptDenyViewModel(student)); } } }