private void FirstInstallToolsActionCompleted(ActionBase sender) { InstallPVToolsAction action = (InstallPVToolsAction)sender; MainWindowCommandInterface.Invoke(delegate { // Try to select the VM on which the PV tools are to be installed if (MainWindowCommandInterface.SelectObjectInTree(action.VM)) { // Switch to the VM's console tab MainWindowCommandInterface.SwitchToTab(MainWindow.Tab.Console); } }); }