Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     orderDetailGridView1.Update();
     ClientGridView2.Update();
     GoodsGridView3.Update();
     OrderGridView4.Update();
 }
Example #2
0
 private void search_Click(object sender, EventArgs e)
 {
     orderlist = orderService.findOrder(property, finding);
     foreach (HomeWork6.Order item in Form1.orderlist)
     {
         this.clientBindingSource.DataSource = item.Client;
         this.orderBindingSource.DataSource  = new HomeWork6.Order(item.OrderID, item.Client);
         foreach (HomeWork6.OrderDetails item2 in item.Details)
         {
             this.goodsBindingSource.DataSource        = item2.Goods;
             this.orderDetailsBindingSource.DataSource = new HomeWork6.OrderDetails(item2.Goods, item2.Quantity, item2.Address, item2.Phone);
         }
     }
     orderDetailGridView1.Update();
     ClientGridView2.Update();
     GoodsGridView3.Update();
     OrderGridView4.Update();
 }