Ejemplo n.º 1
0
        protected SwitchingPage(TrackListControl trackListControl, AlbumListControl albumListControl,
                                ArtistListControl artistListControl, TracksViewModel viewModel)
        {
            InitializeComponent();
            TrackListControl  = trackListControl;
            AlbumListControl  = albumListControl;
            ArtistListControl = artistListControl;
            ViewModel         = viewModel;

            ViewFrame.Content = CurrentControl = trackListControl;
        }
Ejemplo n.º 2
0
        public TracksView(TrackListControl trackListControl, AlbumListControl albumListControl,
                          ArtistListControl artistListControl, TracksViewModel viewModel)
            : base(trackListControl, albumListControl, artistListControl, viewModel)
        {
            this.trackListControl  = trackListControl;
            this.albumListControl  = albumListControl;
            this.artistListControl = artistListControl;

            albumListControl.ToTracksByAlbum   += OnToTracksByAlbum;
            artistListControl.ToAlbumsByArtist += OnToAlbumsByArtist;
            trackListControl.ToAlbum           += OnToTracksByAlbum;
            trackListControl.ToArtist          += OnToAlbumsByArtist;

            Refresh();
        }