public void EmptyCache() { CCLs.Clear(); CDTLs.Clear(); BDTLs.Clear(); BIELs.Clear(); }
public void LoadCDTLs(ICctsRepository repository) { foreach (ICdtLibrary cdtl in repository.GetCdtLibraries()) { if (CDTLs.ContainsKey(cdtl.Name)) { CDTLs.Clear(); throw new CacheException("The wizard encountered two CDT libraries having identical names. Please make sure that all CDT libraries within the model have unique names before proceeding with the wizard."); } CDTLs.Add(cdtl.Name, new cCDTLibrary(cdtl.Name, cdtl.Id)); } if (CDTLs.Count == 0) { throw new CacheException("The repository did not contain any CDT libraries. Please make sure at least one CDT library is present before proceeding with the wizard."); } }