private void Ext_Link_Click() { FormWikiExternalLink FormWEL = new FormWikiExternalLink(); FormWEL.ShowDialog(); int tempStart = textContent.SelectionStart; if (FormWEL.DialogResult != DialogResult.OK) { textContent.Paste("<a href=\"\"></a>"); textContent.SelectionStart = tempStart + 11; textContent.SelectionLength = 0; return; } textContent.Paste("<a href=\"" + FormWEL.URL + "\">" + FormWEL.DisplayText + "</a>"); textContent.Focus(); //RefreshHtml(); }
private void Ext_Link_Click() { FormWikiExternalLink FormWEL=new FormWikiExternalLink(); FormWEL.ShowDialog(); int tempStart=textContent.SelectionStart; if(FormWEL.DialogResult!=DialogResult.OK) { textContent.Paste("<a href=\"\"></a>"); textContent.SelectionStart=tempStart+11; textContent.SelectionLength=0; return; } textContent.Paste("<a href=\""+FormWEL.URL+"\">"+FormWEL.DisplayText+"</a>"); textContent.Focus(); //RefreshHtml(); }