private GenerateInitCode ( |
||
ctx | ||
var | System.CodeDom.CodeExpression | |
return | void |
internal void GenerateInitCode(GeneratorContext ctx, CodeExpression var)
{
// Set the value for initialization properties. The value for those properties is
// usually set in the constructor, but top levels are created by the user, so
// those properties need to be explicitely set in the Gui.Build method.
foreach (PropertyDescriptor prop in ClassDescriptor.InitializationProperties) {
GeneratePropertySet (ctx, var, prop);
}
}
public virtual void GenerateCreationCode (ObjectWrapper wrapper, CodeExpression varExp) { rootObject = varExp; wrapper.GenerateInitCode (this, varExp); GenerateBuildCode (wrapper, varExp); }