WebBrowser GetCurrentBrowser()
{
var selectedTab = Tabs.SelectedTab;
if (selectedTab == null)
return null;
var browserName = "browser_" + selectedTab.Tag;
if (selectedTab.Controls.ContainsKey(browserName))
{
return (WebBrowser)selectedTab.Controls[browserName];
}
return null;
}