public AddCommodityPresenter(AddCommodityModel model, ICommodity view) { this.model = model; this.view = view; view.InsertCommodity += PresenterAddCommodity; view.SelectCustomers += PresenterSelectCustomers; }
public void ShowAddCommodity() { var view = new AddCommodity(this); var model = new AddCommodityModel(session); var presenter = new AddCommodityPresenter(model, view); ShowControl(view); }