private double update_exchange_rate()
{
calculated_rate c = calculate_exchange_rate(label_currency.Text, "BTC");
label_exchangeA.Text = c.from + " / " + c.to + " = " + (1.0 / c.rate).ToString("0.000");
label_exchangeB.Text = c.to + " / " + c.from + " = " + c.rate.ToString("0.000");
return c.rate;
}