public VideoPlayerViewModel(ICollectionService collectionService, IMiscellaneousService misc, IVideoUrlService videoUrlService) { _collectionService = collectionService; _videoUrlService = videoUrlService; _misc = misc; SimilarVideos = new ObservableCollection <Base>(); }
public SpotifyAlbumViewModel(ISpotifyService spotify, IScrobblerService service, IMiscellaneousService misc, CollectionCommandHelper commands) { _service = service; _misc = misc; _commands = commands; _songClickRelayCommand = new Command <ItemClickEventArgs>(SongClickExecute); }
public MainViewModel(ICollectionService service, IMiscellaneousService misc, CollectionCommandHelper commands, Data.Service.Interfaces.IScrobblerService scroble, PlayerViewModel _playerModel) { _service = service; _commands = commands; _scroble = scroble; _misc = misc; PlayerModel = _playerModel; Message = Core.StringMessage.LoadingPleaseWait; WhatsNewMessage = Core.StringMessage.LoadingPleaseWait; _songClickCommand = new Command <ItemClickEventArgs>(SongClickExecute); _service.LibraryLoaded += _service_LibraryLoaded; }
public SearchViewModel(IScrobblerService service, ISpotifyService spotify, IMiscellaneousService misc, IDeezerService deezer, CollectionCommandHelper commands) { _spotify = spotify; _service = service; _misc = misc; _deezer = deezer; _commands = commands; KeyDownRelayCommand = new Command <KeyRoutedEventArgs>(KeyDownExecute); SongClickRelayCommand = new Command <ItemClickEventArgs>(SongClickExecute); VideoClickCommand = new Command <ItemClickEventArgs>(VideoClickExecute); }
public CollectionViewModel(ICollectionService service, IMiscellaneousService misc, CollectionCommandHelper commands) { _service = service; _commands = commands; _misc = misc; SongClickCommand = new Command <ItemClickEventArgs>(SongClickExecute); VideoClickCommand = new Command <ItemClickEventArgs>(VideoClickExecute); SortedSongs = AlphaKeyGroup <Song> .CreateGroups(Service.Songs.Where(p => !p.IsTemp).ToList(), CultureInfo.CurrentCulture, item => item.Name, true); SortedArtists = AlphaKeyGroup <Artist> .CreateGroups(Service.Artists.Where(p => p.Songs.Count > 0).ToList(), CultureInfo.CurrentCulture, item => item.Name, true); SortedAlbums = AlphaKeyGroup <Album> .CreateGroups(Service.Albums.Where(p => p.Songs.Count > 0).ToList(), CultureInfo.CurrentCulture, item => item.Name, true); SortedVideos = AlphaKeyGroup <Video> .CreateGroups(Service.Videos, CultureInfo.CurrentCulture, item => item.Title, true);//Service.Videos; InitAsync(); }