added new project for party mode challenge

This commit is contained in:
Alexander Eckart committed 2012-12-15 19:27:34 +01:00
1 parent 0bb92bbb36
commit a78be79582
11 files changed
+501

No files matched your search

+10
View File
@@ -2,12 +2,17 @@
using System.Collections.Generic;
using System.Text;
using Vocaluxe.PartyModes;
namespace Vocaluxe.Menu
{
public abstract class CMenuParty : CMenu
{
protected IPartyMode _PartyMode;
public CMenuParty()
{
_PartyMode = new CPartyModeNone();
}
public void SetPartyModeID(int PartyModeID)
@@ -20,6 +25,11 @@ namespace Vocaluxe.Menu
return _PartyModeID;
}
public void AssignPartyMode(IPartyMode PartyMode)
{
_PartyMode = PartyMode;
}
/*
public sealed override void LoadTheme()
{
+3
View File
@@ -6,6 +6,7 @@ using System.Windows.Forms;
using Vocaluxe.Menu.SingNotes;
using Vocaluxe.Menu.SongMenu;
using Vocaluxe.PartyModes;
namespace Vocaluxe.Menu
{
@@ -47,6 +48,8 @@ namespace Vocaluxe.Menu
{
void SetPartyModeID(int PartyModeID);
int GetPartyModeID();
void AssignPartyMode(IPartyMode PartyMode);
}
public interface IConfig
+6
View File
@@ -12,6 +12,7 @@ namespace Vocaluxe.PartyModes
protected ScreenSongOptions _ScreenSongOptions;
protected Dictionary<string, CMenuParty> _Screens;
protected string _Folder;
protected Delegate _Callback;
public CPartyMode()
{
@@ -38,6 +39,11 @@ namespace Vocaluxe.PartyModes
_Screens.Add(ScreenName, Screen);
}
public void SetPartyModeCallback(Delegate Callback)
{
_Callback = Callback;
}
public virtual CMenuParty GetNextPartyScreen()
{
return null;
+1
View File
@@ -54,6 +54,7 @@ namespace Vocaluxe.PartyModes
bool Init(string Folder);
void Initialize(Basic Base);
void AddScreen(CMenuParty Screen, string ScreenName);
void SetPartyModeCallback(Delegate Callback);
CMenuParty GetNextPartyScreen();
EScreens GetStartScreen();