Avoid Updating Store Items ListView If Count Is Still Equal (No New Items)
Fix Stock Market Game UI Positioning
This commit is contained in:
parent
e6c842cb19
commit
098a59f555
@ -353,6 +353,8 @@ namespace qtc_net_client_2
|
|||||||
var storeItems = await _apiService.GetStoreItems();
|
var storeItems = await _apiService.GetStoreItems();
|
||||||
if (storeItems != null && storeItems.Success && storeItems.Data != null)
|
if (storeItems != null && storeItems.Success && storeItems.Data != null)
|
||||||
{
|
{
|
||||||
|
if (lvStoreItems.Items.Count == storeItems.Data.Count) return;
|
||||||
|
|
||||||
ilStoreThumbnails.Images.Clear();
|
ilStoreThumbnails.Images.Clear();
|
||||||
foreach (var item in storeItems.Data)
|
foreach (var item in storeItems.Data)
|
||||||
{
|
{
|
||||||
|
12
qtc-net-client-2/Forms/StockMarketGame.Designer.cs
generated
12
qtc-net-client-2/Forms/StockMarketGame.Designer.cs
generated
@ -52,7 +52,7 @@
|
|||||||
pStockManagement.Controls.Add(btnSell);
|
pStockManagement.Controls.Add(btnSell);
|
||||||
pStockManagement.Controls.Add(btnBuy);
|
pStockManagement.Controls.Add(btnBuy);
|
||||||
pStockManagement.Controls.Add(lblStockCount);
|
pStockManagement.Controls.Add(lblStockCount);
|
||||||
pStockManagement.Location = new Point(242, 134);
|
pStockManagement.Location = new Point(230, 138);
|
||||||
pStockManagement.Name = "pStockManagement";
|
pStockManagement.Name = "pStockManagement";
|
||||||
pStockManagement.Size = new Size(135, 81);
|
pStockManagement.Size = new Size(135, 81);
|
||||||
pStockManagement.TabIndex = 3;
|
pStockManagement.TabIndex = 3;
|
||||||
@ -106,7 +106,7 @@
|
|||||||
pMarketStatus.Controls.Add(lblMarketStatus);
|
pMarketStatus.Controls.Add(lblMarketStatus);
|
||||||
pMarketStatus.Controls.Add(pbDollarSignRight);
|
pMarketStatus.Controls.Add(pbDollarSignRight);
|
||||||
pMarketStatus.Controls.Add(pbDollarSignLeft);
|
pMarketStatus.Controls.Add(pbDollarSignLeft);
|
||||||
pMarketStatus.Location = new Point(9, 7);
|
pMarketStatus.Location = new Point(3, 7);
|
||||||
pMarketStatus.Name = "pMarketStatus";
|
pMarketStatus.Name = "pMarketStatus";
|
||||||
pMarketStatus.Size = new Size(586, 100);
|
pMarketStatus.Size = new Size(586, 100);
|
||||||
pMarketStatus.TabIndex = 4;
|
pMarketStatus.TabIndex = 4;
|
||||||
@ -135,7 +135,7 @@
|
|||||||
// pbDollarSignRight
|
// pbDollarSignRight
|
||||||
//
|
//
|
||||||
pbDollarSignRight.Image = Properties.Resources.dollar_money;
|
pbDollarSignRight.Image = Properties.Resources.dollar_money;
|
||||||
pbDollarSignRight.Location = new Point(498, 3);
|
pbDollarSignRight.Location = new Point(500, 3);
|
||||||
pbDollarSignRight.Name = "pbDollarSignRight";
|
pbDollarSignRight.Name = "pbDollarSignRight";
|
||||||
pbDollarSignRight.Size = new Size(83, 94);
|
pbDollarSignRight.Size = new Size(83, 94);
|
||||||
pbDollarSignRight.SizeMode = PictureBoxSizeMode.Zoom;
|
pbDollarSignRight.SizeMode = PictureBoxSizeMode.Zoom;
|
||||||
@ -145,7 +145,7 @@
|
|||||||
// pbDollarSignLeft
|
// pbDollarSignLeft
|
||||||
//
|
//
|
||||||
pbDollarSignLeft.Image = Properties.Resources.dollar_money;
|
pbDollarSignLeft.Image = Properties.Resources.dollar_money;
|
||||||
pbDollarSignLeft.Location = new Point(6, 3);
|
pbDollarSignLeft.Location = new Point(3, 3);
|
||||||
pbDollarSignLeft.Name = "pbDollarSignLeft";
|
pbDollarSignLeft.Name = "pbDollarSignLeft";
|
||||||
pbDollarSignLeft.Size = new Size(83, 94);
|
pbDollarSignLeft.Size = new Size(83, 94);
|
||||||
pbDollarSignLeft.SizeMode = PictureBoxSizeMode.Zoom;
|
pbDollarSignLeft.SizeMode = PictureBoxSizeMode.Zoom;
|
||||||
@ -156,7 +156,7 @@
|
|||||||
//
|
//
|
||||||
btnRefresh.Enabled = false;
|
btnRefresh.Enabled = false;
|
||||||
btnRefresh.ForeColor = Color.Black;
|
btnRefresh.ForeColor = Color.Black;
|
||||||
btnRefresh.Location = new Point(282, 109);
|
btnRefresh.Location = new Point(270, 113);
|
||||||
btnRefresh.Name = "btnRefresh";
|
btnRefresh.Name = "btnRefresh";
|
||||||
btnRefresh.Size = new Size(56, 23);
|
btnRefresh.Size = new Size(56, 23);
|
||||||
btnRefresh.TabIndex = 10;
|
btnRefresh.TabIndex = 10;
|
||||||
@ -169,7 +169,7 @@
|
|||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
BackColor = Color.DodgerBlue;
|
BackColor = Color.DodgerBlue;
|
||||||
ClientSize = new Size(606, 227);
|
ClientSize = new Size(595, 227);
|
||||||
Controls.Add(btnRefresh);
|
Controls.Add(btnRefresh);
|
||||||
Controls.Add(pMarketStatus);
|
Controls.Add(pMarketStatus);
|
||||||
Controls.Add(pStockManagement);
|
Controls.Add(pStockManagement);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user