private void AddChildToTab(TestStudioTab tabId, ITestStudioControl child, string label, DockState dockState) { var testStudioContent = WrapChild(child, dockState); testStudioContent.Label = label; TestStudioCompositeControl tab; if (tabs.TryGetValue(tabId, out tab)) tab.AddChild(testStudioContent); else { MessageBox.Show(String.Format("{0} tab does not exist.", tabId.ToString())); return; } }
public void CreateTab(TestStudioTab tabId) { var tab = factory.GetCompositeControl(true); tab.Label = tabId.ToString(); tabs.Add(tabId, tab); AddChildToForm(tab, tabId.ToString(), DockState.Document); }