コード例 #1
0
ファイル: MainForm.cs プロジェクト: kalvdans/openmovement
        //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
ファイル: MainForm.cs プロジェクト: kalvdans/openmovement
 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);
 }