public AudioSearchViewModel( InTouch inTouch, INavigationService navigationService, ILocService locService, ISettingsService settingsService, IDialogsService dialogsService, IPlayerService playerService, IAppLoaderService appLoaderService, IDownloadsServiceHelper downloadsServiceHelper, IInTouchWrapper inTouchWrapper, IPurchaseService purchaseService) : base(inTouch, navigationService, locService, settingsService, dialogsService, inTouchWrapper) { _playerService = playerService; _appLoaderService = appLoaderService; _downloadsServiceHelper = downloadsServiceHelper; _purchaseService = purchaseService; DownloadCommand = new DelegateCommand <Audio>(OnDownloadCommand); DownloadSelectedCommand = new DelegateCommand(OnDownloadSelectedCommand, HasSelectedItems); AddToMyAudiosCommand = new DelegateCommand <Audio>(OnAddToMyAudiosCommand, CanAddToMyAudios); AddSelectedToMyAudiosCommand = new DelegateCommand(OnAddSelectedToMyAudiosCommand, HasSelectedItems); DeleteCommand = new DelegateCommand <Audio>(OnDeleteCommand, CanDeleteAudio); DeleteSelectedCommand = new DelegateCommand(OnDeleteSelectedCommand, HasSelectedItems); PlaySelectedCommand = new DelegateCommand(OnPlaySelectedCommand, HasSelectedItems); ShowPerformerFlyoutCommand = new DelegateCommand(OnShowPerformerFlyoutCommand); ShowTrackInfoCommand = new DelegateCommand <Audio>(OnShowTrackInfoCommand); }
public PopularVKAudioViewModel( InTouch inTouch, IAppLoaderService appLoaderService, IDialogsService dialogsService, IInTouchWrapper inTouchWrapper, IDownloadsServiceHelper downloadsServiceHelper, IPlayerService playerService, ILocService locService, INavigationService navigationService, ISettingsService settingsService, IPurchaseService purchaseService) : base(inTouch, appLoaderService, dialogsService, inTouchWrapper, downloadsServiceHelper, playerService, locService, navigationService, purchaseService) { _settingsService = settingsService; IsReloadButtonSupported = true; IsPlayButtonSupported = true; IsShuffleButtonSupported = true; ShowFilterFlyoutCommand = new DelegateCommand(OnShowFilterFlyoutCommand); FilterFlyoutClosedCommand = new DelegateCommand(OnFilterFlyoutClosedCommand); CreateFilters(); }
public SettingsViewModel( INavigationService navigationService, IVKLoginService vkLoginService, ISettingsService settingsService, ILastFmLoginService lastFmLoginSevice, ILocService locService, IDialogsService dialogsService, IInTouchWrapper inTouchWrapper, InTouch inTouch, ILaunchViewResolver launchViewResolver, INotificationsService notificationsService) { _navigationService = navigationService; _vkLoginService = vkLoginService; _settingsService = settingsService; _lastFmLoginService = lastFmLoginSevice; _inTouchWrapper = inTouchWrapper; _inTouch = inTouch; _locService = locService; _dialogsService = dialogsService; _launchViewResolver = launchViewResolver; _notificationsService = notificationsService; Authorizations = new ObservableCollection <IServiceAuthorization>(); UpdateDatabaseCommand = new DelegateCommand(OnUpdateDatabaseCommand); ExtractMp3FromVksmCommand = new DelegateCommand(OnExtractMp3FromVksmCommand); }
public UserCommViewModel(InTouch inTouch, INavigationService navigationService, IInTouchWrapper inTouchWrapper) { _inTouch = inTouch; _navigationService = navigationService; _inTouchWrapper = inTouchWrapper; ExecuteItemCommand = new DelegateCommand <object>(OnExecuteItemCommand); NotImplementedCommand = new DelegateCommand(() => _navigationService.Navigate("AccessDeniedView", null)); }
public VKAdService( IInTouchWrapper inTouchWrapper, InTouch inTouch, IMetricaService metricaService, ILogService logService) { _inTouchWrapper = inTouchWrapper; _inTouch = inTouch; _metricaService = metricaService; _logService = logService; }
public UploadsPreprocessor( InTouch inTouch, IInTouchWrapper inTouchWrapper, ILocService locService, IDialogsService dialogsService) { _inTouch = inTouch; _inTouchWrapper = inTouchWrapper; _locService = locService; _dialogsService = dialogsService; }
public TrackLyricsViewModel(InTouch inTouch, INavigationService navigationService, IDialogsService dialogService, ILocService locService, IInTouchWrapper inTouchWrapper) { _inTouch = inTouch; _navigationService = navigationService; _dialogService = dialogService; _locService = locService; _inTouchWrapper = inTouchWrapper; ReloadLyricsCommand = new DelegateCommand(OnReloadLyricsCommand); }
public UserContentViewModel( InTouch inTouch, INavigationService navigationService, IPlayerService playerService, IDownloadsServiceHelper downloadsServiceHelper, IAppLoaderService appLoaderService, IVKLoginService vkLoginService, IDialogsService dialogsService, ILocService locService, IInTouchWrapper inTouchWrapper, ILaunchViewResolver launchViewResolver, IPurchaseService purchaseService) { _inTouch = inTouch; _navigationService = navigationService; _playerService = playerService; _downloadsServiceHelper = downloadsServiceHelper; _appLoaderService = appLoaderService; _vkLoginService = vkLoginService; _dialogsService = dialogsService; _locService = locService; _inTouchWrapper = inTouchWrapper; _launchViewResolver = launchViewResolver; _purchaseService = purchaseService; SelectedItems = new List <object>(); PrimaryItems = new ObservableCollection <ICommandBarElement>(); SecondaryItems = new ObservableCollection <ICommandBarElement>(); ExecuteTracksListItemCommand = new DelegateCommand <object>(OnExecuteTracksListItemCommand); NotImplementedCommand = new DelegateCommand(() => _navigationService.Navigate("AccessDeniedView", null)); DownloadItemCommand = new DelegateCommand <object>(OnDownloadItemCommand, CanExecuteDownloadItemCommand); ActivateSelectionMode = new DelegateCommand(SetSelectionMode, CanSelectionMode); ReloadContentCommand = new DelegateCommand(OnReloadContentCommand); DownloadSelectedCommand = new DelegateCommand(OnDownloadSelectedCommand, CanExecuteDownloadSelectedCommand); SelectionChangedCommand = new DelegateCommand(OnSelectionChangedCommand); SelectAllCommand = new DelegateCommand(OnSelectAllCommand, CanSelectionMode); AddToMyCollectionCommand = new DelegateCommand <object>(OnAddToMyCollection, CanAddToMyCollection); AddSelectedToMyCollectionCommand = new DelegateCommand(OnAddSelectedToMyCollection, CanAddSelected); PlaySelectedCommand = new DelegateCommand(OnPlaySelectedCommand, HasSelectedAudios); PlayShuffleCommand = new DelegateCommand(OnPlayShuffleCommand); DeleteCommand = new DelegateCommand <object>(OnDeleteCommand, CanDelete); DeleteSelectedCommand = new DelegateCommand(OnDeleteSelectedCommand, CanDeleteSelected); OpenTransferManagerCommand = new DelegateCommand(OnOpenTransferManagerCommand); OpenMainViewCommand = new DelegateCommand(OnOpenMainViewCommand); ShowTrackInfoCommand = new DelegateCommand <Audio>(OnShowTrackInfoCommand); }
protected VKAudioImplementedViewModel( InTouch inTouch, IAppLoaderService appLoaderService, IDialogsService dialogsService, IInTouchWrapper inTouchWrapper, IDownloadsServiceHelper downloadsServiceHelper, IPlayerService playerService, ILocService locService, INavigationService navigationService, IPurchaseService purchaseService) : base(inTouch, appLoaderService, dialogsService, inTouchWrapper, downloadsServiceHelper, playerService, locService, navigationService, purchaseService) { }
public UploadsPostprocessor( InTouch inTouch, IInTouchWrapper inTouchWrapper, ILogService logService, IDialogsService dialogsService, ILocService locService, IAppNotificationsService appNotificationsService) { _inTouch = inTouch; _inTouchWrapper = inTouchWrapper; _logService = logService; _dialogsService = dialogsService; _locService = locService; _appNotificationsService = appNotificationsService; }
public RecommendedViewModel( InTouch inTouch, INavigationService navigationService, IPlayerService playerService, IDownloadsServiceHelper downloadsServiceHelper, IAppLoaderService appLoaderService, IDialogsService dialogsService, ILocService locService, IInTouchWrapper inTouchWrapper, IPurchaseService purchaseService) : base(inTouch, appLoaderService, dialogsService, inTouchWrapper, downloadsServiceHelper, playerService, locService, navigationService, purchaseService) { IsReloadButtonSupported = true; }
public VideoSearchViewModel(InTouch inTouch, INavigationService navigationService, ILocService locService, ISettingsService settingsService, IDialogsService dialogsService, IAppLoaderService appLoaderService, IInTouchWrapper inTouchWrapper) : base(inTouch, navigationService, locService, settingsService, dialogsService, inTouchWrapper) { _appLoaderService = appLoaderService; AddToMyVideosCommand = new DelegateCommand <Video>(OnAddToMyVideosCommand, CanAddToMyVideos); AddSelectedToMyVideosCommand = new DelegateCommand(OnAddSelectedToMyAudiosCommand, HasSelectedItems); DeleteCommand = new DelegateCommand <Video>(OnDeleteCommand, CanDeleteVideo); DeleteSelectedCommand = new DelegateCommand(OnDeleteSelectedCommand, HasSelectedItems); ShowFilterFlyoutCommand = new DelegateCommand(OnShowPerformerFlyoutCommand); FilterFlyoutClosedCommand = new DelegateCommand(OnFilterFlyoutClosedCommand); CreateFilters(); }
public AdsService( INavigationService navigationService, ISettingsService settingsService, IDialogsService dialogsService, ILocService locService, IMetricaService metricaService, IInTouchWrapper inTouchWrapper, InTouch inTouch) { _navigationService = navigationService; _settingsService = settingsService; _dialogsService = dialogsService; _locService = locService; _metricaService = metricaService; _inTouchWrapper = inTouchWrapper; _inTouch = inTouch; }
public PlayerViewModel( InTouch inTouch, IInTouchWrapper inTouchWrapper, INavigationService navigationService, IPlayerService playerService, IPlayerPlaylistService playerPlaylistService, IImagesCacheService imagesCacheService, ITracksShuffleService tracksShuffleService, IDownloadsServiceHelper downloadsServiceHelper, IAppLoaderService appLoaderService, ILastFmLoginService lastFmLoginService, IPurchaseService purchaseService, ILocService locService, IDialogsService dialogsService, IAppNotificationsService appNotificationsService, ISettingsService settingsService) : base(inTouch, appLoaderService, dialogsService, inTouchWrapper, downloadsServiceHelper, playerService, locService, navigationService, purchaseService) { #if DEBUG Debug.WriteLine("Вызван конструктор PlayerViewModel."); #endif IsReloadButtonSupported = false; IsShuffleButtonSupported = false; IsPlayButtonSupported = false; _playerPlaylistService = playerPlaylistService; _imagesCacheService = imagesCacheService; _tracksShuffleSevice = tracksShuffleService; _lastFmLoginService = lastFmLoginService; _appNotificationsService = appNotificationsService; _settingsService = settingsService; _timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(500) }; NextTrackCommand = new DelegateCommand(OnNextTrackCommand); PreviousTrackCommand = new DelegateCommand(OnPreviosTrackCommand); PlayPauseCommand = new DelegateCommand(OnPlayPauseCommand); PlayTrackCommand = new DelegateCommand <PlayerItem>(OnPlayTrackCommand); ShowLyricsCommand = new DelegateCommand(OnShowLyricsCommand, () => CurrentTrack?.Track.VKInfo != null && CurrentTrack.Track.VKInfo.LyricsID != 0); }
public AudioAlbumViewModel( INavigationService navigationService, IPlayerService playerService, IDownloadsServiceHelper downloadsServiceHelper, InTouch inTouch, IAppLoaderService appLoaderService, IDialogsService dialogsService, ILocService locService, IInTouchWrapper inTouchWrapper, IPurchaseService purchaseService) : base(inTouch, appLoaderService, dialogsService, inTouchWrapper, downloadsServiceHelper, playerService, locService, navigationService, purchaseService) { IsReloadButtonSupported = true; DeleteAudioCommand = new DelegateCommand <Audio>(OnDeleteAudioCommand, CanDeleteAudio); DeleteSelectedCommand = new DelegateCommand(OnDeleteSelectedCommand, HasSelectedItems); }
public TrackInfoViewModel( INavigationService navigationService, InTouch inTouch, IInTouchWrapper inTouchWrapper, IPlayerService playerService, IDownloadsServiceHelper downloadsServiceHelper, IAppLoaderService appLoaderService, IDialogsService dialogsService, ILocService locService, IImagesCacheService imagesCacheService, IPurchaseService purchaseService) : base(inTouch, appLoaderService, dialogsService, inTouchWrapper, downloadsServiceHelper, playerService, locService, navigationService, purchaseService) { _imagesCacheService = imagesCacheService; ShowOtherTracksCommand = new DelegateCommand(OnShowOtherTracksCommand); }
public MainViewModel( InTouch inTouch, LastfmClient lfClient, IInTouchWrapper inTouchWrapper, INavigationService navigationService, IPurchaseService purchaseService, IPlayerService playerService, IDownloadsServiceHelper downloadsServiceHelper, IImagesCacheService imagesCacheService, IAdsService adsService) { _inTouch = inTouch; _lfClient = lfClient; _inTouchWrapper = inTouchWrapper; _navigationService = navigationService; _purchaseService = purchaseService; _playerService = playerService; _downloadsServiceHelper = downloadsServiceHelper; _imagesCacheService = imagesCacheService; _adsService = adsService; GoToTrackInfoCommand = new DelegateCommand <LastTrack>(OnGoToTrackInfoCommand); GoToArtistInfoCommand = new DelegateCommand <LastArtist>(OnGoToArtistInfoCommand); GoToTopTracksCommand = new DelegateCommand(OnGoToTopTracksCommand); GoToTopArtistsCommand = new DelegateCommand(OnGoTopArtistsCommand); GoToUserContentCommand = new DelegateCommand <string>(OnGoToUserContentCommand); GoToUserCommCommand = new DelegateCommand <string>(OnGoToUserCommCommand); GoToTransferViewCommand = new DelegateCommand <string>(OnGoToTransferViewCommand); GoToAboutViewCommand = new DelegateCommand(OnGoToAboutViewCommand); GoToRecommendedViewCommand = new DelegateCommand(OnGoToRecommendedViewCommand); GoToPlayerViewCommand = new DelegateCommand(OnGoToPlayerViewCommand); PlayRecommendedTracksCommand = new DelegateCommand <Audio>(OnPlayRecommendedTracksCommand); PlayUserTracksCommand = new DelegateCommand <Audio>(OnPlayUserTracksCommand); DownloadTrackCommand = new DelegateCommand <Audio>(OnDownloadTrackCommand); GoToSearchCommand = new DelegateCommand(OnGoToSearchCommand); GoToSettingsViewCommand = new DelegateCommand(OnGoToSettingsViewCommand); GoToNewsViewCommand = new DelegateCommand(OnGoToNewsViewCommand); GoToLibraryViewCommand = new DelegateCommand <string>(OnGoToLibraryViewCommand); GoToUploadFileViewCommand = new DelegateCommand(OnGoToUploadFileViewCommand); GoToPopularVKViewCommand = new DelegateCommand(OnGoToPopularVKViewCommand); NotImplementedCommand = new DelegateCommand(() => _navigationService.Navigate("AccessDeniedView", null)); }
protected VKAudioViewModel( InTouch inTouch, IAppLoaderService appLoaderService, IDialogsService dialogsService, IInTouchWrapper inTouchWrapper, IDownloadsServiceHelper downloadsServiceHelper, IPlayerService playerService, ILocService locService, INavigationService navigationService, IPurchaseService purchaseService) : base(downloadsServiceHelper, appLoaderService, playerService, locService, navigationService) { _inTouch = inTouch; _dialogsService = dialogsService; _inTouchWrapper = inTouchWrapper; _purchaseService = purchaseService; AddToMyAudiosCommand = new DelegateCommand <T>(OnAddToMyAudiosCommand, CanAddToMyAudios); AddSelectedToMyAudiosCommand = new DelegateCommand(OnAddSelectedToMyAudiosCommand, () => HasSelectedItems() & CanAddSelectedAudios()); ShowTrackInfoCommand = new DelegateCommand <T>(OnShowTrackInfoCommand, CanShowTrackInfo); }
public VideoAlbumViewModel(INavigationService navigationService, InTouch inTouch, IAppLoaderService appLoaderService, IDialogsService dialogsService, ILocService locService, IInTouchWrapper inTouchWrapper) { _navigationService = navigationService; _inTouch = inTouch; _dialogsService = dialogsService; _locService = locService; _appLoaderService = appLoaderService; _inTouchWrapper = inTouchWrapper; PrimaryItems = new ObservableCollection <ICommandBarElement>(); SecondaryItems = new ObservableCollection <ICommandBarElement>(); ReloadContentCommand = new DelegateCommand(OnReloadContentCommand); AddToMyVideosCommand = new DelegateCommand <Video>(OnAddToMyVideosCommand, CanAddToMyVideos); OpenVideoCommand = new DelegateCommand <Video>(OnOpenVideoCommand); OpenTransferManagerCommand = new DelegateCommand(OnOpenTransferManagerCommand); DeleteVideoCommand = new DelegateCommand <Video>(OnDeleteVideoCommand, CanDeleteVideo); }
public PlayerViewModel( InTouch inTouch, IInTouchWrapper inTouchWrapper, INavigationService navigationService, IPlayerService playerService, IPlayerPlaylistService playerPlaylistService, IImagesCacheService imagesCacheService, ITracksShuffleService tracksShuffleService, IDownloadsServiceHelper downloadsServiceHelper, IAppLoaderService appLoaderService, ILastFmLoginService lastFmLoginService, IPurchaseService purchaseService, ILocService locService, IDialogsService dialogsService, IAppNotificationsService appNotificationsService, ISettingsService settingsService, IEventAggregator eventAggregator) : this(inTouch, inTouchWrapper, navigationService, playerService, playerPlaylistService, imagesCacheService, tracksShuffleService, downloadsServiceHelper, appLoaderService, lastFmLoginService, purchaseService, locService, dialogsService, appNotificationsService, settingsService) { _eventAggregator = eventAggregator; }
public SearchViewModelBase(InTouch inTouch, INavigationService navigationService, ILocService locService, ISettingsService settingsService, IDialogsService dialogsService, IInTouchWrapper inTouchWrapper) { _inTouch = inTouch; _navigationService = navigationService; _locService = locService; _settingsService = settingsService; _dialogsService = dialogsService; _inTouchWrapper = inTouchWrapper; PrimaryItems = new ObservableCollection <ICommandBarElement>(); SecondaryItems = new ObservableCollection <ICommandBarElement>(); SelectedItems = new List <object>(); QueryBoxKeyDownCommand = new DelegateCommand <KeyRoutedEventArgs>(OnQueryBoxKeyDownCommand); SelectionChangedCommand = new DelegateCommand(OnSelectionChangedCommand); ExecuteItemCommand = new DelegateCommand <T>(OnExecuteItemCommand); OpenTransferManagerCommand = new DelegateCommand(OnOpenTransferManagerCommand); ReloadCommand = new DelegateCommand(Search); ActivateSelectionModeCommand = new DelegateCommand(SetSelectionMode, CanActivateSelectionModeCommand); SelectAllCommand = new DelegateCommand(() => SelectAll = !SelectAll); }