Example #1
0
        public XmlProperty(XmlType parentType, PropertyInfo propertyInfo)
        {
            Info = propertyInfo;
            PropertyType = propertyInfo.PropertyType;
            ParentType = parentType;

            Init();
        }
Example #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 });
            }
        }
Example #3
0
 public void AddLocation(XmlType xmlType)
 {
     AddLocation(xmlType.Location.ElementAllowedNames);
 }
Example #4
0
 public void AddLocation(XmlType xmlType)
 {
     AddLocation(xmlType.Location.ElementAllowedNames);
 }