Exemplo n.º 1
0
 private void btnEmployees_Click(object sender, EventArgs e)
 {
     ES.EmployeeServiceClient esc = new ES.EmployeeServiceClient();
     gv1.DataSource = esc.GetAllEmployees();
     gv1.Refresh();
 }
Exemplo n.º 2
0
 private void voBtnGetEmp_Click(object sender, EventArgs e)
 {
     ES.EmployeeServiceClient esc = new ES.EmployeeServiceClient( );
     dataGridView1.DataSource = esc.GetAllEmployees( );
     dataGridView1.Refresh( );
 }