コード例 #1
0
 private void ParseRuns(XmlNode inp)
 {
     foreach (XmlNode xn in inp.ChildNodes)
     {
         Petrolog_Wellheader tmp = new Petrolog_Wellheader(xn);
         this.Runs.Add(tmp);
     }
 }
コード例 #2
0
        /// <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);
        }