private void listBoxOI_DoubleClick(object sender, EventArgs e)//双击以修改 { currenOI = (OrderItem)listBoxOI.SelectedItem; ItemForm form3 = new ItemForm(currenOI); form3.kind = 1; form3.forForm = this; form3.ShowDialog(); bindingSourceOIL.ResetBindings(false); }
private void addOrderItemButton_Click(object sender, EventArgs e)//新建 { ItemForm form3 = new ItemForm(); form3.kind = 0; form3.forForm = this; form3.ShowDialog(); this.order.orderItemList.Add(form3.oi); bindingSourceOIL.ResetBindings(false); //new FormAddSuccess().ShowDialog(); }