This commit is contained in:
vczh
2016-04-30 15:30:12 -07:00
parent 30fa52f547
commit 845ee8386a
3 changed files with 25 additions and 0 deletions
@@ -14,15 +14,25 @@ namespace demo
{
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void MainWindow::OnCreate()
{
}
void MainWindow::OnDestroy()
{
}
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
MainWindow::MainWindow()
{
InitializeComponents();
OnCreate();
}
MainWindow::~MainWindow()
{
OnDestroy();
ClearSubscriptions();
}
}
@@ -32,15 +42,25 @@ namespace demo
{
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void MyControl::OnCreate()
{
}
void MyControl::OnDestroy()
{
}
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
MyControl::MyControl()
{
InitializeComponents();
OnCreate();
}
MyControl::~MyControl()
{
OnDestroy();
ClearSubscriptions();
}
}
@@ -73,6 +73,7 @@ namespace demo
,optionGroup(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;
@@ -111,6 +112,8 @@ namespace demo
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
MainWindow();
@@ -128,6 +131,8 @@ namespace demo
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
MyControl();
Binary file not shown.