//Save new csv instructions file private void save_Click(object sender, EventArgs e) { string f; if ((f = GetFiles.saveTC()) == null) { return; } steps.writeTo(f); }
//Get csv file path from user private void Open_Click(object sender, EventArgs e) { string f; if ((f = GetFiles.GetTC()) == null) { return; } string imDir = Path.Combine(Path.GetDirectoryName(f), Path.GetFileNameWithoutExtension(f)); if (File.Exists(f) && Directory.Exists(imDir)) { dispTC(new SControl(f)); } else { MessageBox.Show("Associated image directory not found"); } }