private void AddControlDBText(XmlElement xElementRoot, RDBLabel control) { this.AddControlText(xElementRoot, control); this.AddAtributo(xElementRoot, "FieldName", control.数据字段); this.AddAtributo(xElementRoot, "DataSource", control.数据源); this.AddAtributo(xElementRoot, "FormatString", control.格式化显示); }
private void ProcessDBText(XmlElement xElementControl, RDBLabel control) { this.ProcessText(xElementControl, control); control.数据字段 = this.GetString(xElementControl.Attributes, "FieldName"); control.数据源 = this.GetString(xElementControl.Attributes, "DataSource"); control.格式化显示 = this.GetString(xElementControl.Attributes, "FormatString"); control.对齐方式 = (TextAlignment)this.GetInteger(xElementControl.Attributes, "Alignment"); }