Esempio n. 1
0
 private void RemoveOrder_Click(object sender, EventArgs e)
 {
     orders.Remove(order);
     orderService.RemoveOrder(order.Id);
     ChangeOrder.Enabled = RemoveOrder.Enabled = (orders.Count > 0);
     showOrder();
 }
 private void button2_Click(object sender, EventArgs e)
 {
     order.RemoveOrder(KeyWord);
     bindingSource1.DataSource = list;
     bindingSource1.DataSource = order.GetAllOrders();
 }
 private void button2_Click(object sender, EventArgs e)
 {
     order.RemoveOrder(Convert.ToInt32(KeyWord));
     bindingSource1.DataSource = list;
     bindingSource1.DataSource = order.olist;
 }