Exemple #1
0
 public void GetAlbum(string s, out CompactDisc cd)
 {
     cd = null;
     String[] busqueda = s.Split("/**/");
     foreach (CompactDisc cdd in CDS)
     {
         if (cdd.Album.Artist == busqueda[0] && cdd.Album.Title == busqueda[1])
         {
             cd = cdd;
         }
     }
 }
Exemple #2
0
        public CompactDisc GetCDById(string i)
        {
            CompactDisc busqueda = null;

            for (int j = 0; j < CDS.Count; j++)
            {
                if (i == CDS[j].Id)
                {
                    busqueda = CDS[j];
                }
            }
            return(busqueda);
        }
Exemple #3
0
 public void DeleteCD(ref CompactDisc cd)
 {
     CDS.Remove(cd);
 }
Exemple #4
0
 public void AddCD(ref CompactDisc cd)
 {
     CDS.Add(cd);
 }