public CustomersPresenter(ICustomersView view, CustomerDao dao) { m_view = view; m_customerDao = dao; Update(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CustomerDao dao = new CustomerDao(); AddCustomerWinformsView view = new AddCustomerWinformsView(dao); view.Presenter.InitView(); Application.Run(view); }
public AddCustomerWinformsView(CustomerDao p_CustomerDao) { InitializeComponent(); AddCustomerPresenter presenter = new AddCustomerPresenter(this, p_CustomerDao); m_presenter = presenter; m_customerDao = p_CustomerDao; registerToModelEvents(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CustomerDao dao = new CustomerDao(); CustomersView view = new CustomersView(dao); Application.Run(view); }
public CustomersView(CustomerDao dao) : this() { m_presenter = new CustomersPresenter(this, dao); }