示例#1
0
 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;
     }
 }
示例#3
0
        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);
        }