/// <summary> /// Sales account combofill function /// </summary> /// <param name="cmbSalesAccount"></param> public void SalesAccountComboFill(ComboBox cmbSalesAccount) { SalesInvoiceBll BllSalesInvoice = new SalesInvoiceBll(); List<DataTable> listObj = new List<DataTable>(); try { listObj = BllSalesInvoice.SalesInvoiceSalesAccountModeComboFill(); cmbSalesAccount.DataSource = listObj[0]; cmbSalesAccount.DisplayMember = "ledgerName"; cmbSalesAccount.ValueMember = "ledgerId"; cmbSalesAccount.SelectedIndex = 0; } catch (Exception ex) { MessageBox.Show("SI: 06" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Error); } }