Пример #1
0
 public override void CopyState(object source)
 {
     if (source is QGroupCR)
     {
         QGroupCR    cr  = (QGroupCR)source;
         XmlDocument doc = new XmlDocument();
         doc.LoadXml(cr.Serialize());
         Deserialize(doc.DocumentElement);
     }
 }
Пример #2
0
        public override object Clone()
        {
            QGroupCR retval = new QGroupCR()
            {
                Name   = this.name,
                Parent = this.Parent,
                Id     = this.Id
            };

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