protected virtual void RaiseBookAddedEvent(AddedBookToLibEventArgs eventArgs) { BookAdded?.Invoke(this, eventArgs); Console.WriteLine("Event has completed raised from library"); }
private void OnBookAdded(object sender, AddedBookToLibEventArgs e) { Console.WriteLine("\nThe book '" + e.Title + "' has been added to the library"); Console.WriteLine(e.Title); Thread.Sleep(6000); }