public TestEditInfo(ITestBase testCase, SimpleSteps simpleSteps, TestEditUserControl testEditControl) { WorkItemId = testCase.Id; TestCase = testCase; SimpleSteps = simpleSteps; TestEditControl = testEditControl; }
public static TestEditUserControl Create(TestEditInfo testInfo, ContextMenuStrip contextMenuStrip, bool showResultsPanel) { var newControl = new TestEditUserControl(testInfo); newControl.TestDataGridView = TestStepsDataGridView.Create( testInfo.SimpleSteps, contextMenuStrip); newControl._splitContainer.Panel1.Controls.Add(newControl.TestDataGridView); newControl._splitContainer.Panel2Collapsed = !showResultsPanel; return newControl; }