-
Notifications
You must be signed in to change notification settings - Fork 1
/
Subset.cs
49 lines (44 loc) · 1.23 KB
/
Subset.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
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.Xml;
namespace SheetSetManager
{
public class Subset : AbstractSubset
{
internal XmlElement parent;
public Subset(XmlElement nParent)
{
parent = nParent;
//
subsetList = new List<Subset>();
XmlNodeList wXMLList = parent.SelectNodes("./AcSmSubset");
foreach (XmlNode xmln in wXMLList)
{
subsetList.Add(new Subset((XmlElement)xmln));
}
//
sheetList = new List<Sheet>();
wXMLList = parent.SelectNodes("./AcSmSheet");
foreach (XmlNode xmln in wXMLList)
{
sheetList.Add(new Sheet((XmlElement)xmln));
}
}
public override String Name
{
get
{
int res = this.GetAllSheetCount();
return ShortName + "(" + res.ToString() + ") ";
}
}
public String ShortName
{
get
{
XmlNode wNode = parent.SelectSingleNode("./AcSmProp[@propname=\"Name\"]");
return wNode.InnerText;
}
}
}
}