Пример #1
0
 // public ActionService(ISelectedFileService selectedFileService, IAudioPlaybackService audioPlaybackService, IAppSettingService appSettingService)
 public ActionService()
 {
     this.selectedFileService   = UnityHandler.UnityContainer.Resolve <ISelectedFileService>();
     this.appSettingService     = UnityHandler.UnityContainer.Resolve <IAppSettingService>();
     this.audioPlaybackService  = UnityHandler.UnityContainer.Resolve <IAudioPlaybackService>();
     this.audioRecordingService = UnityHandler.UnityContainer.Resolve <IAudioRecordingService>();
 }
Пример #2
0
        public SelectedFileControl()
        {
            DataContext = this;
            InitializeComponent();

            if (DesignerProperties.GetIsInDesignMode(this))
            {
                this.actionService        = new DesignerActionService();
                this.appSettingService    = new DesignerAppSettingService();
                this.audioPlaybackService = new DesignerAudioPlaybackService();

                this.SelectedFileService = new DesignerSelectedFileService();
            }
            else
            {
                // ToDo: Evil Hack to have the cake (see actual design in design mode) and eat it too (have different styles at runtime)
                this.Resources            = null;
                this.actionService        = UnityHandler.UnityContainer.Resolve <IActionService>();
                this.appSettingService    = UnityHandler.UnityContainer.Resolve <IAppSettingService>();
                this.audioPlaybackService = UnityHandler.UnityContainer.Resolve <IAudioPlaybackService>();

                this.SelectedFileService = UnityHandler.UnityContainer.Resolve <ISelectedFileService>();

                SelectedFileService.PropertyChanged += SelectedFileService_PropertyChanged;
            }
        }
Пример #3
0
        public SongService(IAudioPlaybackService audioPlaybackService)
        {
            _audioPlaybackService = audioPlaybackService;

            _songQueue       = new BufferBlock <IPlayable>();
            _concurrentQueue = new ConcurrentQueue <IPlayable>();

            _isPlaying = false;
        }
Пример #4
0
        // public ActionService(ISelectedFileService selectedFileService, IAudioPlaybackService audioPlaybackService, IAppSettingService appSettingService)
        public ActionService()
        {
            this.selectedFileService   = UnityHandler.UnityContainer.Resolve <ISelectedFileService>();
            this.appSettingService     = UnityHandler.UnityContainer.Resolve <IAppSettingService>();
            this.audioPlaybackService  = UnityHandler.UnityContainer.Resolve <IAudioPlaybackService>();
            this.audioRecordingService = UnityHandler.UnityContainer.Resolve <IAudioRecordingService>();
            this.hotkeyService         = UnityHandler.UnityContainer.Resolve <IApplicationHotkeyService>();

            hotkeyService.ResetAndReadHotkeysFromConfig(this);
        }
Пример #5
0
        public ApplicationHotkeyService(
            ISimpleGlobalHotkeyService globalHotkeyService,
            IAppSettingService appSettingService,
            IAudioRecordingService audioRecordingService,
            IAudioPlaybackService audioPlaybackService,
            IActionService actionService)
        {
            this.globalHotkeyService   = globalHotkeyService;
            this.appSettingService     = appSettingService;
            this.audioRecordingService = audioRecordingService;
            this.audioPlaybackService  = audioPlaybackService;

            this.actionService = actionService;
            //ResetAndReadHotkeysFromConfig();
        }
 public AudioItemsProviderService(IAudioFileScannerService audioFileScannerService,
                                  IAudioPlaybackService audioPlaybackService)
 {
     _audioFileScannerService = audioFileScannerService;
     _audioPlaybackService    = audioPlaybackService;
 }