This commit is contained in:
Rich
2008-01-08 16:44:49 +00:00
parent 621516d3ca
commit 04336831c3
2 changed files with 27 additions and 2 deletions

View File

@@ -466,6 +466,23 @@ namespace VEPROMS.CSLA.Library
return _PartInfoList[0].GetChildren();
return _PartInfoList;
}
public System.Collections.IList GetChildren(bool allParts)
{
_PartInfoList = this.MyContent.ContentParts;
if (allParts)
{
if (_PartInfoList.Count == 1 && (_PartInfoList[0].ToString() == "Sections" || _PartInfoList[0].ToString() == "Steps"))
return _PartInfoList[0].GetChildren();
return _PartInfoList;
}
else // Steps and Sections only
{
for(int i = 0;i<_PartInfoList.Count;i++)
if(_PartInfoList[i].ToString() == "Sections" || _PartInfoList[i].ToString() == "Steps")
return _PartInfoList[i].GetChildren();
return null;
}
}
//public bool ChildrenAreLoaded
//{
// get { return _PartInfoList == null; }