示例#1
0
文件: Book.cs 项目: ntlmir/oot_mir
 public Book(TypeofBook type, string title, string author, int cost)
 {
     BookType = type;
     Title    = title;
     Author   = author;
     Cost     = cost;
 }
示例#2
0
        public void AddBook(TypeofBook type, string title, string author, int cost)
        {
            Book newBook = new Book(type, title, author, cost);

            LibraryList.Add(newBook);
        }