Exemplo n.º 1
0
 public void LoadImportProjectAddins(IMainWindow mainWindow)
 {
     foreach (IImportProject importProject in AddinManager.GetExtensionObjects <IImportProject> ())
     {
         try{
             mainWindow.AddImportEntry(importProject.GetMenuEntryName(), importProject.GetMenuEntryShortName(),
                                       importProject.GetFilterName(), importProject.GetFilter(), importProject.ImportProject, true);
         } catch (Exception ex) {
             Log.Error("Error adding import entry");
             Log.Exception(ex);
         }
     }
 }