protected override Widget GetItemWidget() { TerseTrackListView track_list = new TerseTrackListView(); track_list.SetModel(Music.DatabaseTrackModel); return(track_list); }
private void InitPlayQueue(PlayQueueSource play_queue) { if (actions == null) { actions = new MuinsheeActions(play_queue); actions.Actions.AddActionGroup(actions); ServiceManager.SourceManager.SetActiveSource(play_queue); play_queue.TrackModel.Reloaded += HandleTrackModelReloaded; BuildPrimaryLayout(); ConnectEvents(); track_view.SetModel(play_queue.TrackModel); InitialShowPresent(); } }
private void InitPlayQueue(PlayQueueSource play_queue) { if (actions == null) { play_queue.Populate = false; played_songs_number = PlayQueueSource.PlayedSongsNumberSchema.Get(); var service = ServiceManager.Get <PreferenceService> (); var section = service["source-specific"].ChildPages[play_queue.PreferencesPageId][null]; played_songs_number_pref = (SchemaPreference <int>)section[PlayQueueSource.PlayedSongsNumberSchema.Key]; played_songs_number_pref.Value = 0; actions = new MuinsheeActions(play_queue); actions.Actions.AddActionGroup(actions); ServiceManager.SourceManager.SetActiveSource(play_queue); play_queue.TrackModel.Reloaded += HandleTrackModelReloaded; BuildPrimaryLayout(); ConnectEvents(); track_view.SetModel(play_queue.TrackModel); InitialShowPresent(); } }
private void InitPlayQueue(PlayQueueSource play_queue) { ServiceManager.SourceManager.SetActiveSource(play_queue); //play_queue.TrackModel.Reloaded += HandleTrackModelReloaded; playqueue_view.SetModel(play_queue.TrackModel); }