protected SwitchingPage(TrackListControl trackListControl, AlbumListControl albumListControl, ArtistListControl artistListControl, TracksViewModel viewModel) { InitializeComponent(); TrackListControl = trackListControl; AlbumListControl = albumListControl; ArtistListControl = artistListControl; ViewModel = viewModel; ViewFrame.Content = CurrentControl = trackListControl; }
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(); }