Ejemplo n.º 1
0
        private void AddControlBarCode(XmlElement xElementRoot, RBarCode control)
        {
            this.AddAtributo(xElementRoot, "Text", control.Text);
            this.AddAtributo(xElementRoot, "Code", control.Code);
            this.AddAtributo(xElementRoot, "BarCodeType", Convert.ToInt16(control.BarCodeType).ToString());
            XmlElement element = this.AddElement(xElementRoot, "Font");

            this.AddAtributo(element, "Name", control.Font.Name.ToString());
            this.AddAtributo(element, "Size", control.Font.Size.ToString());
            this.AddAtributo(element, "Height", control.Font.Height.ToString());
            this.AddAtributo(element, "FontStyle", control.Font.Style.ToString());
        }
Ejemplo n.º 2
0
 private void ProcessBarCode(XmlElement xElementControl, RBarCode control)
 {
     control.Code        = this.GetString(xElementControl.Attributes, "Code");
     control.BarCodeType = (BarCodeType)this.GetInteger(xElementControl.Attributes, "BarCodeType");
 }