Format Currency Counters
This commit is contained in:
parent
43c0b8fd24
commit
a008c7c942
@ -300,7 +300,7 @@ namespace qtc_net_client_2
|
||||
var result = await _apiService.AddCurrencyToCurrentUser(tokenJackpotSpinner.TokensWon, true);
|
||||
if (result.Success)
|
||||
{
|
||||
lblCurrencyAmount.Text = (_apiService.CurrentUser.CurrencyAmount + tokenJackpotSpinner.TokensWon).ToString();
|
||||
lblCurrencyAmount.Text = (_apiService.CurrentUser.CurrencyAmount + tokenJackpotSpinner.TokensWon).ToString("N");
|
||||
llblClaimSpin.Visible = false;
|
||||
}
|
||||
else MessageBox.Show("We Were Unable To Claim Your Prize At This Time. Please Try Again Later.", "Uh Oh.", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
@ -391,7 +391,7 @@ namespace qtc_net_client_2
|
||||
lblWelcome.Text = $"Welcome, {_apiService.CurrentUser.Username}";
|
||||
lblCurrencyAmount.Visible = true;
|
||||
pbCurrencyIcon.Visible = true;
|
||||
lblCurrencyAmount.Text = _apiService.CurrentUser.CurrencyAmount.ToString();
|
||||
lblCurrencyAmount.Text = _apiService.CurrentUser.CurrencyAmount.ToString("N0");
|
||||
llblSignOut.Visible = true;
|
||||
llblEditProfile.Visible = true;
|
||||
tbcMain.Enabled = true;
|
||||
@ -716,7 +716,7 @@ namespace qtc_net_client_2
|
||||
{
|
||||
if (!IsHandleCreated) { LoggingService.LogString("Form Handle Wasn't Created"); return; }
|
||||
|
||||
if (InvokeRequired)
|
||||
if (InvokeRequired && !IsDisposed)
|
||||
{
|
||||
await Invoke(async delegate ()
|
||||
{
|
||||
@ -753,12 +753,12 @@ namespace qtc_net_client_2
|
||||
{
|
||||
lblCurrencyAmount.BeginInvoke(delegate ()
|
||||
{
|
||||
lblCurrencyAmount.Text = _apiService.CurrentUser.CurrencyAmount.ToString();
|
||||
lblCurrencyAmount.Text = _apiService.CurrentUser.CurrencyAmount.ToString("N0");
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
lblCurrencyAmount.Text = _apiService.CurrentUser.CurrencyAmount.ToString();
|
||||
lblCurrencyAmount.Text = _apiService.CurrentUser.CurrencyAmount.ToString("N0");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ namespace qtc_net_client_2.Forms
|
||||
var contactsList = await _apiService.GetCurrentUserContacts();
|
||||
|
||||
lblUsername.Text = _userInformationDto.Username;
|
||||
lblCurrencyAmount.Text = _userInformationDto.CurrencyAmount.ToString();
|
||||
lblCurrencyAmount.Text = _userInformationDto.CurrencyAmount.ToString("N0");
|
||||
rtxtBio.Text = _userInformationDto.Bio;
|
||||
|
||||
if (pfpRes != null && pfpRes.Success && pfpRes.Data != null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user