-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSetDef.cs
39 lines (34 loc) · 897 Bytes
/
SetDef.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace spb2xml
{
[Serializable]
public class SetDef : DefinitionElement
{
private List<string> mProperties = new List<string>();
private SymbolDef mParent;
public SymbolDef Parent
{
get { return mParent; }
set { mParent = value; }
}
public SetDef(XmlNode node)
: base(node)
{
// get properties
foreach (XmlNode son in node)
{
if (son.Name.Equals("property"))
{
XmlAttribute sonPropName = son.Attributes["name"];
if (sonPropName != null)
{
mProperties.Add(sonPropName.Value);
}
}
}
}
}
}