protected override void Initialize(Activity activity)
 {
     base.Initialize(activity);
     EnsureDesignerExtender();
     _titleBarLayout = new TitleBarLayout(this);
     _eventDrivenLayout = new EventDrivenLayout(this, _titleBarLayout);
     _eventHandlersLayout = new EventHandlersLayout(this);
     _statesLayout = new StatesLayout(this, _titleBarLayout, _eventHandlersLayout);
     _designerLinkLayout = new DesignerLinkLayout(this);
     _designerLinkLayout.MouseDown += new MouseEventHandler(this.StateDesignerLinkMouseDown);
     this.AutoSizeMargin = new Size(16, 24);
     this.AutoSize = true;
 }
 protected override void Initialize(Activity activity)
 {
     base.Initialize(activity);
     this.EnsureDesignerExtender();
     this._titleBarLayout = new TitleBarLayout(this);
     this._eventDrivenLayout = new EventDrivenLayout(this, this._titleBarLayout);
     this._eventHandlersLayout = new EventHandlersLayout(this);
     this._statesLayout = new StatesLayout(this, this._titleBarLayout, this._eventHandlersLayout);
     this._designerLinkLayout = new DesignerLinkLayout(this);
     this._designerLinkLayout.MouseDown += new MouseEventHandler(this.StateDesignerLinkMouseDown);
     base.AutoSizeMargin = new System.Drawing.Size(0x10, 0x18);
     base.AutoSize = true;
 }