private void FormAddEvaluation_Load(object sender, EventArgs e) { if (evaluation == null) { evaluation = new TEvaluation(); } bsEvaluation.DataSource = evaluation; }
private void FormAddEvaluationSt_Lec_Load(object sender, EventArgs e) { if (evaluation == null) { evaluation = new TEvaluation(); } bsEvaluation.DataSource = evaluation; this.LoadSTudentFirstName(); }
public void LoadEvaluation() { string error = string.Empty; this.Evaluations = TEvaluation.LoadData(out error); if (!string.IsNullOrEmpty(error)) { MessageBox.Show("Грешка при зареждане от базата данни"); return; } bsEvaluations.DataSource = Evaluations; }
private void FormAddEvalutionExam_Load(object sender, EventArgs e) { this.LoadSubject(); this.LoadCourse(); this.LoadStudent(); this.LoadLecture(); this.LoadSpeciality(); if (evaluation == null) { evaluation = new TEvaluation(); } bsEvaluation.DataSource = evaluation; }
public void LoadStudent() { List <TEvaluation> students = new List <TEvaluation>(); string error = string.Empty; students = TEvaluation.LoadData(out error); if (!string.IsNullOrEmpty(error)) { MessageBox.Show("Грешка при зареждане на студент"); return; } cBoxStudent.DisplayMember = "StudentName"; cBoxStudent.ValueMember = "ID"; cBoxStudent.DataSource = students; }
public void LoadLecture() { List <TEvaluation> lectures = new List <TEvaluation>(); string error = string.Empty; lectures = TEvaluation.LoadData(out error); if (!string.IsNullOrEmpty(error)) { MessageBox.Show("Грешка при зареждане на лектор"); return; } cBoxLecture.DisplayMember = "LectureName"; cBoxLecture.ValueMember = "ID"; cBoxLecture.DataSource = lectures; }
public FormAddEvaluation(TEvaluation e) { InitializeComponent(); evaluation = e; }