public static Song GetSong(string path)
        {
            if (IsCollectionLoaded)
            {
                Song       aux     = new Song();
                XmlElement element = CollectionDocument.SelectSingleNode("/Collection/Song[@Path=\"" + path + "\"]") as XmlElement;
                if (element == null)
                {
                    return(null);
                }

                aux.Set(element.GetAttribute("Title"),
                        element.GetAttribute("Artist"),
                        element.GetAttribute("Album"),
                        element.GetAttribute("AlbumID"),
                        element.GetAttribute("ID"),
                        element.GetAttribute("Year"),
                        element.GetAttribute("Track"),
                        element.GetAttribute("Genre"),
                        element.GetAttribute("Path"),
                        element.GetAttribute("HexColor"));
                return(aux);
            }
            else
            {
                return(null);
            }
        }
 public static XmlElement GetArtistByName(string artistName)
 {
     if (IsCollectionLoaded)
     {
         return(CollectionDocument.SelectSingleNode("/Collection/Artist[@Name=\"" + artistName + "\"]") as XmlElement);
     }
     else
     {
         return(null);
     }
 }
 public static XmlElement GetSongByPath(string path)
 {
     if (IsCollectionLoaded)
     {
         return(CollectionDocument.SelectSingleNode("/Collection/Song[@Path=\"" + path + "\"]") as XmlElement);
     }
     else
     {
         return(null);
     }
 }
 public static Album GetAlbum(string albumID)
 {
     if (IsCollectionLoaded)
     {
         Album      aux     = new Album();
         XmlElement element = CollectionDocument.SelectSingleNode("/Collection/Song[@AlbumID=\"" + albumID + "\"]") as XmlElement;
         aux.Set(element.GetAttribute("Album"),
                 element.GetAttribute("Artist"),
                 albumID,
                 element.GetAttribute("Year"),
                 element.GetAttribute("Genre"),
                 element.GetAttribute("HexColor"));
         return(aux);
     }
     else
     {
         return(null);
     }
 }