Encapsulated CMain Classes

This commit is contained in:
Flamefire committed 2013-04-23 22:23:12 +02:00
1 parent f53e08607b
commit 7663b84f71
10 files changed
+81 -70

No files matched your search

+7 -7
View File
@@ -411,7 +411,7 @@ namespace Vocaluxe.Base
GC.Collect();
_CurrentScreen = _NextScreen;
_NextScreen = EScreens.ScreenNull;
if (CBackgroundMusic.Playing)
if (CBackgroundMusic.IsPlaying)
CBackgroundMusic.Play();
_Screens[(int)_CurrentScreen].OnShowFinish();
_Screens[(int)_CurrentScreen].ProcessMouseMove(_Cursor.X, _Cursor.Y);
@@ -542,15 +542,15 @@ namespace Vocaluxe.Base
if (popupPlayerControlAllowed && CConfig.BackgroundMusic == EOffOn.TR_CONFIG_ON)
{
if (keyEvent.Key == Keys.MediaNextTrack)
CMain.BackgroundMusic.Next();
CBackgroundMusic.Next();
else if (keyEvent.Key == Keys.MediaPreviousTrack)
CMain.BackgroundMusic.Previous();
CBackgroundMusic.Previous();
else if (keyEvent.Key == Keys.MediaPlayPause)
{
if (CMain.BackgroundMusic.IsPlaying())
CMain.BackgroundMusic.Pause();
if (CBackgroundMusic.IsPlaying)
CBackgroundMusic.Pause();
else
CMain.BackgroundMusic.Play();
CBackgroundMusic.Play();
}
}
@@ -600,7 +600,7 @@ namespace Vocaluxe.Base
_VolumePopupTimer.Start();
}
CMain.BackgroundMusic.ApplyVolume();
CBackgroundMusic.ApplyVolume();
}
if (keyEvent.ModShift && (keyEvent.Key == Keys.F1))