public SourceManagerViewModelTests()
 {
     _sourceService = Substitute.For<ISourceService>();
     _fileSystemService = Substitute.For<IFileSystemService>();
     _busyProvider = Substitute.For<IBusyProvider>();
     _viewModel = new SourceManagerViewModel(_sourceService, _fileSystemService, _busyProvider, SourceType.Music);
 }
示例#2
0
 public KeywordController(IKeywordService keywordService, IMapper mapper, INewsService newsService, ISourceService sourceService)
 {
     _mapper             = mapper;
     this.keywordService = keywordService;
     this.newsService    = newsService;
     this.sourceService  = sourceService;
 }
        public SourcesControlViewModel(ISourceService sourceService, Func<string, Uri, Type, SourceTabViewModel> sourceViewModelFactory)
        {
            if (sourceService == null)
            {
                throw new ArgumentNullException("sourceService");
            }

            if (sourceViewModelFactory == null)
            {
                throw new ArgumentNullException("sourceViewModelFactory");
            }

            this.sourceViewModelFactory = sourceViewModelFactory;
            this.Sources = new ObservableCollection<SourceTabViewModel>
            {
                sourceViewModelFactory("This PC", null, typeof(LocalSourceControl))
            };

            foreach (var source in sourceService.GetSources())
            {
                this.Sources.Add(this.sourceViewModelFactory(source.Name, new Uri(source.Url), typeof(RemoteSourceControl)));
            }

            this.SelectedSource = this.Sources[0];

            SourcesChangedEventManager.AddListener(sourceService, this);
        }
 public SourceManagerViewModelTests()
 {
     _sourceService     = Substitute.For <ISourceService>();
     _fileSystemService = Substitute.For <IFileSystemService>();
     _busyProvider      = Substitute.For <IBusyProvider>();
     _viewModel         = new SourceManagerViewModel(_sourceService, _fileSystemService, _busyProvider, SourceType.Music);
 }
 /// <summary>
 /// Constructor for Home Controller
 /// </summary>
 public SourceController(ISourceService sourceService, IConfiguration configuration, IHostingEnvironment environment)
 {
     _sourceService = sourceService;
     _configuration = configuration;
     _environment   = environment;
     configuration.GetSection("AppSettings").Bind(_webConfiguration);
 }
示例#6
0
        public ViewModelLoader()
        {
            unityContainer = new UnityContainer();

            RegisterTypes();

            string kinectSetting = ConfigurationManager.AppSettings["KinectService"].ToString();
            string sourceSetting = ConfigurationManager.AppSettings["SourceService"].ToString();
            string boardSetting  = ConfigurationManager.AppSettings["BoardService"].ToString();
            string helpSetting   = ConfigurationManager.AppSettings["HelpService"].ToString();


            kinectService = unityContainer.Resolve <IKinectService>(kinectSetting);
            sourceService = unityContainer.Resolve <ISourceService>(sourceSetting);
            boardService  = unityContainer.Resolve <IBoardService>(boardSetting);
            helpService   = unityContainer.Resolve <IHelpService>(helpSetting);

            var prop           = DesignerProperties.IsInDesignModeProperty;
            var isInDesignMode = (bool)DependencyPropertyDescriptor
                                 .FromProperty(prop, typeof(FrameworkElement))
                                 .Metadata.DefaultValue;

            if (!isInDesignMode)
            {
                kinectService.Initialize();
                sourceService.Initialize();
                helpService.Initialize();
            }
        }
 public ChocolateyService(IRunSync powerShell, ISourceService sourceService)
 {
     _powershell = powerShell;
     _sourceService = sourceService;
     _powershell.OutputChanged += InvokeOutputChanged;
     _powershell.RunFinished += OnRunFinished;
 }
 public PackageVersionService(IRunAsync powershell, ISourceService sourceService)
 {
     _powershellAsync = powershell;
     _sourceService = sourceService;
     _powershellAsync.OutputChanged += VersionHandler;
     _powershellAsync.RunFinished += RunFinished;
 }
