Ejemplo n.º 1
0
 public CustomersController(
     IInputBoundary <RegisterInput> registerInput,
     IInputBoundary <GetCustomerDetailsInput> getCustomerInput,
     RegisterPresenter registerPresenter,
     CustomerDetailsPresenter getCustomerDetailsPresenter)
 {
     this.registerInput               = registerInput;
     this.getCustomerInput            = getCustomerInput;
     this.registerPresenter           = registerPresenter;
     this.getCustomerDetailsPresenter = getCustomerDetailsPresenter;
 }
        private void InitializeFields()
        {
            presenter = new CustomerDetailsPresenter(this);

            presenter.getHistorialAlquileres(customer);
            presenter.getToReturnList(customer);

            this.textBoxName.Text    = customer.name;
            this.textBoxAddress.Text = customer.address;
            this.textBoxCarnet.Text  = customer.carnet;
            this.textBoxEmail.Text   = customer.email;
            this.textBoxPhone.Text   = customer.phone;
        }