/// <summary> /// A constructor, creates an object of the /// BookLender class, and initiates it's instance /// variables with argument values. It has /// seven parameters. /// </summary> /// <param name="myLenderID">myLenderID as string</param> /// <param name="myFirstName">myFirstName as string</param> /// <param name="myLastName">myLastName as string</param> /// <param name="address">address as an Address object</param> /// <param name="phone">phone as a Phone object</param> /// <param name="email">email as an Email object</param> /// <param name="bookManager">bookManager as a bookManager object</param> public BookLender(int myLenderID, string myFirstName, string myLastName, Address address, Phone phone, Email email, BookManager bookManager) { lenderID = myLenderID; firstName = myFirstName; lastName = myLastName; myAddress = address; myPhone = phone; myEmail = email; myBookManager = bookManager; }
/// <summary> /// A constructor, creates an object of the /// BookForm class, and initiates it's instance /// variables with argument values. It has /// one parameter. The controls in the GUI is /// also initiated. /// </summary> /// <param name="savedBookManager">A BookManager object</param> public BookForm(BookManager savedBookManager) { InitializeComponent(); myBookManager = savedBookManager; InitializeGUI(); }
private BookManager myBookManager; // Declares an instance variable of the BookManager class /// <summary> /// The default constructor creates an object of the BookForm class. /// The controls in the GUI is initiated. /// </summary> public BookForm() { InitializeComponent(); myBookManager = new BookManager(); InitializeGUI(); }