示例#9
0
        public ViewModelLoader() 
        {
            unityContainer = new UnityContainer();

            RegisterTypes();

            string kinectSetting = ConfigurationManager.AppSettings["KinectService"].ToString();
            string sourceSetting = ConfigurationManager.AppSettings["SourceService"].ToString();
            string boardSetting = ConfigurationManager.AppSettings["BoardService"].ToString();
            string helpSetting = ConfigurationManager.AppSettings["HelpService"].ToString();


            kinectService = unityContainer.Resolve<IKinectService>(kinectSetting);
            sourceService = unityContainer.Resolve<ISourceService>(sourceSetting);
            boardService = unityContainer.Resolve<IBoardService>(boardSetting);
            helpService = unityContainer.Resolve<IHelpService>(helpSetting);

            var prop = DesignerProperties.IsInDesignModeProperty; 
            var isInDesignMode = (bool)DependencyPropertyDescriptor
                .FromProperty(prop, typeof(FrameworkElement))
                .Metadata.DefaultValue; 
            
            if (!isInDesignMode) 
            { 
                kinectService.Initialize();
                sourceService.Initialize();
                helpService.Initialize();
            } 
        }
示例#10
0
        public SourcesControlViewModel(ISourceService sourceService, Func <string, Uri, Type, SourceTabViewModel> sourceViewModelFactory)
        {
            if (sourceService == null)
            {
                throw new ArgumentNullException("sourceService");
            }

            if (sourceViewModelFactory == null)
            {
                throw new ArgumentNullException("sourceViewModelFactory");
            }

            this.sourceViewModelFactory = sourceViewModelFactory;
            this.Sources = new ObservableCollection <SourceTabViewModel>
            {
                sourceViewModelFactory("This PC", null, typeof(LocalSourceControl))
            };

            foreach (var source in sourceService.GetSources())
            {
                this.Sources.Add(this.sourceViewModelFactory(source.Name, new Uri(source.Url), typeof(RemoteSourceControl)));
            }

            this.SelectedSource = this.Sources[0];

            SourcesChangedEventManager.AddListener(sourceService, this);
        }
示例#11
0
 public ShowController(
     IMemberService _memberService
     , IAreaAttService _areaAttService
     , IAreaService _areaService
     , IOutDoorMediaCateService _outDoorMediaCateService
     , IOutDoorService _outDoorService
     , ICompanyService _companyService
     , IFormatCateService _formatCateService
     , ICompanyBussinessService _companyBussinessService
     , ICompanyFundService _companyFundService
     , ICompanyScaleService _companyScaleService
     , IPeriodCateService _periodCateService
     , IOwnerCateService _ownerCateService
     , IAuctionCalendarService _auctionCalendarService
     , ISourceService _sourceService
     )
 {
     areaAttService = _areaAttService;
     areaService = _areaService;
     memberService = _memberService;
     outDoorMediaCateService = _outDoorMediaCateService;
     outDoorService = _outDoorService;
     companyService = _companyService;
     formatCateService = _formatCateService;
     companyBussinessService = _companyBussinessService;
     companyFundService = _companyFundService;
     companyScaleService = _companyScaleService;
     periodCateService = _periodCateService;
     ownerCateService = _ownerCateService;
     auctionCalendarService = _auctionCalendarService;
     sourceService = _sourceService;
 }
 public PackageVersionService(IRunAsync powershell, ISourceService sourceService)
 {
     _powershellAsync = powershell;
     _sourceService   = sourceService;
     _powershellAsync.OutputChanged += VersionHandler;
     _powershellAsync.RunFinished   += RunFinished;
 }
 public ChocolateyService(IRun powerShell, ISourceService sourceService)
 {
     _powershell = new RunSync();
     _sourceService = sourceService;
     _powershell.OutputChanged += OutPutChangedHandler;
     _powershell.RunFinished += RunFinishedHandler;
 }
示例#14
0
 public WebhooksController(
     IStripeService stripeService,
     IProjectInvoiceService invoiceService,
     IDisperseFundsService paidInvoiceService,
     IFinancialAccountService financialAccountService,
     ICardService cardService,
     IChargeService chargeService,
     ISourceService sourceService,
     IPaymentIntentService paymentIntentService,
     ISubscriptionService subscriptionService,
     ILogger <WebhooksController> logger,
     IOptions <AppSettings> appSettings,
     IBuyerAccountService buyerAccountService)
 {
     _logger                  = logger;
     _cardService             = cardService;
     _chargeService           = chargeService;
     _sourceService           = sourceService;
     _paymentIntentService    = paymentIntentService;
     _subscriptionService     = subscriptionService;
     _stripeService           = stripeService;
     _invoiceService          = invoiceService;
     _paidInvoiceService      = paidInvoiceService;
     _financialAccountService = financialAccountService;
     _appSettings             = appSettings;
     _buyerAccountService     = buyerAccountService;
     _logger                  = logger;
 }
