コード例 #1
0
ファイル: XmlProperty.cs プロジェクト: IIITanbI/1
        public XmlProperty(XmlType parentType, PropertyInfo propertyInfo)
        {
            Info = propertyInfo;
            PropertyType = propertyInfo.PropertyType;
            ParentType = parentType;

            Init();
        }
コード例 #2
0
ファイル: XmlTypeUserControl.xaml.cs プロジェクト: IIITanbI/2
        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);
 }