private void dgvBeneficiary_RowEnter(object sender, DataGridViewCellEventArgs e) { int index = e.RowIndex; if (BeneficiaryListS.Count == 0) { beneficiary = BeneficairyList[index]; } else { beneficiary = BeneficiaryListS[index]; BeneficiaryListS.Clear(); } txtBname.Text = beneficiary.BeneficairyName; BenPaymentAccountList = PaymentsAccountController.SearchBenPaymentAcount(beneficiary.BeneficairyID); BeneficairyCrypoList = CryptoController.GetCrypto(beneficiary.BeneficairyID); BenbjectListe = PopSelectedBenAcount(BenPaymentAccountList, BeneficairyCrypoList); List <string> remove = new List <string>(); cbBAcounType.Items.Clear(); foreach (string item in BenbjectListe) { cbBAcounType.Items.Add(item); } BenbjectListe.Clear(); }
private void dgvBeneficiary_RowEnter(object sender, DataGridViewCellEventArgs e) { int index = e.RowIndex; ben = BeneficiaryList[index]; txtBBranchCode.Text = ben.BeneficiaryBranch; txtBID.Text = ben.BeneficairyID; txtBName.Text = ben.BeneficairyName; BenCryptoList = CryptoController.GetCrypto(ben.BeneficairyID); BenEFTList = PaymentsAccountController.SearchBenPaymentAcount(ben.BeneficairyID); FillCryptoDatagrid(BenCryptoList); FillEFTDatagrid(BenEFTList); btnUpdateBPI.Visible = true; btnDeleteB.Visible = false; }