/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { CurrencySP spCurrency = new CurrencySP(); DataTable dtblCurrency = new DataTable(); dtblCurrency = spCurrency.CurrencySearch(txtNameSearch.Text.Trim(), txtSymbolSearch.Text.Trim()); dgvCurrency.DataSource = dtblCurrency; } catch (Exception ex) { MessageBox.Show("C7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { CurrencySP spCurrency = new CurrencySP(); DataTable dtblCurrency = new DataTable(); dtblCurrency = spCurrency.CurrencySearch(txtNameSearch.Text.Trim(), txtSymbolSearch.Text.Trim()); dgvCurrency.DataSource = dtblCurrency; } catch (Exception ex) { formMDI.infoError.ErrorString = "C7:" + ex.Message; } }
/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { CurrencySP spCurrency = new CurrencySP(); DataTable dtblCurrency = new DataTable(); if (txtCurrencyName.Text == string.Empty && txtCurrencySymbol.Text == string.Empty) { txtCurrencyName.Text = string.Empty; txtCurrencySymbol.Text = string.Empty; } dtblCurrency = spCurrency.CurrencySearch(txtCurrencyName.Text, txtCurrencySymbol.Text); dgvCurrency.DataSource = dtblCurrency; } catch (Exception ex) { MessageBox.Show("CDP1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { CurrencySP spCurrency = new CurrencySP(); DataTable dtblCurrency = new DataTable(); if (txtCurrencyName.Text == string.Empty && txtCurrencySymbol.Text == string.Empty) { txtCurrencyName.Text = string.Empty; txtCurrencySymbol.Text = string.Empty; } dtblCurrency = spCurrency.CurrencySearch(txtCurrencyName.Text, txtCurrencySymbol.Text); dgvCurrency.DataSource = dtblCurrency; } catch (Exception ex) { MessageBox.Show("CDP1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { CurrencySP spCurrency = new CurrencySP(); DataTable dtblCurrency = new DataTable(); if (txtCurrencyName.Text == string.Empty && txtCurrencySymbol.Text == string.Empty) { txtCurrencyName.Text = string.Empty; txtCurrencySymbol.Text = string.Empty; } dtblCurrency = spCurrency.CurrencySearch(txtCurrencyName.Text, txtCurrencySymbol.Text); dgvCurrency.DataSource = dtblCurrency; } catch (Exception ex) { formMDI.infoError.ErrorString = "CDP1:" + ex.Message; } }
/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { CurrencySP spCurrency = new CurrencySP(); DataTable dtblCurrency = new DataTable(); dtblCurrency = spCurrency.CurrencySearch(txtNameSearch.Text.Trim(), txtSymbolSearch.Text.Trim()); dgvCurrency.DataSource = dtblCurrency; } catch (Exception ex) { MessageBox.Show("C7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }