no message
This commit is contained in:
parent
a8e4de2236
commit
fa11185174
@ -166,23 +166,6 @@ void UartForm::Init()
|
||||
});
|
||||
}
|
||||
|
||||
auto mBtnSaveLua = static_cast<ui::Button*>(FindSubControl(L"btn_save_lua"));
|
||||
if (mBtnSaveLua != nullptr) {
|
||||
mBtnSaveLua->AttachClick([this](ui::EventArgs*) ->bool {
|
||||
std::cout << "保存lua脚本\r\n";
|
||||
std::string lua = wstring2string(mEditLua->GetText());
|
||||
if (0 == this->mLua->UpdateScript(lua)) {
|
||||
this->mLuaScript = lua;
|
||||
}
|
||||
else {
|
||||
MessageBox(0, L"lua脚本错误", L"", 0);
|
||||
return true;
|
||||
}
|
||||
std::cout << lua.c_str() << "\r\n";
|
||||
return true;
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void UartForm::UpdateRecvEdit()
|
||||
|
Loading…
Reference in New Issue
Block a user