bool dataBindings;
string BindSource;
//增加绑定属性的扩展
[TypeConverter(typeof(ExpandableObjectConverter))]
public class BindAttriClass
{
public BindAttriClass()
{
}
private string Ptext = "";
private string Ptext1 = "";
private string Ptext2 = "";
//属性类中属性的属性,修改时通知父
[NotifyParentProperty(true),]
//描述增加的方法QMSDOSet:集合;QMDisplayField:显示的内容;QMValueField:存储的内容
public string QMSDOSet
{
get { return Ptext; }
set { Ptext = value; }
}
[NotifyParentProperty(true),]
public string QMDisplayField
{
get { return Ptext1; }
set { Ptext1 = value; }
}
[NotifyParentProperty(true),]
public string QMValueField
{
get { return Ptext2; }
set { Ptext2 = value; }
}
}
public bool QMDataBindings
{
get { return dataBindings; }
set { dataBindings = value; }
}
public string QMBindSource
{
get { return BindSource; }
set { BindSource = value; }
}
public BindAttriClass qMBindAtts = new BindAttriClass();
[PersistenceMode(PersistenceMode.InnerProperty), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
//PersistenceMode.InnerProperty理解为,这个属性是在aspx中标记为嵌套标记
//DesignerSerializationVisibility.Content,代码生成器产生对象内容的代码,而不是对象本身的代码。
public BindAttriClass QMBindAtts
{
get { return qMBindAtts; }
set
{
qMBindAtts = value;
}
}
}