protected void AddFundButton_Click(object sender, EventArgs e) { float addedFunds; if (float.TryParse(AddFundTextBox.Text, out addedFunds) && addedFunds > 0) { myUsers.AddFundsTo(currentUser.userName, addedFunds); currentUser = myUsers.GetUserByName(currentUser.userName); Reload(); } }