private void show_popup()
{
try
{
WindowState = FormWindowState.Normal;
textBox_amount.Focus();
textBox_amount.Text = "";
label_amount.Text = "0";
textBox_address.Text = "Fetching address"; //TODO translate
reset_qr_display();
update_exchange_rate();
Cursor.Current = Cursors.AppStarting;
Application.DoEvents();
string address = bc.GetNewAddress(bitcoin_account); // "1FiVXpdBdcnv6GAVZDKRxeSJqZQrSx2s2Q"; //
Cursor.Current = Cursors.Default;
textBox_address.Text = address;
draw_qr(address);
timer_poll_amount.Start();
}
catch
{
//TODO display an error on the image
//and make this generally more useful
textBox_address.Text = "Unknown error";
draw_qr("Unknown error");
}
}