// Gestion du chargement des bindings private void Prevision_Load(object sender, EventArgs e) { projetForfaitBindingSource.DataSource = DaoProjet.GetAllProject(); qualificationBindingSource.DataSource = DaoProjet.GetAllQualification(); comboBoxProjet.SelectedItem = null; groupBoxPrevision.Visible = false; }
// On lance le databinding au chargement private void Form1_Load(object sender, EventArgs e) { projetForfaitBindingSource.DataSource = DaoProjet.GetAllProject(); clientBindingSource.DataSource = DaoProjet.GetAllclients(); collaborateurBindingSource.DataSource = DaoProjet.GetAllCollaborateurs(); comboBoxNomProjet.SelectedItem = null; groupBoxProjet.Visible = false; groupBoxForfait.Visible = false; }