/// <summary> /// Called during startup, or library change, when the storage data is available /// </summary> /// <param name="message"></param> private static void StorageDataAvailable() { // Save the current playback mode obtained from the Playback object PlaybackModeModel.AutoOn = Playback.AutoPlayOn; PlaybackModeModel.RepeatOn = Playback.RepeatPlayOn; PlaybackModeModel.ShuffleOn = Playback.ShufflePlayOn; // Update the summary state in the model PlaybackModeModel.UpdateActivePlayMode(); DataReporter?.DataAvailable(); }
/// <summary> /// Called when the playback data is available to be displayed /// </summary> private static void StorageDataAvailable() { // Save the libray being used locally to detect changes PlaybackManagerModel.LibraryId = ConnectionDetailsModel.LibraryId; // Get the sources associated with the library PlaybackManagerModel.Sources = Sources.GetSourcesForLibrary(PlaybackManagerModel.LibraryId); PlaybackManagerModel.DataValid = true; // Let the views know that playback data is available DataReporter?.DataAvailable(); }
/// <summary> /// Called during startup when the storage data is available /// </summary> private static void StorageDataAvailable() { DataReporter?.DataAvailable(); }
/// <summary> /// Called during startup when the storage data is available /// </summary> private static void StorageDataAvailable() { LibraryNameViewModel.LibraryName = Libraries.GetLibraryById(ConnectionDetailsModel.LibraryId).Name; DataReporter?.DataAvailable(); }
/// <summary> /// Public constructor to allow permanent message registrations /// </summary> static LibraryNameDisplayController() { // When a library change message is received save it and report SelectedLibraryChangedMessage.Register(( int _ ) => { StorageDataAvailable(); DataReporter?.DataAvailable(); }); }