Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     QueryTestCase qtc = new QueryTestCase();
     qtc.MaxScore = txtMaxScore.Text;
     qtc.Query = txtQuery.Text;
     qtc.FileName = txtFileName.Text;
     qtc.ErrMsg = txtErrMsg.Text;
     TestSuiteDB.saveQueryTestCase(qtc);
     MessageBox.Show("Query TestCase Saved Successfully", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
     this.Hide();
 }
Ejemplo n.º 2
0
 public static void saveQueryTestCase(QueryTestCase qtc)
 {
     if (queryTests == null) queryTests = new QueryTestCase[10];
     queryTests[queryTestCount] = qtc;
     queryTestCount++;
 }