예제 #1
0
 public AddCommodityPresenter(AddCommodityModel model, ICommodity view)
 {
     this.model            = model;
     this.view             = view;
     view.InsertCommodity += PresenterAddCommodity;
     view.SelectCustomers += PresenterSelectCustomers;
 }
예제 #2
0
        public void ShowAddCommodity()
        {
            var view      = new AddCommodity(this);
            var model     = new AddCommodityModel(session);
            var presenter = new AddCommodityPresenter(model, view);

            ShowControl(view);
        }