Add visual indicator for bad wallet value

#302
This commit is contained in:
Kurt
2020-06-07 15:06:59 -07:00
parent 3339f45a94
commit 8302184c43
2 changed files with 2 additions and 0 deletions

View File

@@ -677,6 +677,7 @@ private void InitializeComponent()
this.NUD_Wallet.Name = "NUD_Wallet";
this.NUD_Wallet.Size = new System.Drawing.Size(100, 20);
this.NUD_Wallet.TabIndex = 10;
this.NUD_Wallet.ValueChanged += new System.EventHandler(this.NUD_Wallet_ValueChanged);
//
// L_NookMiles
//

View File

@@ -490,5 +490,6 @@ private void B_EditVisitors_Click(object sender, EventArgs e)
}
private void NUD_PocketCount_ValueChanged(object sender, EventArgs e) => ((NumericUpDown) sender).BackColor = (uint) ((NumericUpDown) sender).Value > 20 ? Color.Red : NUD_BankBells.BackColor;
private void NUD_Wallet_ValueChanged(object sender, EventArgs e) => NUD_Wallet.BackColor = (ulong) NUD_Wallet.Value > 99_999 ? Color.Red : NUD_BankBells.BackColor;
}
}