public AddOrUpdaetStudent(StudentDM student = null) { InitializeComponent(); if (student != null) { this.studentModel = student; BindView(); } cobFacultet.Items.Clear(); foreach (var item in GloblMain.dbo.Facultets.ToList()) { cobFacultet.Items.Add(item.Name); } }
public PaymentStudent(StudentDM student) { if (student == null) { MessageBox.Show("Информация о студенте не найдена ");; } else { InitializeComponent(); this.StudentDM = student; BindView(); tbValuta.Items.Clear(); foreach (var item in GloblMain.dbo.Valutas.ToList()) { tbValuta.Items.Add(item.Name); } } }
private static Student CreateStudent(StudentDM Value, int Index) { return(new Student { Address1 = Value.Address1.Span[Index], Address2 = Value.Address2.Span[Index], Contact1 = Value.Contact1.Span[Index], Contact2 = Value.Contact2.Span[Index], Country = Value.Country.Span[Index], DateofBirth = Value.DateofBirth.Span[Index], DateOfCompletion = Value.DateOfCompletion.Span[Index], DateOfEntry = Value.DateOfEntry.Span[Index], DepartmentId = Value.DepartmentId.Span[Index], Disability = Value.Disability.Span[Index], //EmergencyContact.Span[result.Index] = student.EmergencyContact; EnrollmentOption = Value.EnrollmentOption.Span[Index], Gender = Value.Gender.Span[Index], HomeTown = Value.HomeTown.Span[Index], IndexNumber = Value.IndexNumber.Span[Index], Level = Value.Level.Span[Index], MaritalStatus = Value.MaritalStatus.Span[Index], Othernames = Value.Othernames.Span[Index], PamentOption = Value.PamentOption.Span[Index], PersonalEmail = Value.PersonalEmail.Span[Index], ProgramOfStudy = Value.ProgramOfStudy.Span[Index], ProgramStatus = Value.ProgramStatus.Span[Index], ReferenceNumber = Value.ReferenceNumber.Span[Index], Region = Value.Region.Span[Index], RegistrationStatus = Value.RegistrationStatus.Span[Index], ResidentialStatus = Value.ResidentialStatus.Span[Index], Specialization = Value.Specialization.Span[Index], State = Value.State.Span[Index], StudentType = Value.StudentType.Span[Index], Surname = Value.Surname.Span[Index], Title = Value.Title.Span[Index], UniversityEmail = Value.UniversityEmail.Span[Index] }); }
public Task AddStudent(StudentDM student) { throw new NotImplementedException(); }