private void button1_Click(object sender, RoutedEventArgs e) { MainForm.tcMain.NewTab(GetSavedTabsLocation()); MainForm.Focus(); } }