Example #1
0
        /*
         * public void RefreshPlugins()
         * {
         *      _directoryCatalog.Refresh();
         *      try
         *      {
         *              _container.ComposeParts(_pluginsImport);
         *      }
         *      catch (CompositionException compositionException)
         *      {
         *              MessageBox.Show(compositionException.ToString());
         *              _container.Dispose();
         *      }
         *      finally
         *      {
         *              LoadPluginsInUi(_pluginsImport.Plugins);
         *      }
         * }
         */

        private void LoadPluginsInUi()
        {
            foreach (var plugin in PluginProvider.GetRootPlugins())
            {
                var item = LoadPluginsInUi(plugin, true);
                _pluginsMenuItem.Items.Add(item);
            }
        }