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[] { ' ' }) ; }
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[] { ' ' })); }