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

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