Beispiel #1
0
 public MainWindowViewModel()
 {
     var windowsExplorerHelper = new WindowsExplorerHelper();
     this.Config = Config.Load();
     this.IsPopupOpen = false;
     this.AvailableActions = new ObservableCollection<IAction>();
     this._providers = new List<IActionProvider>();
     this._providers.Add(new LocalProgramsActionProvider());
     this._providers.Add(new CalculatorActionProvider());
     this._providers.Add(new CurrencyConverterActionProvider());
     this._providers.Add(new MiscActionProvider(windowsExplorerHelper, new PromptService()));
     foreach (var provider in this._providers)
     {
         provider.Initialize(this.Config);
     }
 }
Beispiel #2
0
 public MiscActionProvider(WindowsExplorerHelper windowsExplorerHelper, IPromptService promptService)
 {
     this._windowsExplorerHelper = windowsExplorerHelper;
     this._promptService = promptService;
 }