public override void CopyState(object source) { if (source is QPoolField) { QPoolField cr = (QPoolField)source; XmlDocument doc = new XmlDocument(); doc.LoadXml(cr.Serialize()); Deserialize(doc.DocumentElement); } }
public void ConfigureDatasourceFieldCR(QPoolField field) { if (!Children.Any(F => F.GetType().Equals(typeof(QAddDatasourceFieldCR)) && ((QAddDatasourceFieldCR)F).FieldName == field.FieldName && ((QAddDatasourceFieldCR)F).FieldCaption == field.EnglishCaption && ((QAddDatasourceFieldCR)F).InstallationCode == InstallationCode) ) { QAddDatasourceFieldCR cr = AddNewChild <QAddDatasourceFieldCR>(); cr.FieldName = field.FieldName; cr.FieldCaption = field.EnglishCaption; } }
public override object Clone() { QPoolField retval = new QPoolField() { FieldName = this.fieldName, TableName = this.tableName, dbType = this.dbType, EnglishCaption = this.englishCaption, GreekCaption = this.greekCaption, Parent = this.Parent }; return(retval); }