Replace GetType().Name

This commit is contained in:
Rich
2008-03-27 19:35:47 +00:00
parent f2764894ba
commit 7caa952bc3
2 changed files with 27 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ namespace VEPROMS.CSLA.Library
DateTime tStart = DateTime.Now;
OnLoadingChildrenSQL(this, new VETreeNodeEventArgs());
IList ol;
if(_VEObject.GetType().Name == "StepInfo" ||_VEObject.GetType().Name == "SectionInfo" ||_VEObject.GetType().Name == "ItemInfo" )
if(_VEObject.GetType() == typeof(StepInfo) ||_VEObject.GetType() == typeof(SectionInfo) ||_VEObject.GetType() == typeof(ItemInfo) )
ol = ((ItemInfo)_VEObject).GetChildren(allParts);
else
ol = _VEObject.GetChildren();