Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/25/12 10:57:42 (12 years ago)
Author:
sforsten
Message:

#1942:

  • fixed type "Shuffel"
  • removed icon and control box
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis.Views/3.3/DataAnalysisInstanceConsumerView.cs

    r8599 r8693  
    4747      var provider = SelectedProvider as DataAnalysisInstanceProvider<T>;
    4848      if (provider != null) {
    49         openFileDialog.FileName = GetProblemType() + " instance";
    50         if (openFileDialog.ShowDialog() == DialogResult.OK) {
     49        DataAnalysisImportTypeDialog importTypeDialog = new DataAnalysisImportTypeDialog();
     50        if (importTypeDialog.ShowDialog() == DialogResult.OK) {
    5151          T instance = default(T);
    5252          try {
    53             DataAnalysisImportTypeDialog importTypeDialog = new DataAnalysisImportTypeDialog();
    54             if (importTypeDialog.ShowDialog() == DialogResult.OK) {
    55               instance = provider.ImportData(openFileDialog.FileName, importTypeDialog.ImportType);
    56             } else {
    57               return;
    58             }
     53            instance = provider.ImportData(importTypeDialog.Path, importTypeDialog.ImportType);
     54
    5955          }
    6056          catch (Exception ex) {
     
    6662          }
    6763          catch (Exception ex) {
    68             MessageBox.Show(String.Format("This problem does not support loading the instance {0}: {1}", Path.GetFileName(openFileDialog.FileName), Environment.NewLine + ex.Message), "Cannot load instance");
     64            MessageBox.Show(String.Format("This problem does not support loading the instance {0}: {1}", Path.GetFileName(importTypeDialog.Path), Environment.NewLine + ex.Message), "Cannot load instance");
    6965          }
     66        } else {
     67          return;
    7068        }
    7169      } else {
Note: See TracChangeset for help on using the changeset viewer.