예제 #1
0
 public override void DisplayBookInfo()
 {
     Console.WriteLine(TypeName + " " + TypeDescription);
     foreach (var i in books)
     {
         BookComponent aBook = (BookComponent)i;
         aBook.DisplayBookInfo();
     }
 }
예제 #2
0
 public BookShelf(BookComponent bookType)
 {
     newBookList = bookType;
 }
예제 #3
0
 public virtual void Add(BookComponent aComponent)
 {
     throw new NotSupportedException();
 }
예제 #4
0
 public override void Delete(BookComponent aComponent)
 {
     books.Remove(aComponent);
 }
예제 #5
0
 public override void Add(BookComponent aComponent)
 {
     books.Add(aComponent);
 }
예제 #6
0
 public override void Delete(BookComponent aComponent)
 {
     books.Remove(aComponent);
 }
예제 #7
0
 public override void Add(BookComponent aComponent)
 {
     books.Add(aComponent);
 }
 public virtual void Delete(BookComponent aComponent)
 {
     throw new NotSupportedException();
 }