private void setCurrentTab(Tab tab) { currentTab = tab; }
//handles tab switching private void tabsContainer_Selected(object sender, TabControlEventArgs e) { currentTab = tabs.ElementAt(tabsContainer.SelectedIndex); //set current tab to correct object urlBox.Text = currentTab.getUri(); //update url box }