private void uiBrowserTabControl_SelectedIndexChange(object sender, EventArgs e) { //TODO: had a play in ChromeTabControl. //Not had time to fully inspect ramifications of this event. //It's not quite 100%, so needs work. //Problems arise when drag-moving tab. addressBar.Text = CurrentTab?.Browser.Address; //UpdateForwardAndBackButtons?.Invoke(this, EventArgs.Empty); UpdateNavigation?.Invoke(this, new NavigationalEventArgs(CurrentTab.CanGoForward, CurrentTab.CanGoBack)); }
private void CurrentBrowser_LoadingStateChanged(object sender, LoadingStateChangedEventArgs e) { UpdateNavigation?.Invoke(this, new NavigationalEventArgs(CurrentTab.CanGoForward, CurrentTab.CanGoBack)); }