public override void CopyState(object source) { if (source is QConfigureDUIStackCR) { QConfigureDUIStackCR cr = (QConfigureDUIStackCR)source; XmlDocument doc = new XmlDocument(); doc.LoadXml(cr.Serialize()); Deserialize(doc.DocumentElement); } }
public override object Clone() { QConfigureDUIStackCR retval = new QConfigureDUIStackCR() { Name = this.Name, RelatedDBObject = this.relatedDBObject, InstallationCode = this.installationCode, Parent = this.Parent, DatasourceName = this.datasourceName, DynamicUIName = this.dynamicUIName, TableName = this.tableName, DatabaseName = this.databaseName }; foreach (QChangeRequest child in this.Children) { retval.Children.Add((QChangeRequest)child.Clone()); } return(retval); }