private void label9_Click(object sender, EventArgs e) { AdminCustomerAE f = new AdminCustomerAE(); f.id = 0;//add f.ShowDialog(); a = new PeopleService.PeopleServiceClient(); dataGridView1.DataSource = a.GetPeople().Select(x => new { x.NationalCode, x.FirstName, x.LastName, x.FathersName, x.Tel, x.Mobile, x.IsActive }).ToList(); }
private void label8_Click(object sender, EventArgs e) { AdminCustomerAE f = new AdminCustomerAE(); f.id = 2;//demo f.NatinalCode = dataGridView1.SelectedRows[0].Cells["NatinalCode"].Value.ToString(); f.ShowDialog(); a = new PeopleService.PeopleServiceClient(); dataGridView1.DataSource = a.GetPeople().Select(x => new { x.NationalCode, x.FirstName, x.LastName, x.FathersName, x.Tel, x.Mobile, x.IsActive }).ToList(); }