Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/21/12 15:38:58 (12 years ago)
Author:
sforsten
Message:

#1784:

  • added additional Keijzer problem instances
  • capitalized names real world problem instances
  • added Friedman I and II
  • added link to VariousInstanceProvider
  • changed symbol of info button for ProblemInstanceProvider in ProblemInstanceConsumerView
  • added CSVProvider for classification and regression problems
  • ProblemInstanceProviderViewGeneric only shows controls to load problem instances, if the selected ProblemInstanceProvider contains IDataDescriptor
Location:
trunk/sources/HeuristicLab.Problems.Instances.Views/3.3
Files:
2 edited

Legend:

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

    r7846 r7860  
    5252      InitializeComponent();
    5353      libraryInfoButton.Text = String.Empty;
    54       libraryInfoButton.Image = VSImageLibrary.Internet;
     54      libraryInfoButton.Image = VSImageLibrary.Help;
    5555    }
    5656
  • trunk/sources/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs

    r7770 r7860  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.IO;
    2425using System.Linq;
     
    6566      importButton.Text = String.Empty;
    6667      importButton.Image = VSImageLibrary.Open;
    67       toolTip.SetToolTip(importButton, "Import a " + GetProblemType() + " problem from file.");
     68      toolTip.SetToolTip(importButton, "Open a " + GetProblemType() + " problem from file.");
    6869      exportButton.Text = String.Empty;
    6970      exportButton.Image = VSImageLibrary.Save;
     
    8081      } else {
    8182        instancesComboBox.DisplayMember = "Name";
    82         instancesComboBox.DataSource = Content.GetDataDescriptors().ToList();
     83        IEnumerable<IDataDescriptor> dataDescriptors = Content.GetDataDescriptors().ToList();
     84        ShowInstanceLoad(dataDescriptors.Count() > 0);
     85        instancesComboBox.DataSource = dataDescriptors;
     86      }
     87    }
     88
     89    protected void ShowInstanceLoad(bool show) {
     90      if (show) {
     91        instanceLabel.Show();
     92        instancesComboBox.Show();
     93        loadButton.Show();
     94      } else {
     95        instanceLabel.Hide();
     96        instancesComboBox.Hide();
     97        loadButton.Hide();
    8398      }
    8499    }
Note: See TracChangeset for help on using the changeset viewer.