Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

FIX: Why do I see non-folders in Windows Explorer's folder view (left tree)

 
Subscribe to the RSS feed for this forum  Forum Index -> EZNamespaceExtensions.Net
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Sat Apr 18, 2009 4:20 am    Post subject: FIX: Why do I see non-folders in Windows Explorer's folder view (left tree)

This occurs if the implementation of the NSEFolder.GetChildren method is incorrect. The implementation should be along following lines:

Code:
ArrayList ret = new ArrayList();

// Add folders (NSEFolder-derived objects) only if asked for
if ((e.ChildrenType & ChildrenType.Folders) != 0)
{
  ret.Add(folderItem1);
  ret.Add(folderItem2);
  ...
  ...
}

// Add non-folders (NSEItem-derived objects) only if asked for
if ((e.ChildrenType & ChildrenType.NonFolders) != 0)
{
  ret.Add(nonFolderItem1);
  ret.Add(nonFolderItem2);
  ...
  ...
}
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensions.Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group