private void FormAddLevelEducation_Load(object sender, EventArgs e) { if (level == null) { level = new TEducationLevel(); } bsLevelEducation.DataSource = level; }
public void LoadEducationLevel() { string error = string.Empty; this.FormOfEducations = TEducationLevel.LoadData(out error); if (!string.IsNullOrEmpty(error)) { MessageBox.Show("Грешка при зареждане от базата данни"); return; } bsLevelEducation.DataSource = FormOfEducations; }
public void LoadEducationLvl() { string err = string.Empty; List <TEducationLevel> el = new List <TEducationLevel>(); el = TEducationLevel.LoadData(out err); cbEEducationLvl.DisplayMember = "LevelName"; cbEEducationLvl.ValueMember = "ID"; cbEEducationLvl.DataSource = el; if (student != null && student.EducationLevel != null && student.EducationLevel.ID > 0) { cbEEducationLvl.SelectedValue = student.EducationLevel.ID; } }
public FormAddLevelEducation(TEducationLevel c) { InitializeComponent(); level = c; }