added GetPlaylistNames() method to the base class
This commit is contained in:
1 parent
deb5e6d794
commit
6dc1ad84d1
2 files changed
+17
No files matched your search
@@ -776,6 +776,11 @@ namespace Vocaluxe.Base
|
||||
CPlaylists.SetPlaylistName(PlaylistID, Name);
|
||||
}
|
||||
|
||||
public string[] GetPlaylistNames()
|
||||
{
|
||||
return CPlaylists.GetPlaylistNames();
|
||||
}
|
||||
|
||||
public string GetPlaylistName(int PlaylistID)
|
||||
{
|
||||
return CPlaylists.GetPlaylistName(PlaylistID);
|
||||
|
||||
@@ -84,6 +84,18 @@ namespace Vocaluxe.Base
|
||||
return _Playlists[PlaylistID].PlaylistName;
|
||||
}
|
||||
|
||||
public static string[] GetPlaylistNames()
|
||||
{
|
||||
List<string> result = new List<string>();
|
||||
|
||||
foreach (CPlaylistFile playlist in _Playlists)
|
||||
{
|
||||
result.Add(playlist.PlaylistName);
|
||||
}
|
||||
|
||||
return result.ToArray();
|
||||
}
|
||||
|
||||
public static void SetPlaylistName(int PlaylistID, string Name)
|
||||
{
|
||||
if (PlaylistID >= _Playlists.Count || PlaylistID < 0)
|
||||
|
||||
Reference in new issue
Block a user