private void Gestion_Enter(object sender, EventArgs e) { listBox1.Items.Clear(); foreach (Unit unit in CONVERTER.GetAllUnits()) { listBox1.Items.Add(unit); } }
private void BTN_Effacer_Valeur_Click(object sender, EventArgs e) { // Enlèves tous les unités lorsque le l'utilisateur appuie sur le flash button // foreach (Unit unit in CONVERTER.GetAllUnits()) { LBX_Start.Items.Remove(unit); LBX_End.Items.Remove(unit); } InitialiserInterface(); }
private void flashButton2_Click(object sender, EventArgs e) { Retirer_Unité(); listBox1.Items.Clear(); foreach (Unit unit in CONVERTER.GetAllUnits()) { listBox1.Items.Add(unit); } listBox1.SelectedIndex = 0; listBox1.Focus(); }
private void Gestion_Load(object sender, EventArgs e) { foreach (Unit unit in CONVERTER.GetAllUnits()) { listBox1.Items.Add(unit); } listBox1.SelectedIndex = 0; ToolTip toolTip1 = new ToolTip(); toolTip1.SetToolTip(this.flashButton1, "Ajouter une Unité"); toolTip1.SetToolTip(this.flashButton2, "Retirer une Unité"); toolTip1.SetToolTip(this.flashButton4, "Modifier une Unité"); toolTip1.SetToolTip(this.flashButton3, "Retour"); toolTip1.SetToolTip(this.flashButton5, "Raccourcis de clavier"); }