Last change
on this file since 6133 was
6133,
checked in by gkronber, 13 years ago
|
#1471: imported generic parts of DataImporter from private code base
|
File size:
948 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.IO;
|
---|
6 | using HeuristicLab.DataImporter.DataProcessor;
|
---|
7 | using HeuristicLab.DataImporter.Data.Model;
|
---|
8 | using HeuristicLab.DataImporter.Data.CommandBase;
|
---|
9 |
|
---|
10 | namespace HeuristicLab.DataImporter.Backend.Csv {
|
---|
11 | public class CsvImporter : IImporter {
|
---|
12 |
|
---|
13 | public string Description {
|
---|
14 | get { return "Import CSV file"; }
|
---|
15 | }
|
---|
16 |
|
---|
17 | private CsvImporterView view;
|
---|
18 | public System.Windows.Forms.UserControl SettingsControl {
|
---|
19 | get {
|
---|
20 | if (view == null)
|
---|
21 | view = new CsvImporterView();
|
---|
22 | return view;
|
---|
23 | }
|
---|
24 | }
|
---|
25 |
|
---|
26 | public ICommand CreateImportCommand(DataSet dataSet) {
|
---|
27 | CsvImportCommand cmd = new CsvImportCommand(dataSet);
|
---|
28 | cmd.FileName = view.FileName;
|
---|
29 | cmd.ColumnNamesInFirstRow = view.ColumnNamesInFirstRow;
|
---|
30 | cmd.Delimiter = view.Delimiter;
|
---|
31 | return cmd;
|
---|
32 | }
|
---|
33 | }
|
---|
34 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.