public PostAdd CreatePostAdd() { XmlNode newNode = Node.OwnerDocument.CreateElement("PostAdd", NSMgr.LookupNamespace("ia")); PostAdd = new PostAdd(newNode, NSMgr); Node.AppendChild(newNode); return(PostAdd); }
internal PostAdd(PostAdd MigrationPostAdd, XmlNode PostAddNode, XmlNamespaceManager NSMgr) { this.Node = PostAddNode; this.NSMgr = NSMgr; this.AddLine1 = MigrationPostAdd.AddLine1; this.AddLine2 = MigrationPostAdd.AddLine2; this.AddLine3 = MigrationPostAdd.AddLine3; this.AddLine4 = MigrationPostAdd.AddLine4; }
internal LearnerContact(XmlNode Node, XmlNamespaceManager NSMgr) { this.Node = Node; this.NSMgr = NSMgr; if (LocType == 1 && ContType == 2) { XmlNode postAddNode = Node.SelectSingleNode("./ia:PostAdd", NSMgr); if (postAddNode != null) { PostAdd = new PostAdd(postAddNode, NSMgr); } } }
internal LearnerContact(LearnerContact MigrationLearnerContact, XmlNode Node, XmlNamespaceManager NSMgr) { this.Node = Node; this.NSMgr = NSMgr; this.LocType = MigrationLearnerContact.LocType; this.ContType = MigrationLearnerContact.ContType; this.Email = MigrationLearnerContact.Email; this.TelNumber = MigrationLearnerContact.TelNumber; this.PostCode = MigrationLearnerContact.PostCode; if (MigrationLearnerContact.PostAdd != null) { XmlNode newNode = Node.OwnerDocument.CreateElement("PostAdd", NSMgr.LookupNamespace("ia")); this.PostAdd = new PostAdd(MigrationLearnerContact.PostAdd, newNode, NSMgr); Node.AppendChild(newNode); } }
public void Delete(PostAdd postAdd) { Node.RemoveChild(postAdd.Node); this.PostAdd = null; }