v5.1 代码策略
This commit is contained in:
+3
-3
@@ -23,9 +23,9 @@ void __fastcall TChip02Frame::EditChipExit(TObject *Sender)
|
||||
TEdit* pE = (TEdit*)Sender;
|
||||
|
||||
int num;
|
||||
if(!TryStrToInt(pE->Text, num) || num<g_MinOnBet || num>g_MaxOnBet ){
|
||||
ShowMessage("注码金额不能超过限红");
|
||||
pE->Text = pE==m_leMinChip ? "20" : "100";
|
||||
if(!TryStrToInt(pE->Text, num) || num<1 || num>g_MaxOnBet ){
|
||||
ShowMessage("注码不能小于 1 或大于限红");
|
||||
pE->Text = pE==m_leMinChip ? "1" : "5";
|
||||
pE->SetFocus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user