private void cboAveniVillage_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cboAveniVillage.Text != "")
     {
         avenueVill = new AvenueVillageServeur();
         avenueVill = (AvenueVillageServeur)cboAveniVillage.SelectedItem;
         lblIdAvenueVillage.Text          = avenueVill.Id.ToString();
         cboIdQuartierLoc.Text            = Factory1.Instance.GetQuartierLocalite(avenueVill.Id_quartierLocalite).ToString();
         txtDesignationAvenueVillage.Text = Convert.ToString(avenueVill.Designation);
         lblIdQuartierLoc.Text            = Convert.ToString(avenueVill.Id_quartierLocalite);
     }
 }
Beispiel #2
0
 private void dgRecherche_SelectionChanged(object sender, EventArgs e)
 {
     try
     {
         if (dgRecherche.SelectedRows.Count > 0)
         {
             avenueVill = (AvenueVillageServeur)dgRecherche.SelectedRows[0].DataBoundItem;
             lblIdAvenueVillage.Text          = avenueVill.Id.ToString();
             cboIdQuartierLoc.Text            = Factory1.Instance.GetQuartierLocalite(avenueVill.Id_quartierLocalite).Designation;
             txtDesignationAvenueVillage.Text = Convert.ToString(avenueVill.Designation);
             lblIdQuartierLoc.Text            = Convert.ToString(avenueVill.Id_quartierLocalite);
         }
     }
     catch (Exception) { MessageBox.Show("Erreur dans la zone d'affichage de rcherche", "Erreur d'affichage de rcherche"); }
 }