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