private void btn_MdP_Click(object sender, EventArgs e) { if (CurrentOrderID == "") { tb_Tips.Text = "错误!"; } else { string GoodsName = comboBox_Goods.Text; int GoodsNum = Convert.ToInt32(tb_num.Text); try { service.ModifyOrder(CurrentOrderID, GoodsName, GoodsNum); bs_OrderList.DataSource = service.GetAllOrder(); bs_OrderItem.DataSource = service.GetItem(CurrentOrderID); bs_OrderList.ResetBindings(false); bs_OrderItem.ResetBindings(false); } catch (Exception) { } } }