private void exportTestToolStripMenuItem_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { TestImporterExporter.importTest(openFileDialog1.FileName); } }
private void button6_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { TestImporterExporter.exportTest(((Test)listBox1.Items[listBox1.SelectedIndex])); } else { MessageBox.Show("Please select a test from the list"); } }