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.) // #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.