/** * * This method is used to initialize the form * * @param frmBooks: is the form that holds needed objects * **/ public frmBookAdd(frmBooks booksForm) { // Initialize the Form InitializeComponent(); // Set the class variable this.booksForm = booksForm; }
/** * * This method is used to initialize the edit book form * * @param editBook: is the book that is to be edited * @param booksFrom: is the books form that hold some needed objects for data handling * **/ public frmBookEdit(Book editBook, frmBooks booksForm) { // Initialize the form InitializeComponent(); // Set the class variables this.editBook = editBook; this.booksForm = booksForm; }