private void btnAddNewTestSet_Click(object sender, EventArgs e) { Settings.PayloadClass.TestSet ts = new Settings.PayloadClass.TestSet(); if (new frmEditTestSet(settings, ts).ShowDialog() == DialogResult.OK) { lstTestSets.Items.Add(ts); } }
private void btnAddNewTestSet_Click(object sender, EventArgs e) { var ts = new Settings.PayloadClass.TestSet(); if (new frmEditTestSet(settings, ts).ShowDialog() == DialogResult.OK) { lstTestSets.Items.Add(ts); } }
public frmEditTestSet(Settings settings, Settings.PayloadClass.TestSet testset) { this.settings = settings; this.testset = testset; InitializeComponent(); }