コード例 #1
0
 public void ChangeCover(Image image, string text)
 {
     try
     {
         BookCover cover = new BookCover(image, text);
         book.AddCover(cover);
     }
     catch
     {
     }
 }
コード例 #2
0
 public void AddCover(Image image, string coverId)
 {
     try
     {
         BookCover cover = new BookCover(image, coverId);
         book.AddCover(cover);
         libraryPresenter.Container.books.Add(book);
         libraryPresenter.Container.Save();
         MessageBox.Show("Done");
     }
     catch
     {
     }
 }