示例#1
0
 public override void OnBookChangeEvent(object sender, BookChangeEventArgs args)
 {
     if (args.Book.Genre == "computer science")
     {
         Console.WriteLine("The computer scientist is going to the library to take this book");
     }
 }
 public override void OnBookChangeEvent(object sender, BookChangeEventArgs args)
 {
     if (args.Book.Genre == "computer science")
     {
         Console.WriteLine("The computer scientist is going to the library to take this book");
     }
 }
示例#3
0
 public override void OnBookChangeEvent(object sender, BookChangeEventArgs args)
 {
     if (args.Book.Genre.Equals("fantasy"))
     {
         Console.WriteLine("The fantasy-lover ordered this book with a delivery");
     }
     else
     {
         Console.WriteLine("The fantasy-lover will not read this book");
     }
 }
示例#4
0
 public override void OnBookChangeEvent(object sender, BookChangeEventArgs args)
 {
     if (args.Book.Genre.Equals("fantasy"))
     {
         Console.WriteLine("The fantasy-lover ordered this book with a delivery");
     }
     else
     {
         Console.WriteLine("The fantasy-lover will not read this book");
     }
 }
示例#5
0
 public abstract void OnBookChangeEvent(object sender, BookChangeEventArgs args);
示例#6
0
 public abstract void OnBookChangeEvent(object sender, BookChangeEventArgs args);