public List <DataTable> CurrencyViewAllForExchangeRateCombo() { List <DataTable> listObj = new List <DataTable>(); try { listObj = SpCurrency.CurrencyViewAllForExchangeRateCombo(); } catch (Exception ex) { MessageBox.Show("C6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(listObj); }
/// <summary> /// Function to fill Currency combobox /// </summary> public void CurrencyComboFill() { try { DataTable dtblCurrency = new DataTable(); CurrencySP spCurrency = new CurrencySP(); dtblCurrency = spCurrency.CurrencyViewAllForExchangeRateCombo(); cmbCurrency.DataSource = dtblCurrency; cmbCurrency.ValueMember = "currencyId"; cmbCurrency.DisplayMember = "currencyName"; } catch (Exception ex) { MessageBox.Show("ER5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }