void ProjectItemsEvents_ItemRemoved(ProjectItem ProjectItem) { Project pro = HelperFunctions.GetSelectedQtProject(VSPackage.dte); if (pro == null) { return; } QtProject qtPro = QtProject.Create(pro); qtPro.RemoveGeneratedFiles(ProjectItem.Name); }
void ProjectItemsEvents_ItemRenamed(ProjectItem ProjectItem, string OldName) { if (OldName == null) { return; } Project pro = HelperFunctions.GetSelectedQtProject(VSPackage.dte); if (pro == null) { return; } QtProject qtPro = QtProject.Create(pro); qtPro.RemoveGeneratedFiles(OldName); ProjectItemsEvents_ItemAdded(ProjectItem); }