Пример #1
0
 private void btn_DelOrder_Click(object sender, EventArgs e)
 {
     try
     {
         var ID = dataGridView_OrderList.CurrentRow.Cells[1].Value.ToString();
         service.DelOrder(ID);
         bs_OrderList.DataSource = service.GetAllOrder();
         bs_OrderList.ResetBindings(false);
     }
     catch
     {
         tb_Tips.Text = "删除订单失败!";
     }
 }