public Book(Author bookAuthor, string title, string publishing) { BookAuthor = bookAuthor; Title = title; Publishing = publishing; }
static void Main(string[] args) { Author ator = new Author("Josef", "Alexandrovich", "Brodsky"); Book book = new Book(ator, "Part of the talk", "Piter"); Book book_1 = new Book(ator, "Urania", "Moscow"); Catalogue ctlg = new Catalogue("A1P234"); ctlg.books.Add(book); ctlg.books.Add(book_1); ator.PropertyChanged += ShowInfo; book.PropertyChanged += ShowInfo; ctlg.PropertyChanged += ShowInfo; ctlg.books[0].Title = "Part of the speech"; ator.FirstName = "Joseph"; }