public OrderDetailControl(OrderModel.OrderDetailModel dataModel) { InitializeComponent(); _controls = new Control[] { this.btnAddnewProduct, this.btnRemoveProducts, this.btnRemoveAll }; this.dataModel = dataModel; addForm = new AddItem(this.dataModel); }
public AddItem(OrderModel.OrderDetailModel model) { InitializeComponent(); this.model = model; }