This commit is contained in:
vczh
2016-04-30 16:23:05 -07:00
parent 845ee8386a
commit 5e26b02641
83 changed files with 1166 additions and 39 deletions
+18 -7
View File
@@ -43537,7 +43537,7 @@ GuiResourceFolder
}
}
void GuiResourceFolder::PrecompileResourceFolder(GuiResourcePrecompileContext& context, collections::List<WString>& errors)
void GuiResourceFolder::PrecompileResourceFolder(GuiResourcePrecompileContext& context, IGuiResourcePrecompileCallback* callback, collections::List<WString>& errors)
{
FOREACH(Ptr<GuiResourceItem>, item, items.Values())
{
@@ -43546,6 +43546,10 @@ GuiResourceFolder
{
if (precompile->GetPassSupport(context.passIndex) == IGuiResourceTypeResolver_Precompile::PerResource)
{
if (callback)
{
callback->OnPerResource(context.passIndex, item);
}
precompile->PerResourcePrecompile(item, context, errors);
}
}
@@ -43553,7 +43557,7 @@ GuiResourceFolder
FOREACH(Ptr<GuiResourceFolder>, folder, folders.Values())
{
folder->PrecompileResourceFolder(context, errors);
folder->PrecompileResourceFolder(context, callback, errors);
}
}
@@ -43842,7 +43846,7 @@ GuiResource
SaveResourceFolderToBinary(writer, typeNames);
}
void GuiResource::Precompile(collections::List<WString>& errors)
void GuiResource::Precompile(IGuiResourcePrecompileCallback* callback, collections::List<WString>& errors)
{
if (GetFolder(L"Precompiled"))
{
@@ -43865,15 +43869,22 @@ GuiResource
manager->GetPerResourceResolverNames(i, resolvers);
if (resolvers.Count() > 0)
{
PrecompileResourceFolder(context, errors);
PrecompileResourceFolder(context, callback, errors);
}
}
{
manager->GetPerPassResolverNames(i, resolvers);
FOREACH(WString, name, resolvers)
if (resolvers.Count() > 0)
{
auto resolver = manager->GetTypeResolver(name);
resolver->Precompile()->PerPassPrecompile(context, errors);
if (callback)
{
callback->OnPerPass(i);
}
FOREACH(WString, name, resolvers)
{
auto resolver = manager->GetTypeResolver(name);
resolver->Precompile()->PerPassPrecompile(context, errors);
}
}
}
}
+18 -5
View File
@@ -3347,6 +3347,7 @@ Resource Structure
class GuiResourcePathResolver;
struct GuiResourcePrecompileContext;
struct GuiResourceInitializeContext;
class IGuiResourcePrecompileCallback;
/// <summary>Resource item.</summary>
class GuiResourceItem : public GuiResourceNodeBase, public Description<GuiResourceItem>
@@ -3413,7 +3414,7 @@ Resource Structure
void CollectTypeNames(collections::List<WString>& typeNames);
void LoadResourceFolderFromBinary(DelayLoadingList& delayLoadings, stream::internal::ContextFreeReader& reader, collections::List<WString>& typeNames, collections::List<WString>& errors);
void SaveResourceFolderToBinary(stream::internal::ContextFreeWriter& writer, collections::List<WString>& typeNames);
void PrecompileResourceFolder(GuiResourcePrecompileContext& context, collections::List<WString>& errors);
void PrecompileResourceFolder(GuiResourcePrecompileContext& context, IGuiResourcePrecompileCallback* callback, collections::List<WString>& errors);
void InitializeResourceFolder(GuiResourceInitializeContext& context);
public:
/// <summary>Create a resource folder.</summary>
@@ -3529,7 +3530,7 @@ Resource
/// <summary>Precompile this resource to improve performance.</summary>
/// <param name="errors">All collected errors during precompiling a resource.</param>
void Precompile(collections::List<WString>& errors);
void Precompile(IGuiResourcePrecompileCallback* callback, collections::List<WString>& errors);
/// <summary>Initialize a precompiled resource.</summary>
/// <param name="usage">In which role an application is initializing this resource.</param>
@@ -3666,11 +3667,11 @@ Resource Type Resolver
/// <summary>
/// Represents a precompiler for resources of a specified type.
/// Current resources that needs precompiling:
/// <Workflow>
/// Workflow:
/// Pass 0: Collect workflow scripts
/// Pass 1: Compile ViewModel scripts
/// Pass 2: Compile Shared scripts
/// <Instance>
/// Instance:
/// Pass 3: Collect instance types
/// Pass 4: Validate instance dependency
/// Pass 5: Generate TemporaryClass scripts, ClassNameRecord
@@ -3726,6 +3727,13 @@ Resource Type Resolver
virtual void PerPassPrecompile(GuiResourcePrecompileContext& context, collections::List<WString>& errors) = 0;
};
class IGuiResourcePrecompileCallback : public virtual IDescriptable, public Description<IGuiResourcePrecompileCallback>
{
public:
virtual void OnPerPass(vint passIndex) = 0;
virtual void OnPerResource(vint passIndex, Ptr<GuiResourceItem> resource) = 0;
};
/// <summary>Provide a context for resource initializing</summary>
struct GuiResourceInitializeContext : GuiResourcePrecompileContext
{
@@ -5952,7 +5960,7 @@ Predefined Events
***********************************************************************/
/// <summary>Notify event arguments.</summary>
struct GuiEventArgs : public Object, public Description<GuiEventArgs>
struct GuiEventArgs : public Object, public AggregatableDescription<GuiEventArgs>
{
/// <summary>The event raiser composition.</summary>
GuiGraphicsComposition* compositionSource;
@@ -5977,6 +5985,11 @@ Predefined Events
,handled(false)
{
}
~GuiEventArgs()
{
FinalizeAggregation();
}
};
/// <summary>Request event arguments.</summary>
+208 -16
View File
@@ -2490,13 +2490,16 @@ GuiInstanceContext
parameter->className = GlobalStringKey::Get(attClass->value.value);
context->parameters.Add(parameter);
}
else
{
errors.Add(L"ref.Parameter requires the following attributes existing at the same time: Name, Class.");
}
}
else if (element->name.value == L"ref.Property")
{
auto attName = XmlGetAttribute(element, L"Name");
auto attType = XmlGetAttribute(element, L"Type");
auto attValue = XmlGetAttribute(element, L"Value");
auto attReadonly = XmlGetAttribute(element, L"Readonly");
if (attName && attType)
{
auto prop = MakePtr<GuiInstanceProperty>();
@@ -2506,12 +2509,12 @@ GuiInstanceContext
{
prop->value = attValue->value.value;
}
if (attReadonly)
{
prop->readonly = attReadonly->value.value == L"true";
}
context->properties.Add(prop);
}
else
{
errors.Add(L"ref.Property requires the following attributes existing at the same time: Name, Type.");
}
}
else if (element->name.value == L"ref.State")
{
@@ -2529,6 +2532,50 @@ GuiInstanceContext
}
context->states.Add(state);
}
else
{
errors.Add(L"ref.State requires the following attributes existing at the same time: Name, Type.");
}
}
else if (element->name.value == L"ref.Component")
{
auto attName = XmlGetAttribute(element, L"Name");
auto attType = XmlGetAttribute(element, L"Type");
auto attExpression = XmlGetAttribute(element, L"Expression");
if (attName && attType && attExpression)
{
auto component = MakePtr<GuiInstanceComponent>();
component->name = GlobalStringKey::Get(attName->value.value);
component->typeName = attType->value.value;
if (attExpression)
{
component->expression = attExpression->value.value;
}
context->components.Add(component);
}
else
{
errors.Add(L"ref.Component requires the following attributes existing at the same time: Name, Type, Expression.");
}
}
else if (element->name.value == L"ref.Event")
{
auto attName = XmlGetAttribute(element, L"Name");
auto attClass = XmlGetAttribute(element, L"EventArgsClass");
if (attName)
{
auto ev = MakePtr<GuiInstanceEvent>();
ev->name = GlobalStringKey::Get(attName->value.value);
if (attClass)
{
ev->eventArgsClass = attClass->value.value;
}
context->events.Add(ev);
}
else
{
errors.Add(L"ref.Event requires the following attributes existing at the same time: Name.");
}
}
else if (!context->instance)
{
@@ -2621,11 +2668,6 @@ GuiInstanceContext
attValue->value.value = prop->value;
xmlProperty->attributes.Add(attType);
}
auto attReadonly = MakePtr<XmlAttribute>();
attReadonly->name.value = L"Readonly";
attReadonly->value.value = prop->readonly ? L"true" : L"false";
xmlProperty->attributes.Add(attReadonly);
}
FOREACH(Ptr<GuiInstanceState>, state, states)
@@ -2649,7 +2691,49 @@ GuiInstanceContext
auto attValue = MakePtr<XmlAttribute>();
attValue->name.value = L"Value";
attValue->value.value = state->value;
xmlState->attributes.Add(attType);
xmlState->attributes.Add(attValue);
}
}
FOREACH(Ptr<GuiInstanceComponent>, component, components)
{
auto xmlComponent = MakePtr<XmlElement>();
xmlComponent->name.value = L"ref.Component";
xmlInstance->subNodes.Add(xmlComponent);
auto attName = MakePtr<XmlAttribute>();
attName->name.value = L"Name";
attName->value.value = component->name.ToString();
xmlComponent->attributes.Add(attName);
auto attType = MakePtr<XmlAttribute>();
attType->name.value = L"Type";
attType->value.value = component->typeName;
xmlComponent->attributes.Add(attType);
auto attExpression = MakePtr<XmlAttribute>();
attExpression->name.value = L"Value";
attExpression->value.value = component->expression;
xmlComponent->attributes.Add(attExpression);
}
FOREACH(Ptr<GuiInstanceEvent>, ev, events)
{
auto xmlEvent = MakePtr<XmlElement>();
xmlEvent->name.value = L"ref.Event";
xmlInstance->subNodes.Add(xmlEvent);
auto attName = MakePtr<XmlAttribute>();
attName->name.value = L"Name";
attName->value.value = ev->name.ToString();
xmlEvent->attributes.Add(attName);
if (ev->eventArgsClass != L"")
{
auto attClass = MakePtr<XmlAttribute>();
attClass->name.value = L"EventArgsClass";
attClass->value.value = ev->eventArgsClass;
xmlEvent->attributes.Add(attClass);
}
}
@@ -6719,6 +6803,22 @@ Workflow_GenerateInstanceClass
return nullptr;
}
};
auto expressionParser = GetParserManager()->GetParser<WfExpression>(L"WORKFLOW-EXPRESSION");
auto parseExpression = [expressionParser, &errors](const WString& code, const WString& name)->Ptr<WfExpression>
{
List<WString> parserErrors;
if (auto type = expressionParser->TypedParse(code, parserErrors))
{
return type;
}
else
{
errors.Add(L"Precompile: Failed to parse " + name + L": " + code);
return nullptr;
}
};
auto addDecl = [=](Ptr<WfDeclaration> decl)
{
auto member = MakePtr<WfClassMember>();
@@ -6882,7 +6982,6 @@ Workflow_GenerateInstanceClass
decl->statement = notImplemented();
}
}
if (!prop->readonly)
{
auto decl = MakePtr<WfFunctionDeclaration>();
addDecl(decl);
@@ -6972,15 +7071,51 @@ Workflow_GenerateInstanceClass
decl->name.value = prop->name.ToString();
decl->type = type;
decl->getter.value = L"Get" + prop->name.ToString();
if (!prop->readonly)
{
decl->setter.value = L"Set" + prop->name.ToString();
}
decl->setter.value = L"Set" + prop->name.ToString();
decl->valueChangedEvent.value = prop->name.ToString() + L"Changed";
}
}
}
FOREACH(Ptr<GuiInstanceComponent>, component, context->components)
{
auto type = parseType(component->typeName, L"component \"" + component->name.ToString() + L" of instance \"" + context->className + L"\"");
auto expression = parseExpression(component->expression, L"component \"" + component->name.ToString() + L" of instance \"" + context->className + L"\"");
if (type && expression)
{
{
auto decl = MakePtr<WfFunctionDeclaration>();
addDecl(decl);
decl->anonymity = WfFunctionAnonymity::Named;
decl->name.value = L"Get" + component->name.ToString();
decl->returnType = CopyType(type);
if (!beforePrecompile)
{
auto block = MakePtr<WfBlockStatement>();
decl->statement = block;
auto returnStat = MakePtr<WfReturnStatement>();
returnStat->expression = expression;
block->statements.Add(returnStat);
}
else
{
decl->statement = notImplemented();
}
}
{
auto decl = MakePtr<WfPropertyDeclaration>();
addDecl(decl);
decl->name.value = component->name.ToString();
decl->type = type;
decl->getter.value = L"Get" + component->name.ToString();
}
}
}
auto ctor = MakePtr<WfConstructorDeclaration>();
ctor->constructorType = WfConstructorType::RawPtr;
auto ctorBlock = (beforePrecompile ? notImplemented() : MakePtr<WfBlockStatement>());
@@ -7022,6 +7157,63 @@ Workflow_GenerateInstanceClass
}
}
FOREACH(Ptr<GuiInstanceEvent>, ev, context->events)
{
if (ev->eventArgsClass == L"")
{
auto decl = MakePtr<WfEventDeclaration>();
addDecl(decl);
decl->name.value = ev->name.ToString();
}
else if (auto type = parseType(ev->eventArgsClass + L"*", L"event \"" + ev->name.ToString() + L" of instance \"" + context->className + L"\""))
{
{
auto decl = MakePtr<WfEventDeclaration>();
addDecl(decl);
decl->name.value = ev->name.ToString();
decl->arguments.Add(GetTypeFromTypeInfo(TypeInfoRetriver<GuiGraphicsComposition*>::CreateTypeInfo().Obj()));
decl->arguments.Add(type);
}
if (beforePrecompile)
{
auto sharedType = MakePtr<WfSharedPointerType>();
sharedType->element = CopyType(type.Cast<WfRawPointerType>()->element);
{
auto newExpr = MakePtr<WfNewClassExpression>();
newExpr->type = sharedType;
auto inferExpr = MakePtr<WfInferExpression>();
inferExpr->type = GetTypeFromTypeInfo(TypeInfoRetriver<Ptr<GuiEventArgs>>::CreateTypeInfo().Obj());
inferExpr->expression = newExpr;
auto stat = MakePtr<WfExpressionStatement>();
stat->expression = inferExpr;
ctorBlock->statements.Add(stat);
}
{
auto nullExpr = MakePtr<WfLiteralExpression>();
nullExpr->value = WfLiteralValue::Null;
auto argument = MakePtr<WfInferExpression>();
argument->type = GetTypeFromTypeInfo(TypeInfoRetriver<GuiGraphicsComposition*>::CreateTypeInfo().Obj());
argument->expression = nullExpr;
auto newExpr = MakePtr<WfNewClassExpression>();
newExpr->type = CopyType(sharedType);
newExpr->arguments.Add(argument);
auto inferExpr = MakePtr<WfInferExpression>();
inferExpr->type = GetTypeFromTypeInfo(TypeInfoRetriver<Ptr<GuiEventArgs>>::CreateTypeInfo().Obj());
inferExpr->expression = newExpr;
auto stat = MakePtr<WfExpressionStatement>();
stat->expression = inferExpr;
ctorBlock->statements.Add(stat);
}
}
}
}
FOREACH(Ptr<GuiInstanceParameter>, param, context->parameters)
{
if (auto type = parseType(param->className.ToString() + L"^", L"parameter \"" + param->name.ToString() + L" of instance \"" + context->className + L"\""))
+30 -7
View File
@@ -290,7 +290,7 @@ Instance Namespace
};
// Workflow: <name>
// C++: <instance>->Get<name>
// C++: <instance>->Get<name>()
class GuiInstanceParameter : public Object, public Description<GuiInstanceParameter>
{
public:
@@ -299,19 +299,18 @@ Instance Namespace
};
// Workflow: <instance>.<name>
// C++: <instance>->Get<name>
// <instance>->Set<name>
// C++: <instance>->Get<name>()
// <instance>->Set<name>()
class GuiInstanceProperty : public Object, public Description<GuiInstanceProperty>
{
public:
GlobalStringKey name;
WString typeName;
WString value;
bool readonly = false;
WString value;\
};
// Workflow: <instance>.<name>
// C++: <instance>-><name>
// C++: <instance>-><name>()
class GuiInstanceState : public Object, public Description<GuiInstanceState>
{
public:
@@ -319,6 +318,25 @@ Instance Namespace
WString typeName;
WString value;
};
// Workflow: <instance>.<name>
// C++: <instance>->Get<name>()
class GuiInstanceComponent : public Object, public Description<GuiInstanceComponent>
{
public:
GlobalStringKey name;
WString typeName;
WString expression;
};
// Workflow: <instance>.<name>
// C++: <instance>-><name>
class GuiInstanceEvent : public Object, public Description<GuiInstanceComponent>
{
public:
GlobalStringKey name;
WString eventArgsClass;
};
/***********************************************************************
Instance Context
@@ -340,6 +358,8 @@ Instance Context
typedef collections::List<Ptr<GuiInstanceParameter>> ParameterList;
typedef collections::List<Ptr<GuiInstanceProperty>> PropertyList;
typedef collections::List<Ptr<GuiInstanceState>> StateList;
typedef collections::List<Ptr<GuiInstanceComponent>> ComponentList;
typedef collections::List<Ptr<GuiInstanceEvent>> EventList;
typedef collections::List<Ptr<GuiInstanceStyleContext>> StyleContextList;
class ElementName : public Object
@@ -362,10 +382,13 @@ Instance Context
NamespaceMap namespaces;
bool codeBehind = true;
WString className;
collections::List<WString> stylePaths;
ParameterList parameters;
PropertyList properties;
StateList states;
collections::List<WString> stylePaths;
ComponentList components;
EventList events;
bool appliedStyles = false;
StyleContextList styles;
BIN
View File
Binary file not shown.
File diff suppressed because it is too large Load Diff
@@ -1571,6 +1571,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
BottomScrollButtonTemplate();
@@ -1588,6 +1590,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ButtonTemplate();
@@ -1605,6 +1609,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
CheckBoxTemplate();
@@ -1622,6 +1628,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
CheckItemBackgroundTemplate();
@@ -1639,6 +1647,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
CheckTextListTemplate();
@@ -1656,6 +1666,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ComboBoxTemplate();
@@ -1673,6 +1685,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
DatePickerTemplate();
@@ -1690,6 +1704,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
DocumentLabelTemplate();
@@ -1707,6 +1723,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
DocumentViewerTemplate();
@@ -1724,6 +1742,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ExpandingDecoratorTemplate();
@@ -1741,6 +1761,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
GroupBoxTemplate();
@@ -1758,6 +1780,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
HScrollHandleTemplate();
@@ -1775,6 +1799,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
HScrollTemplate();
@@ -1792,6 +1818,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
HTrackerTemplate();
@@ -1809,6 +1837,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ItemBackgroundTemplate();
@@ -1826,6 +1856,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
LabelTemplate();
@@ -1843,6 +1875,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
LeftScrollButtonTemplate();
@@ -1860,6 +1894,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ListViewColumnHeaderTemplate();
@@ -1877,6 +1913,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ListViewTemplate();
@@ -1894,6 +1932,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
MenuBarButtonTemplate();
@@ -1911,6 +1951,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
MenuItemButtonTemplate();
@@ -1928,6 +1970,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
MenuSplitterTemplate();
@@ -1945,6 +1989,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
MultilineTextBoxTemplate();
@@ -1962,6 +2008,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ProgressBarTemplate();
@@ -1979,6 +2027,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
RadioButtonTemplate();
@@ -1996,6 +2046,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
RadioTextListTemplate();
@@ -2013,6 +2065,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
RightScrollButtonTemplate();
@@ -2030,6 +2084,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ScrollViewTemplate();
@@ -2047,6 +2103,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
SinglelineTextBoxTemplate();
@@ -2064,6 +2122,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
TabDropdownTemplate();
@@ -2081,6 +2141,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
TabHeaderTemplate();
@@ -2098,6 +2160,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
TabTemplate();
@@ -2115,6 +2179,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
TextListTemplate();
@@ -2132,6 +2198,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ToolstripButtonTemplate();
@@ -2149,6 +2217,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ToolstripDropdownButtonTemplate();
@@ -2166,6 +2236,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ToolstripMenuTemplate();
@@ -2183,6 +2255,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ToolstripSplitArrowTemplate();
@@ -2200,6 +2274,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ToolstripSplitButtonTemplate();
@@ -2217,6 +2293,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ToolstripSplitterTemplate();
@@ -2234,6 +2312,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
ToolstripTemplate();
@@ -2251,6 +2331,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
TooltipTemplate();
@@ -2268,6 +2350,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
TopScrollButtonTemplate();
@@ -2285,6 +2369,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
TreeViewTemplate();
@@ -2302,6 +2388,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
VScrollHandleTemplate();
@@ -2319,6 +2407,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
VScrollTemplate();
@@ -2336,6 +2426,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
VTrackerTemplate();
@@ -2353,6 +2445,8 @@ namespace darkskin
protected:
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
WindowTemplate();
@@ -2370,6 +2464,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();
Binary file not shown.
@@ -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();
}
}
@@ -65,6 +65,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();
@@ -18,15 +18,25 @@ namespace demo
ShellExecute(NULL, L"OPEN", documentLabel->GetActiveHyperlinkReference().Buffer(), NULL, NULL, SW_MAXIMIZE);
}
void AboutWindow::OnCreate()
{
}
void AboutWindow::OnDestroy()
{
}
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
AboutWindow::AboutWindow()
{
InitializeComponents();
OnCreate();
}
AboutWindow::~AboutWindow()
{
OnDestroy();
ClearSubscriptions();
}
}
@@ -21,6 +21,8 @@ namespace demo
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void documentLabel_ActiveHyperlinkExecuted(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
AboutWindow();
@@ -14,15 +14,25 @@ namespace demo
{
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void FindWindow::OnCreate()
{
}
void FindWindow::OnDestroy()
{
}
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
FindWindow::FindWindow(Ptr<vm::IFindWindowViewModel> ViewModel)
{
InitializeComponents(ViewModel);
OnCreate();
}
FindWindow::~FindWindow()
{
OnDestroy();
ClearSubscriptions();
}
}
@@ -238,6 +238,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:
FindWindow(Ptr<vm::IFindWindowViewModel> ViewModel);
@@ -188,6 +188,17 @@ namespace demo
arguments.cancel = !CanCloseFile();
}
void MainWindow::OnCreate()
{
findWindow = MakePtr<FindWindow>(MakePtr<FindWindowViewModel>(textBox));
findWindow->MoveToScreenCenter();
findWindow->GetNativeWindow()->SetParent(GetNativeWindow());
}
void MainWindow::OnDestroy()
{
}
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
bool MainWindow::CanCloseFile()
@@ -312,13 +323,12 @@ namespace demo
MainWindow::MainWindow()
{
InitializeComponents();
findWindow = MakePtr<FindWindow>(MakePtr<FindWindowViewModel>(textBox));
findWindow->MoveToScreenCenter();
findWindow->GetNativeWindow()->SetParent(GetNativeWindow());
OnCreate();
}
MainWindow::~MainWindow()
{
OnDestroy();
ClearSubscriptions();
}
@@ -38,6 +38,8 @@ namespace demo
void commandFileSaveAs_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
void commandFileSave_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
void window_Closing(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiRequestEventArgs& arguments);
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
private:
Binary file not shown.
@@ -14,15 +14,25 @@ namespace helloworld
{
// #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();
}
}
@@ -62,6 +62,8 @@ namespace helloworld
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();
@@ -81,6 +81,7 @@ namespace helloworld
,textBoxPassword(0)
,textBoxUserName(0)
{
this->HasLoggedIn_ = vl::reflection::description::UnboxValue<bool>(vl::reflection::description::Value::From(L"false", reflection::description::GetTypeDescriptor<bool>()));
}
Ptr<vm::IViewModel> GetViewModel()
@@ -21,15 +21,25 @@ namespace helloworld
}
}
void MainWindow::OnCreate()
{
}
void MainWindow::OnDestroy()
{
}
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
MainWindow::MainWindow(Ptr<vm::IViewModel> ViewModel)
{
InitializeComponents(ViewModel);
OnCreate();
}
MainWindow::~MainWindow()
{
OnDestroy();
ClearSubscriptions();
}
}
@@ -21,6 +21,8 @@ namespace helloworld
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void buttonSignUp_Clicked(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
MainWindow(Ptr<vm::IViewModel> ViewModel);
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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();
}
}
@@ -62,6 +62,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();
@@ -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();
}
}
@@ -77,6 +77,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();
@@ -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(Ptr<demo::IViewModel> ViewModel)
{
InitializeComponents(ViewModel);
OnCreate();
}
MainWindow::~MainWindow()
{
OnDestroy();
ClearSubscriptions();
}
}
@@ -81,6 +81,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(Ptr<demo::IViewModel> ViewModel);
@@ -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();
}
}
@@ -68,6 +68,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();
@@ -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();
}
}
@@ -62,6 +62,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();
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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();
}
}
@@ -71,6 +71,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();
@@ -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();
}
}
@@ -62,6 +62,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();
@@ -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();
}
}
@@ -65,6 +65,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();
@@ -18,15 +18,25 @@ namespace demo
{
}
void MainWindow::OnCreate()
{
}
void MainWindow::OnDestroy()
{
}
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
MainWindow::MainWindow()
{
InitializeComponents();
OnCreate();
}
MainWindow::~MainWindow()
{
OnDestroy();
ClearSubscriptions();
}
}
@@ -66,6 +66,8 @@ namespace demo
// #region CLASS_MEMBER_GUIEVENT_HANDLER (DO NOT PUT OTHER CONTENT IN THIS #region.)
void documentLabel_ActiveHyperlinkExecuted(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
void OnCreate();
void OnDestroy();
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
MainWindow();
@@ -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(Ptr<demo::IViewModel> ViewModel)
{
InitializeComponents(ViewModel);
OnCreate();
}
MainWindow::~MainWindow()
{
OnDestroy();
ClearSubscriptions();
}
}

Some files were not shown because too many files have changed in this diff Show More