示例#1
0
文件: XmlProperty.cs 项目: IIITanbI/1
        public XmlProperty(XmlType parentType, PropertyInfo propertyInfo)
        {
            Info = propertyInfo;
            PropertyType = propertyInfo.PropertyType;
            ParentType = parentType;

            Init();
        }
示例#2
0
        public XmlTypeUserControl(XmlType type)
        {
            _xmlType = type;

            InitializeComponent();

            XmlTypeNameLabel.Content = $"Type: {_xmlType.XType.Name}";
            XmlTypeDescriptionLabel.Content = $"Description: {_xmlType.Description}";

            foreach (var xmlProperty in _xmlType.XmlProperties)
            {
                XmlPropertiesListBox.Items.Add(new ListBoxItem { Content = xmlProperty });
            }
        }
示例#3
0
 public void AddLocation(XmlType xmlType)
 {
     AddLocation(xmlType.Location.ElementAllowedNames);
 }
示例#4
0
文件: XmlLocation.cs 项目: IIITanbI/1
 public void AddLocation(XmlType xmlType)
 {
     AddLocation(xmlType.Location.ElementAllowedNames);
 }