示例#15
0
 public ChocolateyService(IRunSync powerShell, ISourceService sourceService)
 {
     _powershell                = powerShell;
     _sourceService             = sourceService;
     _powershell.OutputChanged += InvokeOutputChanged;
     _powershell.RunFinished   += OnRunFinished;
 }
 public PackageService(IRun powershell, ISourceService sourceService)
 {
     _powershellAsync = new RunAsync();
     _sourceService = sourceService;
     _powershellAsync.OutputChanged += OutputChanged;
     _powershellAsync.RunFinished += RunFinished;
 }
示例#17
0
 public CollectNewsBySourceHelper(ILogger <CollectNewsBySourceHelper> logger, ISourceService sourceService, INewsService newsService, IHttpClientFactory httpClientFactory)
 {
     _logger            = logger;
     _sourceService     = sourceService;
     _newsService       = newsService;
     _httpClientFactory = httpClientFactory;
 }
示例#18
0
 public SourcesController(ISourceService sourceService,
                          ISourceTypeService sourceTypeService,
                          IMapper mapper)
 {
     _sourceService     = sourceService ?? throw new ArgumentNullException(nameof(sourceService));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _sourceTypeService = sourceTypeService ?? throw new ArgumentNullException(nameof(sourceTypeService));
 }
 public AvailablePackagesService(IRunAsync powershell, ISourceService sourceService)
 {
     _lines           = new List <string>();
     _sourceService   = sourceService;
     _powershellAsync = powershell;
     _powershellAsync.OutputChanged += OutputChanged;
     _powershellAsync.RunFinished   += RunFinished;
 }
 public AvailablePackagesService(IRunAsync powershell, ISourceService sourceService)
 {
     _lines = new List<string>();
     _sourceService = sourceService;
     _powershellAsync = powershell;
     _powershellAsync.OutputChanged += OutputChanged;
     _powershellAsync.RunFinished += RunFinished;
 }
 public PackageService(IRunAsync powershell, ISourceService sourceService, ICommandExecuter commandExecuter)
 {
     _powershellAsync = powershell;
     _sourceService = sourceService;
     _commandExecuter = commandExecuter;
     _powershellAsync.OutputChanged += OnLineChanged;
     _powershellAsync.RunFinished += OnRunFinished;
 }
示例#22
0
 public PackageService(IRunAsync powershell, ISourceService sourceService, ICommandExecuter commandExecuter)
 {
     _powershellAsync = powershell;
     _sourceService   = sourceService;
     _commandExecuter = commandExecuter;
     _powershellAsync.OutputChanged += OnLineChanged;
     _powershellAsync.RunFinished   += OnRunFinished;
 }
示例#23
0
 public PackageService(IProgressService progressService, ISourceService sourceService,
                       Func <IPackageViewModel> packageFactory, Func <Type, ILogService> logFunc)
 {
     _progressService = progressService;
     _sourceService   = sourceService;
     _packageFactory  = packageFactory;
     _logService      = logFunc(typeof(PackageService));
 }
