Refresh Currency Counter When Buying From Store
This commit is contained in:
parent
502dda6436
commit
0c76a206f7
@ -63,7 +63,12 @@ namespace qtc_net_client_2.Forms
|
|||||||
var ownedStoreItem = await _apiService.BuyStoreItem(StoreItem.Id);
|
var ownedStoreItem = await _apiService.BuyStoreItem(StoreItem.Id);
|
||||||
if (ownedStoreItem != null && ownedStoreItem.Success && ownedStoreItem.Data != null)
|
if (ownedStoreItem != null && ownedStoreItem.Success && ownedStoreItem.Data != null)
|
||||||
{
|
{
|
||||||
|
Main? mainForm = (Main?)Application.OpenForms[0];
|
||||||
|
if (mainForm != null)
|
||||||
|
mainForm.RefreshCurrencyCounter();
|
||||||
|
|
||||||
Enabled = true;
|
Enabled = true;
|
||||||
|
|
||||||
var result = MessageBox.Show($"Successfully Bought '{StoreItem.Name}'! Would You Like To Wear It Now?", "Success!", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
var result = MessageBox.Show($"Successfully Bought '{StoreItem.Name}'! Would You Like To Wear It Now?", "Success!", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||||
if (result == DialogResult.Yes)
|
if (result == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user