示例#1
0
        public void SetPropertiesInstance(System.Xml.XmlNode node, object inst)
        {
            node.RemoveAll();       // Get rid of all properties

            BarCodePropertiesAztecCode bcp = inst as BarCodePropertiesAztecCode;

            if (bcp == null)
            {
                return;
            }


            XmlHelpers.CreateChild(node, "AztecCode", bcp.AztecCode);
        }
示例#2
0
        object ICustomReportItem.GetPropertiesInstance(System.Xml.XmlNode iNode)
        {
            BarCodePropertiesAztecCode bcp = new BarCodePropertiesAztecCode(this, iNode);
            foreach (XmlNode n in iNode.ChildNodes)
            {
                if (n.Name != "CustomProperty")
                    continue;
                string pname = XmlHelpers.GetNamedElementValue(n, "Name", "");
                switch (pname)
                {
                    case "AztecCode":
                        bcp.SetAztecCode(XmlHelpers.GetNamedElementValue(n, "Value", ""));
                        break;
                    default:
                        break;
                }
            }

            return bcp;
        }
示例#3
0
        object ICustomReportItem.GetPropertiesInstance(System.Xml.XmlNode iNode)
        {
            BarCodePropertiesAztecCode bcp = new BarCodePropertiesAztecCode(this, iNode);

            foreach (XmlNode n in iNode.ChildNodes)
            {
                if (n.Name != "CustomProperty")
                {
                    continue;
                }
                string pname = XmlHelpers.GetNamedElementValue(n, "Name", "");
                switch (pname)
                {
                case "AztecCode":
                    bcp.SetAztecCode(XmlHelpers.GetNamedElementValue(n, "Value", ""));
                    break;

                default:
                    break;
                }
            }

            return(bcp);
        }