void _samplesTreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
var filename = e.Node.Tag as string;
if (filename == null ||
!File.Exists(filename))
{
return;
}
//------------------------------------
//load file
_updateLock = true;
Application.UseWaitCursor = true;
//set root folder of current html panel
this.htmlRootFolder = Path.GetDirectoryName(filename);
_htmlPanel.Text = File.ReadAllText(filename);
Application.UseWaitCursor = false;
_updateLock = false;
UpdateWebBrowserHtml();
}