added challenge main screen (just testing)

This commit is contained in:
Alexander Eckart committed 2012-12-15 12:38:48 +01:00
1 parent fb4c7de142
commit 41f8f9ce72
12 files changed
+275 -41

No files matched your search

+26
View File
@@ -207,6 +207,32 @@ namespace Vocaluxe.Menu
return values;
}
public static bool GetInnerValuesFromXML(string Cast, XPathNavigator Navigator, ref List<string> Values)
{
try
{
Navigator.MoveToRoot();
Navigator.MoveToFirstChild();
Navigator.MoveToFirstChild();
while (Navigator.Name != Cast)
Navigator.MoveToNext();
Navigator.MoveToFirstChild();
Values.Add(Navigator.Value);
while (Navigator.MoveToNext())
Values.Add(Navigator.Value);
}
catch
{
return false;
}
return true;
}
public static bool ItemExistsInXML(string Cast, XPathNavigator Navigator)
{
XPathNodeIterator iterator;
+1 -1
View File
@@ -4,7 +4,7 @@ using System.Text;
namespace Vocaluxe.Menu
{
abstract class CMenuParty : CMenu
public abstract class CMenuParty : CMenu
{
public CMenuParty()
{
+13 -8
View File
@@ -10,30 +10,35 @@ namespace Vocaluxe.PartyModes
{
protected Basic _Base;
protected ScreenSongOptions _ScreenSongOptions;
protected List<CMenu> _Screens;
protected Dictionary<string, CMenuParty> _Screens;
protected string _Folder;
public CPartyMode()
{
_Screens = new List<CMenu>();
_Screens = new Dictionary<string, CMenuParty>();
_Folder = String.Empty;
_ScreenSongOptions = new ScreenSongOptions();
_ScreenSongOptions.Selection = new SelectionOptions();
_ScreenSongOptions.Sorting = new SortingOptions();
}
public void Initialize(Basic Base)
{
_Base = Base;
}
#region Implementation
public virtual bool Init(string Folder)
{
return false;
}
public virtual CMenu GetNextPartyScreen()
public void Initialize(Basic Base)
{
_Base = Base;
}
public void AddScreen(CMenuParty Screen, string ScreenName)
{
_Screens.Add(ScreenName, Screen);
}
public virtual CMenuParty GetNextPartyScreen()
{
return null;
}
+2
View File
@@ -2,6 +2,8 @@
using System.Collections.Generic;
using System.Text;
using Vocaluxe.Menu;
namespace Vocaluxe.PartyModes
{
public class CPartyModeNone : CPartyMode
+1 -1
View File
@@ -7,7 +7,7 @@ using Vocaluxe.Menu;
namespace Vocaluxe.PartyModes
{
public class CScreenPartyDummy : CMenu
public class CScreenPartyDummy : CMenuParty
{
// Version number for theme files. Increment it, if you've changed something on the theme files!
const int ScreenVersion = 1;
+2 -1
View File
@@ -53,8 +53,9 @@ namespace Vocaluxe.PartyModes
{
bool Init(string Folder);
void Initialize(Basic Base);
void AddScreen(CMenuParty Screen, string ScreenName);
CMenu GetNextPartyScreen();
CMenuParty GetNextPartyScreen();
EScreens GetStartScreen();
EScreens GetMainScreen();
ScreenSongOptions GetScreenSongOptions();