public AddCustomerPresenter(IAddCustomerView p_view,
            ICustomerDao p_customerDao)
        {
            m_view = p_view;
            m_customerDao = p_customerDao;

            CustomerDataEntity customerDataEntity = p_customerDao.CreateCustomerDataEntity();
            CustomerViewModel customerViewModel = new CustomerViewModel(customerDataEntity);

            m_viewModel = customerViewModel;
            m_view.ShowCustomer(customerViewModel);
        }
Example #2
0
 public void ShowCustomer(CustomerViewModel customerViewModel)
 {
     cusomerViewModelBindingSource.DataSource = customerViewModel;
 }