private static ComposablePartCatalog Catalog()
{
try
{
return new AggregateCatalog(new DirectoryCatalog("Plugins"), new TypeCatalog(typeof(IStorageManager)));
}
catch(Exception ex)
{
MessageBox.Show("Binboo cannot continue due to an exception during initialization: " + ex);
Environment.Exit(-1);
// Make the compiler happy
return null;
}
}