Exemplo n.º 1
0
        public CustomersPresenter(ICustomersView view, CustomerDao dao)
        {
            m_view = view;
            m_customerDao = dao;

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

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

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