private void OnDblClickBuildListItem(object sender, MouseButtonEventArgs e) { var Elem = sender as FrameworkElement; if (Elem == null) { return; } BuildJob Job = Elem.DataContext as BuildJob; if (Job == null) { return; } // Switch the Startup Project and the build config and platform to match this Job if (Job.Project != null) { IsBusy = true; var Project = Job.Project.GetProjectSlow(); if (Project != null) { // Switch to this project var ProjectHierarchy = Utils.ProjectToHierarchyObject(Project); UnrealVSPackage.Instance.SolutionBuildManager.set_StartupProject(ProjectHierarchy); // Switch the build config Utils.SetActiveSolutionConfiguration(Job.Config, Job.Platform); } IsBusy = false; } }