private IEnumerable <int> ChooseSamples(string dataSource, IEnumerable <string> sampleNames) { using (var dlg = new ImportResultsSamplesDlg(dataSource, sampleNames)) { if (dlg.ShowDialog(this) == DialogResult.OK) { return(dlg.SampleIndices); } return(null); } }
private IEnumerable<int> ChooseSamples(string dataSource, IEnumerable<string> sampleNames) { using (var dlg = new ImportResultsSamplesDlg(dataSource, sampleNames)) { if (dlg.ShowDialog(this) == DialogResult.OK) return dlg.SampleIndices; return null; } }