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