private void btnModifier_Click(object sender, EventArgs e) { PasserelleSuiviA.setCabinetAModifier((Cabinet)dgvCabinet.SelectedRows[0].DataBoundItem); ModifierCabinet MC = new ModifierCabinet(); MC.Show(); }
private void btnModifier_Click(object sender, EventArgs e) { if (cboxCabinet.SelectedItem != null) { PasserelleSuiviA.setCabinetAModifier((Cabinet)cboxCabinet.SelectedItem); ModifierCabinet MC = new ModifierCabinet(); MC.Show(); } }