mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-25 00:53:18 +08:00
Update release
This commit is contained in:
@@ -281,8 +281,8 @@ Closures
|
||||
if ((! __vwsn_bind_opened_))
|
||||
{
|
||||
(__vwsn_bind_opened_ = true);
|
||||
(__vwsn_bind_cache_0 = __vwsnthis_0->calculator);
|
||||
(__vwsn_bind_handler_0_0 = ::vl::__vwsn::EventAttach(::vl::__vwsn::This(__vwsn_bind_cache_0.Obj())->ValueChanged, ::vl::Func<void()>(this, &__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription::__vwsn_bind_callback_0_0)));
|
||||
(__vwsn_bind_cache_0 = [&](){ try{ return __vwsnthis_0->calculator; } catch(...){ return ::vl::Ptr<::demo::Calculator>(); } }());
|
||||
(__vwsn_bind_handler_0_0 = [&](){ try{ return ::vl::__vwsn::EventAttach(::vl::__vwsn::This(__vwsn_bind_cache_0.Obj())->ValueChanged, ::vl::Func<void()>(this, &__vwsnc1_Demo_demo_MainWindowConstructor___vwsn_initialize_instance___vl_reflection_description_IValueSubscription::__vwsn_bind_callback_0_0)); } catch(...){ return ::vl::Ptr<::vl::reflection::description::IEventHandler>(); } }());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -303,7 +303,11 @@ Closures
|
||||
if ((! __vwsn_bind_closed_))
|
||||
{
|
||||
(__vwsn_bind_closed_ = true);
|
||||
::vl::__vwsn::EventDetach(::vl::__vwsn::This(__vwsn_bind_cache_0.Obj())->ValueChanged, __vwsn_bind_handler_0_0);
|
||||
if (static_cast<bool>(__vwsn_bind_handler_0_0))
|
||||
{
|
||||
::vl::__vwsn::EventDetach(::vl::__vwsn::This(__vwsn_bind_cache_0.Obj())->ValueChanged, __vwsn_bind_handler_0_0);
|
||||
(__vwsn_bind_handler_0_0 = ::vl::Ptr<::vl::reflection::description::IEventHandler>());
|
||||
}
|
||||
(__vwsn_bind_cache_0 = ::vl::Ptr<::demo::Calculator>());
|
||||
(__vwsn_bind_handler_0_0 = ::vl::Ptr<::vl::reflection::description::IEventHandler>());
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user