Changeset 9651 for stable/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/DataAnalysisImportTypeDialog.cs
- Timestamp:
- 06/23/13 23:00:30 (11 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9608,9610-9611,9623-9624
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views (added) merged: 9608,9623-9624
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/DataAnalysisImportTypeDialog.cs
r9458 r9651 68 68 Separator = (char)SeparatorComboBox.SelectedValue, 69 69 NumberFormatInfo = (NumberFormatInfo)DecimalSeparatorComboBox.SelectedValue, 70 DateTimeFormatInfo = (DateTimeFormatInfo)DateTimeFormatComboBox.SelectedValue 70 DateTimeFormatInfo = (DateTimeFormatInfo)DateTimeFormatComboBox.SelectedValue, 71 VariableNamesAvailable = CheckboxColumnNames.Checked 71 72 }; 72 73 } … … 99 100 DateTimeFormatComboBox.Enabled = true; 100 101 ProblemTextBox.Text = openFileDialog.FileName; 102 TableFileParser csvParser = new TableFileParser(); 103 CheckboxColumnNames.Checked = csvParser.AreColumnNamesInFirstLine(ProblemTextBox.Text, 104 (NumberFormatInfo)DecimalSeparatorComboBox.SelectedValue, 105 (DateTimeFormatInfo)DateTimeFormatComboBox.SelectedValue, 106 (char)SeparatorComboBox.SelectedValue); 101 107 ParseCSVFile(); 102 108 } 103 109 104 110 protected virtual void CSVFormatComboBoxSelectionChangeCommitted(object sender, EventArgs e) { 111 if (string.IsNullOrEmpty(ProblemTextBox.Text)) return; 112 113 ParseCSVFile(); 114 } 115 116 protected virtual void CheckboxColumnNames_CheckedChanged(object sender, EventArgs e) { 105 117 if (string.IsNullOrEmpty(ProblemTextBox.Text)) return; 106 118 … … 115 127 (NumberFormatInfo)DecimalSeparatorComboBox.SelectedValue, 116 128 (DateTimeFormatInfo)DateTimeFormatComboBox.SelectedValue, 117 (char)SeparatorComboBox.SelectedValue); 129 (char)SeparatorComboBox.SelectedValue, 130 CheckboxColumnNames.Checked); 118 131 IEnumerable<string> variableNamesWithType = GetVariableNamesWithType(csvParser); 119 132 PreviewDatasetMatrix.Content = new Dataset(variableNamesWithType, csvParser.Values);
Note: See TracChangeset
for help on using the changeset viewer.