private void ListBoxSecteur_SelectedIndexChanged(object sender, EventArgs e)
 {
     SQLPort.InitializeComboBoxAllSQLPortBySQLSecteur(comboBoxDepart, mySqlConnection, (SQLSecteur)((ListBox)sender).SelectedItem);
     if (comboBoxDepart.Items.Count > 0)
     {
         comboBoxDepart.SelectedIndex = 0;
     }
     else
     {
         comboBoxDepart.Text = "";
     }
 }
 private void FormAjouterUneLiaison_Load(object sender, EventArgs e)
 {
     SQLSecteur.InitializeListBoxAllSQLSecteur(listBoxSecteur, mySqlConnection);
     SQLPort.InitializeComboBoxAllSQLPort(comboBoxArrivee, mySqlConnection);
 }
示例#3
0
 public override string ToString()
 {
     return(SQLPort.GetNomByNoport(mySqlConnection, noport_depart) + "-" + SQLPort.GetNomByNoport(mySqlConnection, noport_arrivee));
 }