示例#24
0
 public Functions(ILogService logService, ISourceService sourceService, IDestinationService destinationService, IAzureStorageService azureStorageService, IDocumentService documentService)
 {
     _logService          = logService;
     _azureStorageService = azureStorageService;
     _sourceService       = sourceService;
     _destinationService  = destinationService;
     _documentService     = documentService;
 }
 public CachedAvailablePackagesService(IODataAvailablePackagesService availablePackagesService, ISourceService sourceService)
 {
     _availablePackagesService = availablePackagesService;
     _sourceService = sourceService;
     _availablePackagesService.RunFailed += AvailablePackagesServiceRunFailed;
     _availablePackagesService.RunFinshed += OnUncachedAvailableRunFinished;
     _sourceService.CurrentSourceChanged += _sourceService_CurrentSourceChanged;
     InvalidateCache();
 }
        public MainWindowViewModel(ISourceService sourceService, IProgressService progressService, Lazy <IPackageService> packageServiceLazy)
        {
            _sourceService   = sourceService;
            _progressService = progressService;
            _packageService  = packageServiceLazy;
            Sources          = new ObservableCollection <SourceViewModel>(_sourceService.GetSources());

            SourcesChangedEventManager.AddListener(sourceService, this);
        }
 public NewsController(INewsService newsService, IMapper mapper, ISourceService sourceService, IKeywordService keywordService, IHttpClientFactory httpClientFactory, IUriService uriService)
 {
     this._mapper         = mapper;
     this._newsService    = newsService;
     this._sourceService  = sourceService;
     this._keywordService = keywordService;
     _httpClientFactory   = httpClientFactory;
     _uriService          = uriService;
 }
 public CachedAvailablePackagesService(IODataAvailablePackagesService availablePackagesService, ISourceService sourceService)
 {
     _availablePackagesService             = availablePackagesService;
     _sourceService                        = sourceService;
     _availablePackagesService.RunFailed  += AvailablePackagesServiceRunFailed;
     _availablePackagesService.RunFinshed += OnUncachedAvailableRunFinished;
     _sourceService.CurrentSourceChanged  += _sourceService_CurrentSourceChanged;
     InvalidateCache();
 }
 public PackagesService(IRunAsync powershell, ISourceService sourceService)
 {
     _lines = new List<string>();
     _sourceService = sourceService;
     _libDirHelper = new ChocolateyLibDirHelper();
     _powershellAsync = powershell;
     _powershellAsync.OutputChanged += OutputChanged;
     _powershellAsync.RunFinished += RunFinished;
 }
 public MistakesSourcesController(IMistakesSourcesService mistakesSourcesService,
                                  IMistakeService mistakeService,
                                  ISourceService sourceService,
                                  IMapper mapper)
 {
     _mistakesSourcesService = mistakesSourcesService ?? throw new ArgumentNullException(nameof(mistakesSourcesService));
     _mistakeService         = mistakeService ?? throw new ArgumentNullException(nameof(mistakeService));
     _sourceService          = sourceService ?? throw new ArgumentNullException(nameof(sourceService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public RepositoryService(
     IVersionService versionService,
     ISpkService spkService,
     ISourceService sourceService,
     ILogger <RepositoryService> logger)
 {
     this.versionService = versionService;
     this.spkService     = spkService;
     this.sourceService  = sourceService;
     this.logger         = logger;
 }
 public RepositoryController(
     IRepositoryService repositoryService,
     HttpContextInfoProvider httpContextInfoProvider,
     ISourceService sourceService,
     IProfileService profileService)
 {
     this.repositoryService       = repositoryService ?? throw new ArgumentNullException(nameof(repositoryService));
     this.httpContextInfoProvider = httpContextInfoProvider ?? throw new ArgumentNullException(nameof(httpContextInfoProvider));
     this.sourceService           = sourceService ?? throw new ArgumentNullException(nameof(sourceService));
     this.profileService          = profileService ?? throw new ArgumentNullException(nameof(profileService));
 }
示例#33
0
 public AccountController(
     IUserService userService,
     IProfileService profileService,
     ISourceService sourceService,
     HttpContextInfoProvider httpContextInfoProvider)
 {
     this.userService             = userService ?? throw new ArgumentNullException(nameof(userService));
     this.profileService          = profileService ?? throw new ArgumentNullException(nameof(profileService));
     this.sourceService           = sourceService ?? throw new ArgumentNullException(nameof(sourceService));
     this.httpContextInfoProvider = httpContextInfoProvider ?? throw new ArgumentNullException(nameof(httpContextInfoProvider));
 }
示例#34
0
 public PackagesController(
     ISpkService spkService,
     ISourceService sourceService,
     IVersionService versionService,
     IModelService modelService)
 {
     this.spkService     = spkService;
     this.sourceService  = sourceService;
     this.versionService = versionService;
     this.modelService   = modelService;
 }
示例#35
0
 public CreateMessageCoreService(ISourceService <TSourceDomain> sourceService,
                                 IMessageDomainConverter <TMessageDomain, TSourceDomain> messageDomainConverter,
                                 IMessageDomainService <TMessageDomain> messageDomainService,
                                 IOrgPPAGUIDService orgPPAGUIDService, IGisLogger logger)
 {
     _sourceService          = sourceService;
     _messageDomainConverter = messageDomainConverter;
     _messageDomainService   = messageDomainService;
     _orgPPAGUIDService      = orgPPAGUIDService;
     _logger = logger;
 }
示例#36
0
        public PreviewController(IConfiguration config, ISourceService sourceService, ITextService textService)
        {
            _sourceService = sourceService;
            _textService   = textService;

            var yandexUrl       = config["NotificallSettings:YandexUrl"];
            var yandexApiKey    = config["NotificallSettings:YandexApiKey"];
            var defaultLanguage = config["NotificallSettings:DefaultLanguage"];

            _voiceService  = new VoiceService(yandexUrl, yandexApiKey, defaultLanguage, AudioFormat.mp3, AudioQuality.lo);
            _textConverter = new TemplateToTextConverter();
        }
示例#37
0
 public Settings(ISettingsService settingsService, ICommandExecuter commandExecutor, ISourceService sourceService, IAvailablePackagesService availablePackagesService)
 {
     _settingsService                      = settingsService;
     _commandExecutor                      = commandExecutor;
     _sourceService                        = sourceService;
     _availablePackagesService             = availablePackagesService;
     _sourceService.SourcesChanged        += _sourceService_SourcesChanged;
     _sourceService.CurrentSourceChanged  += _sourceService_CurrentSourceChanged;
     _availablePackagesService.RunFinshed += _availablePackagesService_RunFinshed;
     InitializeComponent();
     _sourceService.LoadSources();
 }
示例#38
0
 public Settings(ISettingsService settingsService, ICommandExecuter commandExecutor, ISourceService sourceService, IAvailablePackagesService availablePackagesService)
 {
     _settingsService = settingsService;
     _commandExecutor = commandExecutor;
     _sourceService = sourceService;
     _availablePackagesService = availablePackagesService;
     _sourceService.SourcesChanged += _sourceService_SourcesChanged;
     _sourceService.CurrentSourceChanged += _sourceService_CurrentSourceChanged;
     _availablePackagesService.RunFinshed += _availablePackagesService_RunFinshed;
     InitializeComponent();
     _sourceService.LoadSources();
 }
示例#39
0
        public SourcesViewModel(ISourceService sourceService)
        {
            Title         = "Quellen";
            Sources       = new ObservableCollection <SourcesItemViewModel>();
            SourceService = sourceService;

            // Wiederspiegeln der Datenbankänderungen in der Liste
            sourceService.OnModelInserted += (sender, source) => Sources.Add(CreateSourcesItemViewModel(source));
            sourceService.OnModelUpdated  += async(sender, source) => await LoadSources();

            sourceService.OnModelDeleted += (sender, source) => Sources.Remove(CreateSourcesItemViewModel(source));
        }
示例#40
0
 public MainViewModel(ISourceService sourceService)
 {
     Sources       = sourceService.GetSources();
     StartCommand  = new RelayCommand(OnStart, OnCanStart);
     CancelCommand = new RelayCommand(OnCancel, OnCanCancel);
     BrowseCommand = new RelayCommand(OnBrowse, OnCanBrowse);
     ExportCommand = new RelayCommand(OnExport, OnCanExport);
     Logs          = new ObservableCollection <LogModel>();
     Messenger.Default.Register <NotificationMessage>(this, MessagingTokens.SetDuplicatePath, OnSetDuplicatePath);
     Messenger.Default.Register <NotificationMessage>(this, MessagingTokens.SetExportPath, OnSetExportPath);
     DuplicateCheckDirectories = new ObservableCollection <string>(Settings.Default.DuplicateCheckDirectories.OfType <string>());
 }
示例#41
0
 public PotentialClientsController(IPotentialClientService potentialClientService,
                                   IUserService userService,
                                   IStatusService statusService,
                                   IProjectService projectService,
                                   ISourceService sourceService)
 {
     _potentialClientService = potentialClientService;
     _userService            = userService;
     _statusService          = statusService;
     _projectService         = projectService;
     _sourceService          = sourceService;
 }
        public SourceManagerViewModel(ISourceService sourceService, IFileSystemService fileSystemService, IBusyProvider busyProvider, SourceType sourceType)
        {
            _sourceService = sourceService;
            _fileSystemService = fileSystemService;
            _busyProvider = busyProvider;
            _sourceType = sourceType;

            RootFolders = new ObservableCollection<string>();
            SpecificFolders = new ObservableCollection<string>();

            RootFolders.CollectionChanged += RootFoldersCollectionChanged;
            SpecificFolders.CollectionChanged += SpecificFoldersCollectionChanged;
        }
        public SourceManagerViewModel(ISourceService sourceService, IFileSystemService fileSystemService, IBusyProvider busyProvider, SourceType sourceType)
        {
            _sourceService     = sourceService;
            _fileSystemService = fileSystemService;
            _busyProvider      = busyProvider;
            _sourceType        = sourceType;

            RootFolders     = new ObservableCollection <string>();
            SpecificFolders = new ObservableCollection <string>();

            RootFolders.CollectionChanged     += RootFoldersCollectionChanged;
            SpecificFolders.CollectionChanged += SpecificFoldersCollectionChanged;
        }
        public MainWindowViewModel(ISourceService sourceService, IProgressService progressService, IVersionNumberProvider versionNumberProvider)
        {
            if (sourceService == null)
            {
                throw new ArgumentNullException("sourceService");
            }

            this._sourceService         = sourceService;
            this._progressService       = progressService;
            this._versionNumberProvider = versionNumberProvider;
            this.Sources = new ObservableCollection <SourceViewModel>(this._sourceService.GetSources());

            SourcesChangedEventManager.AddListener(sourceService, this);
        }
        public FamilyTreeServiceFactory(IUnitOfWork unitOfWork, ICacheProvider cache)
        {
            Requires.NotNull(unitOfWork);
            Requires.NotNull(cache);

            _citationService = new CitationService(unitOfWork);
            _familyService = new FamilyService(unitOfWork);
            _individualService = new IndividualService(unitOfWork);
            _factService = new FactService(unitOfWork);
            _multimediaService = new MultimediaLinkService(unitOfWork);
            _noteService = new NoteService(unitOfWork);
            _repositoryService = new RepositoryService(unitOfWork);
            _sourceService = new SourceService(unitOfWork);
            _treeService = new TreeService(unitOfWork);
        }
        public MainWindowViewModel(ISourceService sourceService, IProgressService progressService, Lazy<IPackageService> packageServiceLazy, IVersionNumberProvider versionNumberProvider)
        {
            if (sourceService == null)
            {
                throw new ArgumentNullException("sourceService");
            }

            this._sourceService = sourceService;
            this._progressService = progressService;
            this._packageService = packageServiceLazy;
            this._versionNumberProvider = versionNumberProvider;
            this.Sources = new ObservableCollection<SourceViewModel>(this._sourceService.GetSources());

            SourcesChangedEventManager.AddListener(sourceService, this);
        }
示例#47
0
        public PackageService(
            IProgressService progressService,
            ISourceService sourceService,
            Func<IPackageViewModel> packageFactory,
            Func<Type, ILogService> logFunc)
        {
            if (logFunc == null)
            {
                throw new ArgumentNullException("logFunc");
            }

            this._progressService = progressService;
            this._sourceService = sourceService;
            this._packageFactory = packageFactory;
            this._logService = logFunc(typeof(PackageService));
        }
 public MovieViewModelFactory(ISourceService sourceService,
     IMovieMetadataService metadataService,
     IFileSystemService fileSystemService,
     IProgressManagerViewModel progressManager,
     IKeyDataStore keyDataStore,
     IBusyProvider busyProvider,
     IDialogViewer dialogViewer,
     IActorViewModelFactory actorViewModelFactory)
 {
     _sourceService = sourceService;
     _fileSystemService = fileSystemService;
     _metadataService = metadataService;
     _progressManager = progressManager;
     _keyDataStore = keyDataStore;
     _busyProvider = busyProvider;
     _dialogViewer = dialogViewer;
     _actorViewModelFactory = actorViewModelFactory;
 }
示例#49
0
        public ViewModel(IKinectService kinectService, ISourceService sourceService, IBoardService boardService, IHelpService helpService) 
        {
            user = new UserState();

            idleJobQueue = new Queue<Action>();

            this.helpService = helpService;
            this.helpService.NewHelpMessage += new EventHandler<HelpMessageEventArgs>(helpService_NewHelpMessage);

            this.kinectService = kinectService; 

            this.sourceService = sourceService;
            this.sourceService.EventsUpdated += new EventHandler<SourceEventArgs>(sourceService_EventsUpdated);

            this.boardService = boardService;
            this.boardService.BoardsUpdated += new EventHandler(boardService_BoardsChanged);

            appIdleTimer = new DispatcherTimer();
            appIdleTimer.Interval = TimeSpan.FromMinutes(1);
            appIdleTimer.Tick += new EventHandler(appIdle_Tick);
            appIdleTimer.Start();
        }
 public TvShowViewModelFactory(ISourceService sourceService,
     IFileSystemService fileSystemService,
     ITvShowFileService tvShowFileService,
     ITvShowMetadataService tvShowMetadataService,
     IEpisodeMetadataService episodeMetadataService,
     IProgressManagerViewModel progressManagerViewModel,
     IKeyDataStore keyDataStore,
     IBusyProvider busyProvider,
     IDialogViewer dialogViewer,
     IActorViewModelFactory actorViewModelFactory)
 {
     _sourceService = sourceService;
     _fileSystemService = fileSystemService;
     _tvShowFileService = tvShowFileService;
     _tvShowMetadataService = tvShowMetadataService;
     _episodeMetadataService = episodeMetadataService;
     _progressManagerViewModel = progressManagerViewModel;
     _keyDataStore = keyDataStore;
     _busyProvider = busyProvider;
     _dialogViewer = dialogViewer;
     _actorViewModelFactory = actorViewModelFactory;
 }
 public MusicViewModelFactory(IArtistMetadataService artistMetadataService,
     IAlbumMetadataService albumMetadataService,
     ISourceService sourceService,
     IFileSystemService fileSystemService,
     IMusicFileService musicFileService,
     IMusicImageService imageService,
     IMusicImageUpdater imageUpdater,
     IBusyProvider busyProvider,
     IKeyDataStore keyDataStore,
     IProgressManagerViewModel progressManager,
     IDialogViewer dialogViewer)
 {
     _artistMetadataService = artistMetadataService;
     _albumMetadataService = albumMetadataService;
     _sourceService = sourceService;
     _fileSystemService = fileSystemService;
     _musicFileService = musicFileService;
     _imageService = imageService;
     _imageUpdater = imageUpdater;
     _busyProvider = busyProvider;
     _keyDataStore = keyDataStore;
     _progressManager = progressManager;
     _dialogViewer = dialogViewer;
 }
 public static void RemoveListener(ISourceService service, IWeakEventListener listener)
 {
     CurrentManager.ProtectedRemoveListener(service, listener);
 }
 public ODataPackageVersionService(IPackageVersionXMLParser versionXmlParser, ISourceService sourceService, IChocolateyLibDirHelper libDirHelper)
 {
     _versionXmlParser = versionXmlParser;
     _sourceService = sourceService;
     _libDirHelper = libDirHelper;
 }
 public ODataPackagesService(ISourceService sourceService, IPackageVersionXMLParser xmlParser)
 {
     _sourceService = sourceService;
     _xmlParser = xmlParser;
     _libDirHelper = new ChocolateyLibDirHelper();
 }
 public ODataAvailablePackagesService(ISourceService sourceService, IPackageVersionXMLParser xmlParser, IChocolateyLibDirHelper libDirHelper)
 {
     _sourceService = sourceService;
     _xmlParser = xmlParser;
     _libDirHelper = libDirHelper;
 }
 public ODataPackageVersionService(IPackageVersionXMLParser versionXmlParser, ISourceService sourceService)
 {
     this._versionXmlParser = versionXmlParser;
     this._sourceService = sourceService;
     this._libDirHelper = new ChocolateyLibDirHelper();
 }