public void OpenCompositeActivityFor(CompositeActivity activity) { if (!_compositeActivityTabs.ContainsKey(activity)) { _compositeActivityTabs.Add(activity, new TabPage(activity.Name)); _tabControl.TabPages.Add(_compositeActivityTabs[activity]); } _tabControl.SelectedTab = _compositeActivityTabs[activity]; var designFieldControl = new DesignFieldControl(); _compositeActivityTabs[activity].Controls.Add(designFieldControl); designFieldControl.Dock = DockStyle.Fill; }
public ActivityControlsController(DesignFieldControl designFieldControl){ _designFieldControl = designFieldControl; ActivityControls = new IActivityControl[_columnCount,_rowCount]; _designFieldControl.OnClickInPos += designFieldControl_OnClickInPos; }