Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 3
0
        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 ();
            }
        }