/// <summary> /// Creates a time context instruction. /// </summary> /// <param name="xn">The XML repersentation of the instruction to be checked</param> /// <param name="con">The current context object</param> static TimeContext CreateTime(XmlNode xn, Context con) { string expect = XmlFiler.getAttribute(xn, "expect"); TimeContext timeIt = new TimeContext(Convert.ToInt32(expect)); string desc = XmlFiler.getAttribute(xn, "desc"); timeIt.Decsription = desc; /* foreach (XmlNode xnChild in xn.ChildNodes) * { * InterpretChild(xnChild, timeIt); * } */ timeIt.ModelNode = con.ModelNode; AddInstruction(xn, timeIt, con); return(timeIt); }
/// <summary> /// Creates a time context instruction. /// </summary> /// <param name="xn">The XML repersentation of the instruction to be checked</param> /// <param name="con">The current context object</param> static TimeContext CreateTime(XmlNode xn, Context con) { string expect = XmlFiler.getAttribute(xn, "expect"); TimeContext timeIt = new TimeContext(Convert.ToInt32(expect)); string desc = XmlFiler.getAttribute(xn, "desc"); timeIt.Decsription = desc; /* foreach (XmlNode xnChild in xn.ChildNodes) { InterpretChild(xnChild, timeIt); } */ timeIt.ModelNode = con.ModelNode; AddInstruction(xn, timeIt, con); return timeIt; }