- Timestamp:
- 09/16/19 11:57:18 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.Instances.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.Designer.cs
r17226 r17252 81 81 // 82 82 this.openFileDialog.Filter = "All files|*.*"; 83 this.openFileDialog.Title = "Import Problem Data..."; 83 84 // 84 85 // saveFileDialog 85 86 // 86 this.saveFileDialog.Filter = " CSV files|*.csv|All files|*.*";87 this.saveFileDialog.Title = " Save RegressionInstance...";87 this.saveFileDialog.Filter = "All files|*.*"; 88 this.saveFileDialog.Title = "Export Problem Data..."; 88 89 // 89 90 // instanceLabel -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs
r17226 r17252 150 150 151 151 protected virtual void importButton_Click(object sender, EventArgs e) { 152 var exts = Content.ImportFileExtensions.ToArray(); 153 openFileDialog.AddExtension = exts.Length > 0; 154 openFileDialog.Filter = exts.Length > 0 ? string.Join("|", exts.Select(x => x + " files|*." + x)) : "All files|*.*"; ; 155 openFileDialog.DefaultExt = exts.FirstOrDefault() ?? string.Empty; 152 156 openFileDialog.FileName = Content.Name + " instance"; 153 157 if (openFileDialog.ShowDialog() == DialogResult.OK) { … … 169 173 170 174 protected virtual void exportButton_Click(object sender, EventArgs e) { 175 var exts = Content.ExportFileExtensions.ToArray(); 176 saveFileDialog.AddExtension = exts.Length > 0; 177 saveFileDialog.Filter = exts.Length > 0 ? string.Join("|", exts.Select(x => x + " files|*." + x)) : "All files|*.*"; ; 178 saveFileDialog.DefaultExt = exts.FirstOrDefault() ?? string.Empty; 179 try { 180 saveFileDialog.FileName = ((dynamic)Exporter).Name; 181 } catch { saveFileDialog.FileName = "Data"; } 171 182 if (saveFileDialog.ShowDialog(this) == DialogResult.OK) { 172 183 try {
Note: See TracChangeset
for help on using the changeset viewer.