private void OnUpdateHtmlTimerTick(object state)
{
BeginInvoke(new MethodInvoker(() =>
{
_updateLock = true;
try
{
_htmlPanel.Text = _htmlEditor.Text;
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "Failed to render HTML");
}
//SyntaxHilight.AddColoredText(_htmlEditor.Text, _htmlEditor);
UpdateWebBrowserHtml();
_updateLock = false;
}));
}