private void CmdAdd_Click(object sender, EventArgs e) { if (txtNomRack.TextLength != 0 && numNbU.Value > 0) { GestionRack.SetRack(txtNomRack.Text, (int)numNbU.Value); } this.Close(); this.Dispose(); }
private void CmdAnnuler_Click(object sender, EventArgs e) { GestionRack.SetRack("", 0); Close(); }