private void InitializeModels() { _albumArtModel = _appSettings.AlbumArt; _albumArtPopupModel = _appSettings.AlbumArtPopup; _audioBandModel = _appSettings.AudioBand; _customLabelsModel = _appSettings.CustomLabels; _nextButtonModel = _appSettings.NextButton; _playPauseButtonModel = _appSettings.PlayPauseButton; _previousButtonModel = _appSettings.PreviousButton; _progressBarModel = _appSettings.ProgressBar; _audioSourceSettingsModel = _appSettings.AudioSourceSettings; _trackModel = new Track(); }
public void ListensForProfileChangesAndMapsProperly() { var first = new AlbumArtPopup() { Height = 10 }; var second = new AlbumArtPopup() { Height = 20 }; _appSettings.SetupSequence(m => m.AlbumArtPopup) .Returns(first) .Returns(second) .Returns(second); var vm = new AlbumArtPopupViewModel(_appSettings.Object, _messageBus.Object); Assert.AreEqual(first.Height, vm.Height); _appSettings.Raise(m => m.ProfileChanged += null, EventArgs.Empty); Assert.IsFalse(vm.IsEditing); Assert.AreEqual(second.Height, vm.Height); }
private void AlbumArtOnMouseHover(object o, EventArgs args) { AlbumArtPopup.ShowWithoutRequireFocus("Album Art", this, TaskbarInfo, ScalingFactor); }
private void AlbumArtOnMouseLeave(object o, EventArgs args) { AlbumArtPopup.Hide(this); }