예제 #1
0
 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 = "";
     }
 }
예제 #2
0
 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));
 }