/// <summary> /// Function to fill Currency combobox /// </summary> public void CurrencyRateComboFill() { try { DataTable dtblCurrencyRate = new DataTable(); CurrencySP spCurrency = new CurrencySP(); dtblCurrencyRate = spCurrency.CurrencyViewAllForCombo(); DataRow dr = dtblCurrencyRate.NewRow(); dr[2] = "All"; dtblCurrencyRate.Rows.InsertAt(dr, 0); cmbCurrencyRate.DataSource = dtblCurrencyRate; cmbCurrencyRate.ValueMember = "currencyId"; cmbCurrencyRate.DisplayMember = "currencyName"; } catch (Exception ex) { formMDI.infoError.ErrorString = "ER6:" + ex.Message; } }
/// <summary> /// Function to fill Currency combobox /// </summary> public void CurrencyRateComboFill() { try { DataTable dtblCurrencyRate = new DataTable(); CurrencySP spCurrency = new CurrencySP(); dtblCurrencyRate = spCurrency.CurrencyViewAllForCombo(); DataRow dr = dtblCurrencyRate.NewRow(); dr[2] = "All"; dtblCurrencyRate.Rows.InsertAt(dr, 0); cmbCurrencyRate.DataSource = dtblCurrencyRate; cmbCurrencyRate.ValueMember = "currencyId"; cmbCurrencyRate.DisplayMember = "currencyName"; } catch (Exception ex) { MessageBox.Show("ER6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill Currency combobox /// </summary> public void CurrencyComboFill() { try { CurrencySP spCurrency = new CurrencySP(); DataTable dtblCurrency = new DataTable(); dtblCurrency = spCurrency.CurrencyViewAllForCombo(); cmbCurrency.DataSource = dtblCurrency; 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 { DataTable dtblCurrencyRate = new DataTable(); CurrencySP spCurrency = new CurrencySP(); dtblCurrencyRate = spCurrency.CurrencyViewAllForCombo(); DataRow dr = dtblCurrencyRate.NewRow(); dr[2] = "All"; dtblCurrencyRate.Rows.InsertAt(dr, 0); cmbCurrencyRate.DataSource = dtblCurrencyRate; cmbCurrencyRate.ValueMember = "currencyId"; cmbCurrencyRate.DisplayMember = "currencyName"; } catch (Exception ex) { MessageBox.Show("ER6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }