Esempio n. 1
0
 public string DescriptionDialog(string strOld, Form parentForm, string RootDir, bool bImageSupport, int nFont)
 {
     StringBuilder sb = new StringBuilder();
     VisualEditEx EditBox = new VisualEditEx(strOld, sb, m_Conn, parentForm, RootDir, bImageSupport, nFont);
     if (EditBox.ShowDialog() != DialogResult.OK)
     {
         sb.Remove(0, sb.Length);
         sb.Append(strOld);
     }
     return sb.ToString().TrimEnd(new char[] { ' ' }) ;
 }
Esempio n. 2
0
        public string DescriptionDialog(string strOld, Form parentForm, string RootDir, bool bImageSupport, int nFont)
        {
            StringBuilder sb      = new StringBuilder();
            VisualEditEx  EditBox = new VisualEditEx(strOld, sb, m_Conn, parentForm, RootDir, bImageSupport, nFont);

            if (EditBox.ShowDialog() != DialogResult.OK)
            {
                sb.Remove(0, sb.Length);
                sb.Append(strOld);
            }
            return(sb.ToString().TrimEnd(new char[] { ' ' }));
        }