public BrowserControlWindowManager(TabControl tabControl, Form errorForm)
 {
     _errorForm = errorForm;
     _tabControl = tabControl;
     _tabControl.InvokeIfRequired(tc => (tc as TabControl).SelectedIndexChanged += new EventHandler(tabControl_SelectedIndexChanged));
 }