private void GetBalance_Click(object sender, EventArgs e) { if (!rbReal.Checked) { MessageBox.Show("Get balance only for Real", "Warning"); return; } var market = GetMarket(); if (market == MarketType.Empty) { return; } balances = balances ?? new Dictionary <MarketType, DataBalances>(); balances[market] = rest.GetBalance(market); lbBalance.Text = "Update time: " + DateTime.Now.ToString() + " for market " + EnumValue.GetValue(market); UpdateBalances(); }