private void lbl_text_NumberToString() { NAS.BO.Accounting.CurrencyBO BO = new NAS.BO.Accounting.CurrencyBO(); string c = ""; if (gridlookupCurrency.Value != null) { c = gridlookupCurrency.Value.ToString(); } string sotien = "0", tygia = "0"; if (spinAmount.Number != null) { if (double.Parse(spinAmount.Number.ToString()) > 0) { sotien = spinAmount.Number.ToString(); } } if (spinExchangeRate.Number != null) { if (double.Parse(spinExchangeRate.Number.ToString()) > 0) { tygia = spinExchangeRate.Number.ToString(); } else if (number != null) { tygia = number; } } if (c != null && !c.Equals("")) { lbl_text_Number.Text = BO.NumberToString(session, double.Parse(sotien), c.ToString(), double.Parse(tygia)).ToString(); } }