コード例 #1
0
        internal void PrepareXML(Initiator initiator, XmlDocument xmlDocument, List <string> xmlNodesNamesList)
        {
            this.xmlPreparerCallback = initiator;
            CheckIfLegal(xmlDocument);

            if (!PathForm.GetRunOver() && LayoutElementExists(xmlDocument))
            {
                xmlPreparerCallback.OnXmlPrepareEnd(xmlDocument);
                return;
            }

            if (PathForm.GetRunOver() && LayoutElementExists(xmlDocument))
            {
                //need to go to remote and delete the layout from there!
                XmlNode xmlnode = xmlDocument.GetElementsByTagName(TAG_REMOTE)[0];
                xmlnode.RemoveChild(xmlDocument.GetElementsByTagName(TAG_LAYOUT)[0]);
                xmlDocument.Save(PathForm.GetXmlPath());
            }

            XmlElement layoutElement = GetLayoutElement(xmlDocument);

            SetRectElementsTags(xmlDocument, layoutElement, xmlNodesNamesList);
            xmlDocument.Save(PathForm.GetXmlPath());
            xmlPreparerCallback.OnXmlPrepareEnd(xmlDocument);
        }
コード例 #2
0
 public ValuesWriter(Initiator initiator)
 {
     this.valuesWriterCallback = initiator;
     remotePicFrame            = new RemotePicFrame(this);
 }
コード例 #3
0
 public XMLReader(Initiator initiator)
 {
     this.xmlReaderCallback = initiator;
 }