private void dataGridEmploye_SelectionChanged(object sender, EventArgs e)
 {
     btnSupprimer.Enabled           = fonction.SiActiveButtonPourPlusieursSelections(dataGridEmploye);
     btnEditerEmploye.Enabled       = fonction.SiActiveButtonPourUneSelection(dataGridEmploye);
     btnEditerCompteEmploye.Enabled = fonction.SiActiveButtonPourUneSelection(dataGridEmploye);
     btnInformationEmploye.Enabled  = fonction.SiActiveButtonPourUneSelection(dataGridEmploye);
 }
Exemple #2
0
 private void dataGridPays_SelectionChanged(object sender, EventArgs e)
 {
     btnSupprimer.Enabled   = fonction.SiActiveButtonPourPlusieursSelections(dataGridPays);
     btnModifier.Enabled    = fonction.SiActiveButtonPourUneSelection(dataGridPays);
     btnInformation.Enabled = fonction.SiActiveButtonPourUneSelection(dataGridPays);
 }