Example #1
0
 //-----------------------------------------------------------------
 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);
         }
     }
 }
Example #2
0
        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);
        }