private void ShowTab(IEditPage editPage) { Control control = (Control)editPage; base.ContentPanel.Controls.Add(control); control.BackColor = Color.Transparent; control.Dock = DockStyle.Fill; editPage.SetXenObjects(this.xenObject, this.xenObjectCopy); base.verticalTabs.Items.Add(editPage); }
private void ShowTab(IEditPage editPage) { var pageAsControl = (Control)editPage; ContentPanel.Controls.Add(pageAsControl); pageAsControl.BackColor = Color.Transparent; pageAsControl.Dock = DockStyle.Fill; editPage.SetXenObjects(xenObject, xenObjectCopy); verticalTabs.Items.Add(editPage); }