Example #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");
     }
 }
Example #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");
     }
 }
Example #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");
     }
 }
Example #5
0
 public abstract void OnBookChangeEvent(object sender, BookChangeEventArgs args);
Example #6
0
 public abstract void OnBookChangeEvent(object sender, BookChangeEventArgs args);