public ApplyType(pApplyType pAT) : base(pAT.Time) { fromDM = pAT.FromDM; toDM = pAT.ToDM; if (null != pAT.EngramRange) this.engramRange = new EngramRange(pAT.EngramRange); }
public override pApplyType pGetApply() { string fromDM = "Unknown DM"; string toDM = "Unknown DM"; int time; pEngramRange engramRange = null; pApplyType returnValue; try { reader.Read(); if ("EngramRange" == reader.Name) engramRange = pGetEngramRange(); fromDM = pGetString(); toDM = pGetString(); time = pGetInt(); returnValue = new pApplyType(engramRange, fromDM, toDM, time); return returnValue; } catch (SystemException e) { throw new ApplicationException("Could not read Apply element."); } }