Пример #1
0
 // Initialize the book database with some test books:
 static void AddBooks( BookDB bookDB )
 {
     bookDB.AddBook( "The C Programming Language",
        "Brian W. Kernighan and Dennis M. Ritchie", 19.95m, true );
     bookDB.AddBook( "The Unicode Standard 2.0",
        "The Unicode Consortium", 39.95m, true );
     bookDB.AddBook( "The MS-DOS Encyclopedia",
        "Ray Duncan", 129.95m, false );
     bookDB.AddBook( "Dogbert's Clues for the Clueless",
        "Scott Adams", 12.00m, true );
 }
Пример #2
0
  static void AddBooks(BookDB bookDB) // Инициализация базы данных книг с использованием  нескольких тестовых книг:
  {
     bookDB.AddBook("The C Programming Language",        "Brian W. Kernighan and Dennis M. Ritchie", 19.95m, true);
     bookDB.AddBook("The Unicode Standard 2.0",          "The Unicode Consortium", 39.95m, true);
     bookDB.AddBook("The MS-DOS Encyclopedia",           "Ray Duncan", 129.95m, false);
     bookDB.AddBook("Dogbert's Clues for the Clueless",  "Scott Adams", 12.00m, true);                                           
 }