Пример #1
0
 public void InitNewMethod(string name)
 {
     m_xml     = new Chilkat.Xml();
     m_xml.Tag = "method";
     m_xml.AddAttribute("name", name);
     m_xml.NewChild2("gType", "void");
     m_xml.NewChild2("descrip", "");
     Chilkat.Xml xArgs = m_xml.NewChild("args2", "");
     m_name       = name;
     m_methodArgs = new MethodArgs(xArgs);
 }
Пример #2
0
        public void LoadMethodXml(Chilkat.Xml p)
        {
            this.loadEntryXml(p);

            Chilkat.Xml xArgs2 = p.FindChild("args2");
            if (xArgs2 == null)
            {
                xArgs2 = p.NewChild("args2", "");
            }

            m_methodArgs = new MethodArgs(xArgs2);
        }
Пример #3
0
        public void initNewProperty(string name)
        {
            m_xml     = new Chilkat.Xml();
            m_xml.Tag = "property";
            m_xml.AddAttribute("name", name);
            m_xml.NewChild2("gType", "bool");
            m_xml.NewChild2("descrip", "");
            m_xml.UpdateAttribute("read", "1");
            m_xml.UpdateAttribute("write", "1");

            Chilkat.Xml xArgs = m_xml.NewChild("args2", "");
            m_name       = name;
            m_methodArgs = new MethodArgs(xArgs);
        }
Пример #4
0
        public void loadPropXml(Chilkat.Xml p)
        {
            this.loadEntryXml(p);

            // Properties can NEVER be write-only.  They can only be read-write or read-only.
            m_readOnly = !m_xml.HasAttrWithValue("write", "1");

            // Ensure that we have a m_methodArgs object, even for a property, which should be empty.
            Chilkat.Xml xArgs2 = p.FindChild("args2");
            if (xArgs2 == null)
            {
                xArgs2 = p.NewChild("args2", "");
            }

            m_methodArgs = new MethodArgs(xArgs2);
        }