Ejemplo n.º 1
0
 public PluginsWindowViewModel(PluginManager pluginManager)
 {
     Func<PluginInfo, PluginViewModel> factory =
         model => new PluginViewModel {PluginManager = pluginManager, Model = model};
     Items = new ViewModelCollectionWrapper<PluginViewModel, PluginInfo>(pluginManager.KnownPlugins, factory);
 }
Ejemplo n.º 2
0
 public Engine(ILogger logger, PluginManager pluginManager)
 {
     _logger = logger;
     _pluginManager = pluginManager;
     BindingOperations.EnableCollectionSynchronization(Results, SyncLock);
 }