private void MainWindow_Activated(object sender, EventArgs e) { if (CurrentWorkspace != null) { CurrentWorkspace.Activate(); } }