private void SolutionManager_NuGetProjectRenamed(object sender, NuGetProjectEventArgs e) { var project = SolutionManager.GetDTEProject(SolutionManager.GetNuGetProjectSafeName(e.NuGetProject)); var windowFrame = FindExistingWindowFrame(project); if (windowFrame != null) { windowFrame.SetProperty((int)__VSFPROPID.VSFPROPID_OwnerCaption, String.Format( CultureInfo.CurrentCulture, Resx.Label_NuGetWindowCaption, project.Name)); } }
private void SolutionManager_NuGetProjectRenamed(object sender, NuGetProjectEventArgs e) { ThreadHelper.ThrowIfNotOnUIThread(); var project = SolutionManager.GetVsProjectAdapter( SolutionManager.GetNuGetProjectSafeName(e.NuGetProject)); var windowFrame = FindExistingWindowFrame(project.Project); if (windowFrame != null) { windowFrame.SetProperty((int)__VSFPROPID.VSFPROPID_OwnerCaption, string.Format( CultureInfo.CurrentCulture, Resx.Label_NuGetWindowCaption, project.ProjectName)); } }