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; }
public EventDrivenLayout(ActivityDesigner activityDesigner, TitleBarLayout titleBarLayout) : base(activityDesigner) { _breadCrumbBarLayout = new BreadCrumbBarLayout(activityDesigner); _designerLayout = new DesignerLinkLayout(activityDesigner); StateDesigner stateDesigner = activityDesigner as StateDesigner; if (stateDesigner != null) { _designerLayout.ParentStateDesigner = stateDesigner; _designerLayout.MouseDown += new MouseEventHandler(stateDesigner.StateDesignerLinkMouseDown); } _titleBarLayout = titleBarLayout; }
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; }