public BModuleItem[] GetModuleList( ) { BModuleItem[] retval = new BModuleItem[modules.Count]; int i=0; foreach (DictionaryEntry entry in modules) { retval[i++] = (BModuleItem)entry.Value; } return retval; }
// <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; }