void gli_Click(object sender, NavigationLogEventArgs e) { tcMain.ReOpenTab(e.NavigationLog); btnUndoClose.IsEnabled = tcMain.ReopenableTabs.Any(); }