示例#1
0
        //Exporting many.
        private void ExportData(List<string> files, int numDevicesSelected)
        {
            string folder = GetPath(Properties.Settings.Default.CurrentWorkingFolder);

            ExportForm exportForm;

            foreach (string fileName in files)
            {
                exportForm = new ExportForm(fileName, folder, -1, -1, null);
                exportForm.ShowDialog();
            }

            //If 'numDevicesSelected' > -1 then we are dealing with devices otherwise we are dealing with files.
            if (numDevicesSelected > 1)
            {
                //TS - Display messagebox of which exported from those selected.
                MessageBox.Show(files.Count + " device data exported from a selection of " + numDevicesSelected + " devices.", "Export Status", MessageBoxButtons.OK);
            }
        }
示例#2
0
 private void ExportData(string fileName, float blockStart, float blockCount, string blockDescription)
 {
     string folder = GetPath(Properties.Settings.Default.CurrentWorkingFolder);
     ExportForm exportForm = new ExportForm(fileName, folder, blockStart, blockCount, blockDescription);
     DialogResult result = exportForm.ShowDialog(this);
 }