Exemple #1
0
 public override void CopyState(object source)
 {
     if (source is QDocumentCR)
     {
         QDocumentCR cr  = (QDocumentCR)source;
         XmlDocument doc = new XmlDocument();
         doc.LoadXml(cr.Serialize());
         Deserialize(doc.DocumentElement);
     }
 }
Exemple #2
0
        public override object Clone()
        {
            QDocumentCR retval = new QDocumentCR()
            {
                CRName  = this.crName,
                Version = this.version,
                //ChangeRequestType = this.ChangeRequestType,
                Parent = this.Parent
            };

            foreach (QChangeRequest child in this.Children)
            {
                retval.Children.Add((QChangeRequest)child.Clone());
            }
            return(retval);
        }