Beispiel #1
0
        internal bool save(CSXml.cXml xDoc, XmlNode nodeFather)
        {
            CSXml.cXmlProperty xProperty = null;
            XmlNode            nodeObj   = null;
            object             nodImage  = null;

            xProperty = new CSXml.cXmlProperty();
            xProperty.setName("Image");
            nodeObj = xDoc.addNodeToNode(nodeFather, xProperty);

            byte[] vBytes = null;
            if (getImage() != null)
            {
                cImage.serialiseBitmap(getImage(), vBytes);
            }
            else
            {
                G.redim(ref vBytes, 0);
            }
            xProperty.setName("Data");
            xProperty.setBinaryValue(vBytes);

            xDoc.addBinaryPropertyToNode(nodeObj, xProperty);
            G.redim(ref vBytes, 0);

            return(m_aspect.save(xDoc, nodeObj));
        }
        internal bool save(CSXml.cXml xDoc, XmlNode nodeFather)
        {
            CSXml.cXmlProperty xProperty = null;
            XmlNode nodeObj = null;
            object nodImage = null;

            xProperty = new CSXml.cXmlProperty();
            xProperty.setName("Image");
            nodeObj = xDoc.addNodeToNode(nodeFather, xProperty);

            byte[] vBytes = null;
            if (getImage() != null)
            {
                cImage.serialiseBitmap(getImage(), vBytes);
            }
            else
            {
                G.redim(ref vBytes, 0);
            }
            xProperty.setName("Data");
            xProperty.setBinaryValue(vBytes);

            xDoc.addBinaryPropertyToNode(nodeObj, xProperty);
            G.redim(ref vBytes, 0);

            return m_aspect.save(xDoc, nodeObj);
        }