public ShellCommandControl(TestEditorControl testEditorControl, string command) { InitializeComponent(); _testEditorControl = testEditorControl; this.command = command; textShellCommand.Text = command; }
public ExpectedDataControl(TestEditorControl testEditorControl, ExpectedData data = null) { InitializeComponent(); _testEditorControl = testEditorControl; if (null != data) { textName.Text = data.name; textValue.Text = data.value; expectedData = data; } }
public TestControl(Test test, dynamic testEditorControl) { InitializeComponent(); if (null != test) { this.Test = test; var expectedDataTooltip = frmConfigEditor.CreateTooltip(); expectedDataTooltip.SetToolTip(this.scrollableControlExpectedData, "Right click to add/delete an expected data (name/value pair)."); var shellCommandTooltip = frmConfigEditor.CreateTooltip(); shellCommandTooltip.SetToolTip(this.scrollableControlShellCommand, "Right click to add/delete a shell command."); _addExpectedDataContexMenu(); _addShellCommandContextMenu(); } this._testEditorControl = testEditorControl; this.EditorForm = testEditorControl.FrmConfigEditor; }