/// <summary> /// Default constructor /// Initializes form and needed presenters /// </summary> public LogIn() { //If user presenter is null, instantiate him for further use of contract. if (userPresenter == null) { userPresenter = new UserPresenter(); } //If user system information presenter is null, instantiate him for further use of contract. if (userSystemInformationPresenter == null) { userSystemInformationPresenter = new UserSystemInformationPresenter(); } //Call method to initialize all components on the login form. InitializeComponent(); }
/** * Presenter instances to communcation with server */ private void InstantiatePresenters() { userPresenter = new UserPresenter(); userSystemInformationPresenter = new UserSystemInformationPresenter(); userPersonalDetailsPresenter = new UserPersonalDetailsPresenter(); userContactDetailsPresenter = new UserContactDetailsPresenter(); userTypePresenter = new UserTypePresenter(); addressPresenter = new AddressPresenter(); statePresenter = new StatePresenter(); countryPresenter = new CountryPresenter(); }