public SongSearchForm(Query queryManager)
 {
     InitializeComponent();
     _queryManager = queryManager;
     _model        = new SearchSongModel(queryManager);
     searchSongModelBindingSource.DataSource = _model;
     BindEvents();
 }
예제 #2
0
 public SearchResultsForm(Query queryManager)
 {
     InitializeComponent();
     _artistModel   = new SearchArtistModel(queryManager);
     _albumModel    = new SearchAlbumModel(queryManager);
     _songModel     = new SearchSongModel(queryManager);
     _playlistModel = new SearchPlaylistModel(queryManager);
     albumSearchBindingSource.DataSource  = _albumModel.SearchResultsList;
     artistSearchBindingSource.DataSource = _artistModel.SearchResultsList;
     songSearchBindingSource.DataSource   = _songModel.SearchResultsList;
     playlistListBindingSource.DataSource = _playlistModel.SearchResultsList;
     BindEvents();
 }