public SheetSetListener(AcSmXml nParent)
 {
     Parent = nParent;
     //
     subsetList = new List<Subset>();
     sheetList = new List<Sheet>();
     if (Parent.isReady) {
         XmlNodeList wXMLList = Parent.SelectNodes(".//AcSmSheetSet/AcSmSubset");
         foreach (XmlNode xmln in wXMLList)
         {
             subsetList.Add(new Subset((XmlElement)xmln));
         }
         //
         wXMLList = Parent.SelectNodes(".//AcSmSheetSet/AcSmSheet");
         foreach (XmlNode xmln in wXMLList)
         {
             sheetList.Add(new Sheet((XmlElement)xmln));
         }
     }
 }
 public SheetSetListener(string nfilename)
 {
     Parent = new AcSmXml();
     Parent.LoadFromDstFile(nfilename);
     //
     subsetList = new List<Subset>();
     sheetList = new List<Sheet>();
     if (Parent.isReady)
     {
         XmlNodeList wXMLList = Parent.SelectNodes(".//AcSmSheetSet/AcSmSubset");
         foreach (XmlNode xmln in wXMLList)
         {
             subsetList.Add(new Subset((XmlElement)xmln));
         }
         //
         wXMLList = Parent.SelectNodes(".//AcSmSheetSet/AcSmSheet");
         foreach (XmlNode xmln in wXMLList)
         {
             sheetList.Add(new Sheet((XmlElement)xmln));
         }
     }
 }