private void btnWCMtest_Click(object sender, EventArgs e) { try { this.txtWCMresult.Text = Formatting.CurrencyWrittenAmount(decimal.Parse(this.txtWCMsource.Text)); } catch (Exception err) { MessageBox.Show(DetailedException.WithUserContent(ref err)); } }