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);
        }
Exemplo n.º 2
0
 public ValuesWriter(Initiator initiator)
 {
     this.valuesWriterCallback = initiator;
     remotePicFrame            = new RemotePicFrame(this);
 }
 public XMLReader(Initiator initiator)
 {
     this.xmlReaderCallback = initiator;
 }