mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-28 20:06:01 +08:00
...
This commit is contained in:
@@ -14,15 +14,25 @@ namespace demo
|
|||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
|
|
||||||
|
void MainWindow::OnCreate()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::OnDestroy()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|
||||||
MainWindow::MainWindow()
|
MainWindow::MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponents();
|
InitializeComponents();
|
||||||
|
OnCreate();
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
|
OnDestroy();
|
||||||
ClearSubscriptions();
|
ClearSubscriptions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -32,15 +42,25 @@ namespace demo
|
|||||||
{
|
{
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
|
|
||||||
|
void MyControl::OnCreate()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MyControl::OnDestroy()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
|
|
||||||
MyControl::MyControl()
|
MyControl::MyControl()
|
||||||
{
|
{
|
||||||
InitializeComponents();
|
InitializeComponents();
|
||||||
|
OnCreate();
|
||||||
}
|
}
|
||||||
|
|
||||||
MyControl::~MyControl()
|
MyControl::~MyControl()
|
||||||
{
|
{
|
||||||
|
OnDestroy();
|
||||||
ClearSubscriptions();
|
ClearSubscriptions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ namespace demo
|
|||||||
,optionGroup(0)
|
,optionGroup(0)
|
||||||
,self(0)
|
,self(0)
|
||||||
{
|
{
|
||||||
|
this->SelectedOption_ = vl::reflection::description::UnboxValue<vl::WString>(vl::reflection::description::Value::From(L"A", reflection::description::GetTypeDescriptor<vl::WString>()));
|
||||||
}
|
}
|
||||||
|
|
||||||
vl::Event<void()> SelectedOptionChanged;
|
vl::Event<void()> SelectedOptionChanged;
|
||||||
@@ -111,6 +112,8 @@ namespace demo
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
|
void OnCreate();
|
||||||
|
void OnDestroy();
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
public:
|
public:
|
||||||
MainWindow();
|
MainWindow();
|
||||||
@@ -128,6 +131,8 @@ namespace demo
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
|
||||||
|
void OnCreate();
|
||||||
|
void OnDestroy();
|
||||||
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
|
||||||
public:
|
public:
|
||||||
MyControl();
|
MyControl();
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user