protected override void InitializeViews() { SetupMainView(track_view = new TrackListView()); SetupFilterView(genre_view = new QueryFilterView <string> (Catalog.GetString("Not Set"))); artist_view = new ArtistListView(); albumartist_view = new ArtistListView(); if (ArtistFilterType.Get().Equals("artist")) { SetupFilterView(artist_view); } else { SetupFilterView(albumartist_view); } SetupFilterView(year_view = new YearListView()); SetupFilterView(album_view = new AlbumListView()); }
protected override void InitializeViews() { SetupMainView(track_view = new TrackListView()); SetupFilterView(genre_view = new QueryFilterView <string> (Catalog.GetString("Not Set"))); Widget genre_view_widget = (Widget)genre_view; genre_view_widget.Parent.Shown += delegate { genre_view_widget.Parent.Visible = GenreFilterVisible.Get(); }; if (ArtistFilterType.Get().Equals("artist")) { SetupFilterView(artist_view = new ArtistListView()); artist_view.Parent.Shown += delegate { artist_view.Parent.Visible = ArtistFilterVisible.Get(); }; albumartist_view = new ArtistListView(); } else { SetupFilterView(albumartist_view = new ArtistListView()); albumartist_view.Parent.Shown += delegate { albumartist_view.Parent.Visible = ArtistFilterVisible.Get(); }; artist_view = new ArtistListView(); } SetupFilterView(year_view = new YearListView()); Widget year_view_widget = (Widget)year_view; year_view_widget.Parent.Shown += delegate { year_view_widget.Parent.Visible = YearFilterVisible.Get(); }; SetupFilterView(album_view = new AlbumListView()); }
protected override void InitializeViews () { SetupMainView (track_view = new TrackListView ()); SetupFilterView (genre_view = new QueryFilterView<string> (Catalog.GetString ("Not Set"))); Widget genre_view_widget = (Widget)genre_view; genre_view_widget.Parent.Shown += delegate { genre_view_widget.Parent.Visible = GenreFilterVisible.Get (); }; if (ArtistFilterType.Get ().Equals ("artist")) { SetupFilterView (artist_view = new ArtistListView ()); artist_view.Parent.Shown += delegate { artist_view.Parent.Visible = ArtistFilterVisible.Get (); }; albumartist_view = new ArtistListView (); } else { SetupFilterView (albumartist_view = new ArtistListView ()); albumartist_view.Parent.Shown += delegate { albumartist_view.Parent.Visible = ArtistFilterVisible.Get (); }; artist_view = new ArtistListView (); } SetupFilterView (year_view = new YearListView ()); Widget year_view_widget = (Widget)year_view; year_view_widget.Parent.Shown += delegate { year_view_widget.Parent.Visible = YearFilterVisible.Get (); }; SetupFilterView (album_view = new AlbumListView ()); }