v5.1 代码策略
This commit is contained in:
+5
-1
@@ -28,8 +28,12 @@ void __fastcall TPolicySaveForm::FormCreate(TObject *Sender)
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TPolicySaveForm::OnOkClick(TObject *Sender)
|
||||
{
|
||||
if(m_leName->Text.Trim().IsEmpty()){ //名称不能为空
|
||||
MessageBox(Handle, L"名称不能为空", L"保存", MB_ICONERROR | MB_OK);
|
||||
return;
|
||||
}
|
||||
|
||||
vector<TBasePolicy*>& aPolicies = m_iType==TYPE_P_BET ? g_aBetPolicies : g_aChipPolicies;
|
||||
// bool bRepeat = false;
|
||||
int type = -1;
|
||||
m_iPolicy = -1;
|
||||
for(int i=0; i<aPolicies.size(); i++){
|
||||
|
||||
Reference in New Issue
Block a user