Example #1
0
 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();
 }
Example #2
0
        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);
        }
Example #3
0
 private void AlbumArtOnMouseHover(object o, EventArgs args)
 {
     AlbumArtPopup.ShowWithoutRequireFocus("Album Art", this, TaskbarInfo, ScalingFactor);
 }
Example #4
0
 private void AlbumArtOnMouseLeave(object o, EventArgs args)
 {
     AlbumArtPopup.Hide(this);
 }