コード例 #1
0
 public Borrow(Reader who, BookDescription what)
 {
     Who  = who ?? throw new ArgumentNullException(nameof(who));
     What = what ?? throw new ArgumentNullException(nameof(what));
     Date = new DateTime();
     Date = DateTime.Today;
 }
コード例 #2
0
 public ConstFiller(Book book, Borrow borrow, Reader reader, BookDescription bookDescription, int amount)
 {
     this.book            = book ?? throw new ArgumentNullException(nameof(book));
     this.borrow          = borrow ?? throw new ArgumentNullException(nameof(borrow));
     this.reader          = reader ?? throw new ArgumentNullException(nameof(reader));
     this.bookDescription = bookDescription ?? throw new ArgumentNullException(nameof(bookDescription));
     this.amount          = amount;
 }
コード例 #3
0
 public void ChangeBookNumber(BookDescription book, int number)
 {
     Data.NumberOfBooks[book] += number;
 }
コード例 #4
0
 //BookNumber
 public void AddBookNumber(BookDescription book, int number)
 {
     Data.NumberOfBooks.Add(book, number);
 }
コード例 #5
0
 public void UpdateBookDescription(int id, BookDescription bookDescription) => Data.BookDescriptions[id] = bookDescription;
コード例 #6
0
 //BookDescription aka OpisStanu
 public void AddBookDescription(BookDescription bookDescriptions) => Data.BookDescriptions.Add(bookDescriptions);
コード例 #7
0
 public void DeleteBookNumber(BookDescription book)
 {
     Data.NumberOfBooks.Remove(book);
 }
コード例 #8
0
 public void UpdateBookNumber(BookDescription book, int number)
 {
     Data.NumberOfBooks[book] = number;
 }
コード例 #9
0
 public int GetBookNumber(BookDescription book)
 {
     return(Data.NumberOfBooks[book]);
 }
コード例 #10
0
 public void AddBorow(BookDescription book, Reader reader)
 {
     Data.AddBorrow(new Borrow(reader, book));
 }
コード例 #11
0
 public Book(BookDescription description)
 {
     Description = description;
 }
コード例 #12
0
 public Borrow(Reader who, BookDescription what)
 {
     Who  = who ?? throw new ArgumentNullException(nameof(who));
     What = what ?? throw new ArgumentNullException(nameof(what));
 }