private void modify_button_for_utility(DataGridViewRow startingBalanceRow) { if (current_show_index == (int)utility_picker.author) { model.Author item = this.author_Dao.get_item_from_row(startingBalanceRow); Add_author headphones_View = new Add_author(1, item); change_panel_content(headphones_View); } else if (current_show_index == (int)utility_picker.genre) { model.Genre item = this.genre_Dao.get_item_from_row(startingBalanceRow); Add_genre headphones_View = new Add_genre(1, item); change_panel_content(headphones_View); } else if (current_show_index == (int)utility_picker.publisher) { model.Publisher item = this.publisher_Dao.get_item_from_row(startingBalanceRow); Add_publisher headphones_View = new Add_publisher(1, item); change_panel_content(headphones_View); } }
public Book(int id, List <Author> authors, string book_name, DateTime date_borrowed, DateTime date_return, Genre genre, Publisher publisher, float rating, string description, bool has_been_readed) { this.id = id; this.authors = authors; this.book_name = book_name; this.date_borrowed = date_borrowed; this.date_returned = date_returned; this.genre = genre; this.publisher = publisher; this.rating = rating; this.description = description; this.has_been_readed = has_been_readed; }