Added timing logic

Changed menu text
Support Procedure and ProcedureInfo
Added ChangeBar support
Fixed Ancestor Inheritance
This commit is contained in:
Rich
2010-05-25 16:09:40 +00:00
parent f2c571b113
commit f21a49d75e
5 changed files with 37 additions and 5 deletions

View File

@@ -56,7 +56,8 @@ namespace VEPROMS.CSLA.Library
if (args.AncestorLookup || ParentLookup)
{
string retval;
ProcedureInfo proc = _Procedure.MyProcedureInfo;
//ProcedureInfo proc = _Procedure.MyProcedureInfo;
ProcedureInfo proc = _Procedure != null ? _Procedure.MyProcedureInfo : _ProcedureInfo;
while (proc.ActiveParent.GetType() == typeof(ProcedureInfo))
{
retval = proc.ProcedureConfig.GetValue(args.Group, args.Item);
@@ -96,6 +97,8 @@ namespace VEPROMS.CSLA.Library
string xml = procedureInfo.MyContent.Config;
if (xml == string.Empty) xml = "<config/>";
_Xp = new XMLProperties(xml);
_Xp.AncestorLookup = true;
if (procedureInfo.ActiveParent != null) _Xp.LookInAncestor += new XMLPropertiesEvent(Xp_LookInAncestorFolder);
}
public ProcedureConfig(string xml)
{