예제 #1
0
        public BModuleItem[] GetModuleList( )
        {
            BModuleItem[] retval = new BModuleItem[modules.Count];
              int i=0;
              foreach (DictionaryEntry entry in modules)
              {
            retval[i++] = (BModuleItem)entry.Value;
              }

              return retval;
        }
예제 #2
0
        // <exception>FileNotFoundException, XmlException, Exception</exception>
        public string ImportModule(string aFileName)
        {
            if (modules.Count >= modulesCapacity) throw new Exception("Maximum number of modules imported.");
              BModuleItem tmpItem = new BModuleItem(aFileName);
              modules.Add(tmpItem.OID, tmpItem);

              return tmpItem.OID;
        }