Exemple #1
0
        public MP3UtilitiesPageViewModel(IChooserDialogsService dialogsService)
        {
            _dialogsService = dialogsService ?? throw new ArgumentNullException(nameof(dialogsService));

            ChooseAlbumDirectoryCommand          = new RelayCommand(OnChooseAlbumDirectory);
            ChooseAuthorAndTitleDirectoryCommand = new RelayCommand(OnChooseAuthorAndTitleDirectory);
        }
Exemple #2
0
        public SourceDefinitionPageViewModel(IMediaDownloader audioDownloader, IChooserDialogsService dialogsService)
        {
            _audioDownloader      = audioDownloader ?? throw new ArgumentNullException(nameof(audioDownloader));
            _dialogsService       = dialogsService ?? throw new ArgumentNullException(nameof(dialogsService));
            _invalidFileNameChars = Path.GetInvalidFileNameChars();

            DownloadCommand     = new RelayCommand(OnDownload);
            CancelCommand       = new RelayCommand(OnCancel);
            ChooseMP3Command    = new RelayCommand(OnChooseMP3);
            MP3UtilitiesCommand = new RelayCommand(OnMP3Utilities);
        }