public string GetDefaultCurrencySymbol()
        {
            string strCurrencySymbol = string.Empty;

            try
            {
                strCurrencySymbol = SpCurrency.GetDefaultCurrencySymbol();
            }
            catch (Exception ex)
            {
                MessageBox.Show("C8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(strCurrencySymbol);
        }
Esempio n. 2
0
 /// <summary>
 /// On 'Currency' combobox selected valuechanged
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmbCurrency_SelectedValueChanged(object sender, EventArgs e)
 {
     try
     {
         CurrencySP SpCurrency = new CurrencySP();
         String     strSymbol  = SpCurrency.GetDefaultCurrencySymbol();
         pnlExchange.Visible = true;
         lblSymbol.Text      = "1" + cmbCurrency.Text;
         lblRate.Text        = txtExchangeRate.Text + strSymbol;
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 3
0
 /// <summary>
 /// On 'ExchangeRate' textbox textchanged
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void txtExchangeRate_TextChanged(object sender, EventArgs e)
 {
     try
     {
         CurrencySP SpCurrency = new CurrencySP();
         String     strSymbol  = SpCurrency.GetDefaultCurrencySymbol();
         pnlExchange.Visible = true;
         lblSymbol.Text      = "1" + cmbCurrency.Text;
         lblRate.Text        = txtExchangeRate.Text + strSymbol /*"Rs"*/;
     }
     catch (Exception ex)
     {
         MessageBox.Show("ER23:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }