示例#1
0
文件: Class1.cs 项目: viticm/pap2
 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[] { ' ' }) ;
 }
示例#2
0
文件: Class1.cs 项目: uvbs/FullSource
        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[] { ' ' }));
        }