Bitcoin_QR_Popup.Form1.show_popup C# (CSharp) Method

show_popup() private method

private show_popup ( ) : void
return void
        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");
            }
        }