Exemple #1
0
        /// <summary>
        /// Converts an enumeration into a description string for display to a user
        /// </summary>
        /// <param name="oPlaylistStatus">
        /// An <see cref="OggPlaylistStatus"/> enumeration to interpret
        /// </param>
        /// <returns>
        /// A <see cref="System.String"/> containing the description
        /// </returns>
        static public string GetEnumString(OggPlaylistStatus oPlaylistStatus)
        {
            switch (oPlaylistStatus)
            {
            case OggPlaylistStatus.Moving: return("Moving to track");

            case OggPlaylistStatus.NoMoreTracks: return("No more tracks to play");

            case OggPlaylistStatus.Paused: return("Paused");

            case OggPlaylistStatus.PlayerError: return("Error in Player interface");

            case OggPlaylistStatus.Playing: return("Playing");

            case OggPlaylistStatus.PlaylistError: return("Error in Playlist");

            case OggPlaylistStatus.Ready: return("Playlist ready");

            case OggPlaylistStatus.WaitingForPlayer: return("Waiting for player to be assigned");

            case OggPlaylistStatus.WaitingForTracks: return("Waiting for tracks to be added");

            default: return("Unknown Playlist Status Value");
            }
        }
Exemple #2
0
 /// <summary>
 /// Converts an enumeration into a description string for display to a user
 /// </summary>
 /// <param name="oPlaylistStatus">
 /// An <see cref="OggPlaylistStatus"/> enumeration to interpret
 /// </param>
 /// <returns>
 /// A <see cref="System.String"/> containing the description
 /// </returns>
 public static string GetEnumString(OggPlaylistStatus oPlaylistStatus)
 {
     switch (oPlaylistStatus)
     {
     case OggPlaylistStatus.Moving: return "Moving to track";
     case OggPlaylistStatus.NoMoreTracks: return "No more tracks to play";
     case OggPlaylistStatus.Paused: return "Paused";
     case OggPlaylistStatus.PlayerError: return "Error in Player interface";
     case OggPlaylistStatus.Playing: return "Playing";
     case OggPlaylistStatus.PlaylistError: return "Error in Playlist";
     case OggPlaylistStatus.Ready: return "Playlist ready";
     case OggPlaylistStatus.WaitingForPlayer: return "Waiting for player to be assigned";
     case OggPlaylistStatus.WaitingForTracks: return "Waiting for tracks to be added";
     default: return "Unknown Playlist Status Value";
     }
 }