예제 #1
0
        //Save new csv instructions file
        private void save_Click(object sender, EventArgs e)
        {
            string f;

            if ((f = GetFiles.saveTC()) == null)
            {
                return;
            }

            steps.writeTo(f);
        }
예제 #2
0
        //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");
            }
        }