예제 #1
0
 private void updateDataGridView()
 {
     Cursor.Current = Cursors.WaitCursor;
     dgvClients.Rows.Clear();
     serviceDA = new DBControllerWSClient();
     customers = new BindingList <customer>(serviceDA.queryAllCustomer());
     for (int i = 0; i < customers.Count; i++)
     {
         dgvClients.Rows.Add(new String[] {
             "" + customers[i].id, customers[i].descriptionCustomer, customers[i].email, customers[i].phone, "" + customers[i].kindOfCustomer
         });
     }
     Cursor.Current = Cursors.Arrow;
 }