//--------------------------------------------------------------------- private void m_btnOk_Click(object sender, EventArgs e) { CAffectationsEtapeWorkflow aff = new CAffectationsEtapeWorkflow(); foreach (IAffectableAEtape affectable in m_panelAffectations.ListeAffectables) { aff.AddAffectable(affectable); } m_etape.BeginEdit(); m_etape.Affectations = aff; CResultAErreur result = m_etape.CommitEdit(); if (!result) { m_etape.CancelEdit(); CFormAlerte.Afficher(result.Erreur); return; } DialogResult = DialogResult.OK; Close(); }