public CustomersPresenter(ICustomersView view, CustomerDao dao)
        {
            m_view = view;
            m_customerDao = dao;

            Update();
        }
Example #2
0
 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();
        }
Example #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CustomerDao dao = new CustomerDao();
            CustomersView view = new CustomersView(dao);

            Application.Run(view);
        }
Example #5
0
 public CustomersView(CustomerDao dao)
     : this()
 {
     m_presenter = new CustomersPresenter(this, dao);
 }