private void update_popup()
{
try
{
string address = textBox_address.Text;
string amount = get_amount();
string uri = get_bitcoin_uri(address, amount);
label_amount.Text = amount; //TODO this is the wrong symbol, but close enough for now
draw_qr(uri);
}
catch
{
//TODO display a meaningful error
label_amount.Text = "0";
draw_qr(textBox_address.Text);
}
}