diff --git a/examples/proto_debuger/uart_form.cpp b/examples/proto_debuger/uart_form.cpp index 44141370..22220903 100644 --- a/examples/proto_debuger/uart_form.cpp +++ b/examples/proto_debuger/uart_form.cpp @@ -166,23 +166,6 @@ void UartForm::Init() }); } - auto mBtnSaveLua = static_cast(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()