Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Nested Solution Folder Parent?
 

Nested Solution Folder Parent?

I am creating an unbound reference.
In my IsEnabledFor method I am trying to see if the current item is a SolutionFolder, and if so, if its parent is also a SolutionFolder with a specified name.
For some reason, I can get to the logical parent of the current solution node, as it is in Solution Explorer.
I can easily test if the target is a SolutionFolder, but the problem is testing its parent.

Project project = (Project)target. - OK
project.ParentProjectItem - yields a ProjectItem for the same node
project.ParentProjectItem.Object - yields the same object
(SolutionFolder)(project.Object) - yields the solution folder interface
(SolutionFolder)(project.Object).Parent - yields the Project object again

Does anyone know how to get to the parent node?
Jezz Santos  Sunday, November 06, 2005 7:45 PM

project.ParentProjectItem.ContainingProject ;)

kzu  Monday, November 14, 2005 2:53 AM

project.ParentProjectItem.ContainingProject ;)

kzu  Monday, November 14, 2005 2:53 AM

You can use google to search for other answers

Custom Search

More Threads

• How do i create New Guidance Package from existing one?
• Problems installing a Guidance Package
• Custom Directory Structure through GAT
• Making VS read from a txt file onto a tree list?
• Error In GAT
• Custom developed Guidance Automation Package not listed under VisualStudio template
• Getting the project object after Add New Project?
• Why does my SmartClientApplication can only be resized like a mac?
• DAL
• Adding a recipe to a GAT package to create a view/presenter as in SCSF