private void ParseRuns(XmlNode inp) { foreach (XmlNode xn in inp.ChildNodes) { Petrolog_Wellheader tmp = new Petrolog_Wellheader(xn); this.Runs.Add(tmp); } }
/// <summary> /// Creats a deep copy of this wellheader /// </summary> /// <returns></returns> public Petrolog_Wellheader Clone(XmlDocument doc) { Petrolog_Wellheader tmp = new Petrolog_Wellheader(); tmp.m_HeaderDocument = doc; tmp.Version = this.Version; foreach (Petrolog_Constant c in General) { tmp.General.Add(c.Clone()); } foreach (Petrolog_Constant c in Remarks) { tmp.Remarks.Add(c.Clone()); } foreach (Petrolog_Wellheader w in Runs) { tmp.Runs.Add(w.Clone(doc)); } return(tmp); }