private void ImportCr10x() { ImportCr10x i = new ImportCr10x(); if (i.ShowDialog() == DialogResult.OK) { DataLogger.Cr10xSeries s = new Reclamation.TimeSeries.DataLogger.Cr10xSeries(openFileDialogCr10x.FileName, i.SelectedInterval, i.SelectedColumn); s.Read(); if (s.Count == 0) { MessageBox.Show("No data found in file:" + openTextFileDialog.FileName); } else if (s.Count > 0) { DB.AddSeries(s, CurrentFolder); } } }