This commit is contained in:
@@ -169,6 +169,10 @@ namespace VEPROMS.CSLA.Library
|
||||
// Console.WriteLine("{0}\t\"Total\"", TimeSpan.FromTicks(total).TotalMilliseconds);
|
||||
//}
|
||||
public virtual void LoadChildren()
|
||||
{
|
||||
LoadChildren(true);
|
||||
}
|
||||
public virtual void LoadChildren(bool allParts)
|
||||
{
|
||||
if (!_ChildrenLoaded)
|
||||
{
|
||||
@@ -176,11 +180,15 @@ namespace VEPROMS.CSLA.Library
|
||||
//tReset();
|
||||
DateTime tStart = DateTime.Now;
|
||||
OnLoadingChildrenSQL(this, new VETreeNodeEventArgs());
|
||||
IList ol = _VEObject.GetChildren();
|
||||
OnLoadingChildrenMax(this, new VETreeNodeEventArgs(ol.Count));
|
||||
IList ol;
|
||||
if(_VEObject.GetType().Name == "StepInfo" ||_VEObject.GetType().Name == "SectionInfo" ||_VEObject.GetType().Name == "ItemInfo" )
|
||||
ol = ((ItemInfo)_VEObject).GetChildren(allParts);
|
||||
else
|
||||
ol = _VEObject.GetChildren();
|
||||
//tNext("GetChildren");
|
||||
if (ol != null)
|
||||
{
|
||||
OnLoadingChildrenMax(this, new VETreeNodeEventArgs(ol.Count));
|
||||
this.TreeView.BeginUpdate();
|
||||
int icnt = 0;
|
||||
foreach (IVEDrillDownReadOnly o in ol)
|
||||
|
Reference in New Issue
Block a user