/// <summary> /// Function to fill Currency combobox /// </summary> public void CurrencyComboFill() { try { CurrencyBll BllCurrency = new CurrencyBll(); List<DataTable> listObj = new List<DataTable>(); listObj = BllCurrency.CurrencyViewAllForCombo(); cmbCurrency.DataSource = listObj[0]; cmbCurrency.ValueMember = "currencyId"; cmbCurrency.DisplayMember = "currencyName"; } catch (Exception ex) { MessageBox.Show("CR6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill Currency combobox /// </summary> public void CurrencyRateComboFill() { try { List<DataTable> listCurrencyRate = new List<DataTable>(); CurrencyBll BllCurrency = new CurrencyBll(); listCurrencyRate = BllCurrency.CurrencyViewAllForCombo(); DataRow dr = listCurrencyRate[0].NewRow(); dr[2] = "All"; listCurrencyRate[0].Rows.InsertAt(dr, 0); cmbCurrencyRate.DataSource = listCurrencyRate[0]; cmbCurrencyRate.ValueMember = "currencyId"; cmbCurrencyRate.DisplayMember = "currencyName"; } catch (Exception ex) { MessageBox.Show("ER6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }