Merge branch 'release-0.3' of https://github.com/flokuep/Vocaluxe into release-0.3
This commit is contained in:
commit
b906f531a5
2 files changed
+37
-33
No files matched your search
@@ -483,7 +483,7 @@ namespace Vocaluxe.Base
|
|||||||
command.ExecuteNonQuery();
|
command.ExecuteNonQuery();
|
||||||
|
|
||||||
command.CommandText = "CREATE TABLE IF NOT EXISTS Songs ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " +
|
command.CommandText = "CREATE TABLE IF NOT EXISTS Songs ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " +
|
||||||
"Artist TEXT NOT NULL, Title TEXT NOT NULL, NumPlayed INTEGER);";
|
"Artist TEXT NOT NULL, Title TEXT NOT NULL, NumPlayed INTEGER, DateAdded BIGING);";
|
||||||
command.ExecuteNonQuery();
|
command.ExecuteNonQuery();
|
||||||
|
|
||||||
command.CommandText = "CREATE TABLE IF NOT EXISTS Scores ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " +
|
command.CommandText = "CREATE TABLE IF NOT EXISTS Scores ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " +
|
||||||
|
|||||||
@@ -1126,41 +1126,45 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
private void _ToggleSongOptions(ESongOptionsView view)
|
private void _ToggleSongOptions(ESongOptionsView view)
|
||||||
{
|
{
|
||||||
_SelectSlides[_SelectSlideOptionsMode].Visible = false;
|
|
||||||
_SelectSlides[_SelectSlideOptionsPlaylistAdd].Visible = false;
|
_SelectSlides[_SelectSlideOptionsMode].Visible = false;
|
||||||
_SelectSlides[_SelectSlideOptionsPlaylistOpen].Visible = false;
|
_SelectSlides[_SelectSlideOptionsPlaylistAdd].Visible = false;
|
||||||
_SelectSlides[_SelectSlideOptionsNumMedleySongs].Visible = false;
|
_SelectSlides[_SelectSlideOptionsPlaylistOpen].Visible = false;
|
||||||
_Buttons[_ButtonOptionsClose].Visible = false;
|
_SelectSlides[_SelectSlideOptionsNumMedleySongs].Visible = false;
|
||||||
_Buttons[_ButtonOptionsSing].Visible = false;
|
_Buttons[_ButtonOptionsClose].Visible = false;
|
||||||
_Buttons[_ButtonOptionsPlaylist].Visible = false;
|
_Buttons[_ButtonOptionsSing].Visible = false;
|
||||||
_Buttons[_ButtonOptionsRandom].Visible = false;
|
_Buttons[_ButtonOptionsPlaylist].Visible = false;
|
||||||
_Buttons[_ButtonOptionsRandomCategory].Visible = false;
|
_Buttons[_ButtonOptionsRandom].Visible = false;
|
||||||
_Buttons[_ButtonOptionsSingAll].Visible = false;
|
_Buttons[_ButtonOptionsRandomCategory].Visible = false;
|
||||||
_Buttons[_ButtonOptionsSingAllVisible].Visible = false;
|
_Buttons[_ButtonOptionsSingAll].Visible = false;
|
||||||
_Buttons[_ButtonOptionsOpenSelectedItem].Visible = false;
|
_Buttons[_ButtonOptionsSingAllVisible].Visible = false;
|
||||||
_Buttons[_ButtonOptionsRandomMedley].Visible = false;
|
_Buttons[_ButtonOptionsOpenSelectedItem].Visible = false;
|
||||||
_Buttons[_ButtonOptionsStartMedley].Visible = false;
|
_Buttons[_ButtonOptionsRandomMedley].Visible = false;
|
||||||
_Texts[_TextOptionsTitle].Visible = false;
|
_Buttons[_ButtonOptionsStartMedley].Visible = false;
|
||||||
_Statics[_StaticOptionsBG].Visible = false;
|
_Texts[_TextOptionsTitle].Visible = false;
|
||||||
_Buttons[_ButtonOpenOptions].Visible = true;
|
_Statics[_StaticOptionsBG].Visible = false;
|
||||||
|
_Buttons[_ButtonOpenOptions].Visible = true;
|
||||||
|
|
||||||
_SongOptionsActive = view != ESongOptionsView.None;
|
if (CSongs.VisibleSongs.Count > 0)
|
||||||
|
{
|
||||||
|
_SongOptionsActive = view != ESongOptionsView.None;
|
||||||
|
|
||||||
if (_SongOptionsActive)
|
if (_SongOptionsActive)
|
||||||
{
|
{
|
||||||
//Has to be done here otherwhise changed playlist names will not appear until OnShow is called!
|
//Has to be done here otherwhise changed playlist names will not appear until OnShow is called!
|
||||||
_UpdatePlaylistNames();
|
_UpdatePlaylistNames();
|
||||||
|
|
||||||
_Texts[_TextOptionsTitle].Visible = true;
|
_Texts[_TextOptionsTitle].Visible = true;
|
||||||
_Buttons[_ButtonOptionsClose].Visible = true;
|
_Buttons[_ButtonOptionsClose].Visible = true;
|
||||||
_Statics[_StaticOptionsBG].Visible = true;
|
_Statics[_StaticOptionsBG].Visible = true;
|
||||||
_Buttons[_ButtonOpenOptions].Visible = false;
|
_Buttons[_ButtonOpenOptions].Visible = false;
|
||||||
if (view == ESongOptionsView.Song)
|
if (view == ESongOptionsView.Song)
|
||||||
_ShowSongOptionsSong();
|
_ShowSongOptionsSong();
|
||||||
else if (view == ESongOptionsView.General)
|
else if (view == ESongOptionsView.General)
|
||||||
_ShowSongOptionsGeneral();
|
_ShowSongOptionsGeneral();
|
||||||
else if (view == ESongOptionsView.Medley)
|
else if (view == ESongOptionsView.Medley)
|
||||||
_ShowSongOptionsMedley();
|
_ShowSongOptionsMedley();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user