Beispiel #1
0
 public ShellCommandControl(TestEditorControl testEditorControl, string command)
 {
     InitializeComponent();
     _testEditorControl    = testEditorControl;
     this.command          = command;
     textShellCommand.Text = command;
 }
Beispiel #2
0
 public ExpectedDataControl(TestEditorControl testEditorControl, ExpectedData data = null)
 {
     InitializeComponent();
     _testEditorControl = testEditorControl;
     if (null != data)
     {
         textName.Text  = data.name;
         textValue.Text = data.value;
         expectedData   = data;
     }
 }
Beispiel #3
0
 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;
 }