LayoutFarm.Demo.DemoForm.OnUpdateHtmlTimerTick C# (CSharp) Method

OnUpdateHtmlTimerTick() private method

Update the html renderer with text from html editor.
private OnUpdateHtmlTimerTick ( object state ) : void
state object
return void
        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;
            }));
        }