private void CommentAdd_Click(object sender, EventArgs e)
{
Commentary.Panel2.Enabled = true;
try
{
disable_afterselect = true;
if(commentingupon!=null)
{
Comments.SelectedNode = Comments.SelectedNode.Nodes.Add("*** new reply ***");
}
else
{
Comments.SelectedNode = Comments.Nodes.Add("*** new comment ***");
}
TurnOnCommentEditing();
}
finally
{
disable_afterselect = false;
}
CommentBody.Document.Body.InnerHtml = "";
CommentBodyRaw.Text = "";
CommentAuthor.Text = defaultcreator;
CommentDate.Text = "";
CommentBody.Focus();
CommentBody.Document.ActiveElement.Focus();
}