public static string DoModal(string strTitle, string strCurrent) { EditRichTextForm frm = new EditRichTextForm(strTitle, strCurrent); DialogResult res = frm.ShowDialog(); if (res == DialogResult.Cancel) return null; return frm.textBox1.Text; }
static public string DoModal(string strTitle, string strCurrent) { EditRichTextForm frm = new EditRichTextForm(strTitle, strCurrent); DialogResult res = frm.ShowDialog(); if (res == DialogResult.Cancel) { return(null); } return(frm.textBox1.Text); }