예제 #1
0
        private void ExportDescritorRefs(XmlWriter file, Behavior b)
        {
            //if (Plugin.IsQueryFiltered)
            //{
            //    return;
            //}

            if (b.DescriptorRefs.Count > 0)
            {
                file.WriteStartElement("property");
                string propValue = DesignerArray.RetrieveExportValue(b.DescriptorRefs);
                file.WriteAttributeString("DescriptorRefs", propValue);
                file.WriteEndElement();
            }

            {
                string propValue = b.Domains;

                if (!string.IsNullOrEmpty(propValue))
                {
                    file.WriteStartElement("property");
                    file.WriteAttributeString("Domains", propValue);
                    file.WriteEndElement();
                }
            }
        }
예제 #2
0
        private void SaveDescriptorRefs(XmlElement root, Behavior b)
        {
            XmlElement elem = _xmlfile.CreateElement("DescriptorRefs");

            string value = DesignerArray.RetrieveExportValue(b.DescriptorRefs);

            elem.SetAttribute("value", value);

            root.AppendChild(elem);
        }
예제 #3
0
        private void ExportDescritorRefs(BsonSerializer file, Behavior b)
        {
            if (b.DescriptorRefs.Count == 0)
            {
                return;
            }

            string propValue = DesignerArray.RetrieveExportValue(b.DescriptorRefs);

            file.WriteAttributeString("DescriptorRefs", propValue);
        }
예제 #4
0
        private void ExportDescritorRefs(XmlWriter file, Behavior b)
        {
            if (b.DescriptorRefs.Count == 0)
            {
                return;
            }

            file.WriteStartElement("property");

            string propValue = DesignerArray.RetrieveExportValue(b.DescriptorRefs);

            file.WriteAttributeString("DescriptorRefs", propValue);

            file.WriteEndElement();
        }
예제 #5
0
        private void ExportDescritorRefs(BsonSerializer file, Behavior b)
        {
            if (Plugin.IsQueryFiltered)
            {
                return;
            }

            if (b.DescriptorRefs.Count > 0)
            {
                string propValue = DesignerArray.RetrieveExportValue(b.DescriptorRefs);
                file.WriteAttributeString("DescriptorRefs", propValue);
            }

            string propValue2 = b.Domains;

            if (!string.IsNullOrEmpty(propValue2))
            {
                file.WriteAttributeString("Domains", propValue2);
            }
        }
예제 #6
0
        private void ExportDescritorRefs(JObject file, Behavior b)
        {
            //if (Plugin.IsQueryFiltered)
            //{
            //    return;
            //}

            if (b.DescriptorRefs.Count > 0)
            {
                string propValue = DesignerArray.RetrieveExportValue(b.DescriptorRefs);
                file.Add("DescriptorRefs", propValue);
            }

            string propValue2 = b.Domains;

            if (!string.IsNullOrEmpty(propValue2))
            {
                file.Add("Domains", propValue2);
            }
        }