public MusicLibraryViewModel() { var resourceLoader = new ResourceLoader(); _goBackCommand = new StopVideoCommand(); Panels.Add(new Panel(resourceLoader.GetString("Artist").ToUpper(), 0, 1)); Panels.Add(new Panel(resourceLoader.GetString("Tracks").ToUpper(), 1, 0.4)); Panels.Add(new Panel(resourceLoader.GetString("FavoriteAlbums").ToUpper(), 2, 0.4)); }
protected MediaPlaybackViewModel(HistoryService historyService, IMediaService mediaService, VlcService mediaPlayerService) { _historyService = historyService; _mediaService = mediaService; _mediaService.StatusChanged += PlayerStateChanged; _vlcPlayerService = mediaPlayerService; _displayAlwaysOnRequest = new DisplayRequest(); _sliderPositionTimer = new DispatcherTimer(); _sliderPositionTimer.Tick += FirePositionUpdate; _sliderPositionTimer.Interval = TimeSpan.FromMilliseconds(16); _skipAhead = new ActionCommand(() => _mediaService.SkipAhead()); _skipBack = new ActionCommand(() => _mediaService.SkipBack()); _playNext = new PlayNextCommand(); _playPrevious = new PlayPreviousCommand(); _playOrPause = new PlayPauseCommand(); _goBackCommand = new StopVideoCommand(); }