private void label12_Click(object sender, EventArgs e) { InsertLoan f = new InsertLoan(); f.NationalCode1 = 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(); }
private void label10_Click(object sender, EventArgs e) { InsertLoan f = new InsertLoan(); f.NationalCode1 = NationalCode; f.ShowDialog(); LoanTransactionsService.LoanTransactionsServiceClient a = new LoanTransactionsService.LoanTransactionsServiceClient(); dataGridView1.DataSource = a.GetLoanTransactions().Select(x => new { x.Id, x.AdminNationalCode, x.AdminPermission, x.Amount, x.BankFollowUpCode, x.DateTime, x.PersonNationalCode }).Where(x => x.PersonNationalCode == NationalCode).ToList(); }