//----------------------------------------------------------------- private void m_menuCommentaires_Click(object sender, EventArgs e) { if (Selection.Count == 1) { CODEQBase ob = Selection[0] as CODEQBase; if (ob != null) { ob.Commentaires = CFormCommentaires.GetTexte(ob.Commentaires); } } }
public static string GetTexte(string strText) { CFormCommentaires form = new CFormCommentaires(); form.m_txtCommentaire.Text = strText; string strResult = strText; if (form.ShowDialog() == DialogResult.OK) { strResult = form.m_txtCommentaire.Text; } form.Dispose(); return(strResult); }