private void bindingSourceDept_CurrentItemChanged(object sender, EventArgs e) { if (bindingSourceDept.Current != null) { _RecordedDept = (BO_Departement)bindingSourceDept.Current; this.FillingDataGridView(_RecordedDept.Deptno); } }
public Form1() { InitializeComponent(); label4.Text = string.Empty; _RecordedDept = new BO_Departement(); _RecordedEmploye = new BO_Employe(); this.FillingComboBox(); if (bindingSourceDept.Current != null) { _RecordedDept = (BO_Departement)bindingSourceDept.Current; } this.FillingDataGridView(_RecordedDept.Deptno); }
private void buttonGetAllDept_Click(object sender, EventArgs e) { _RecordedDept = new BO_Departement(); FillingDataGridView(_RecordedDept.Deptno); }