public void LoadStudent() { string error = string.Empty; this.Students = TStudentSpeciality.LoadData(out error); if (!string.IsNullOrEmpty(error)) { MessageBox.Show("Грешка при зареждане от базата данни"); return; } bsStudents.DataSource = Students; }
private void FormAddRegistrationStudent_Load(object sender, EventArgs e) { if (student == null) { student = new TStudentSpeciality(); } bsStudent.DataSource = student.Student; if (!string.IsNullOrEmpty(student.Student.Image)) { pBStudentPicture.Image = Image.FromFile(student.Student.Image); return; } LoadSpeciality(); LoadCourses(); LoadEducationLvl(); LoadFormOfEdu(); LoadFN(); }
public FormSelectCourse(TStudentSpeciality st) { InitializeComponent(); StudenSpec = st; }
public FormAddRegistrationStudent(TStudentSpeciality s) { InitializeComponent(); student = s; }