Changeset 7860 for trunk/sources/HeuristicLab.Problems.Instances.Views
- Timestamp:
- 05/21/12 15:38:58 (12 years ago)
- 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 52 52 InitializeComponent(); 53 53 libraryInfoButton.Text = String.Empty; 54 libraryInfoButton.Image = VSImageLibrary. Internet;54 libraryInfoButton.Image = VSImageLibrary.Help; 55 55 } 56 56 -
trunk/sources/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs
r7770 r7860 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.IO; 24 25 using System.Linq; … … 65 66 importButton.Text = String.Empty; 66 67 importButton.Image = VSImageLibrary.Open; 67 toolTip.SetToolTip(importButton, " Importa " + GetProblemType() + " problem from file.");68 toolTip.SetToolTip(importButton, "Open a " + GetProblemType() + " problem from file."); 68 69 exportButton.Text = String.Empty; 69 70 exportButton.Image = VSImageLibrary.Save; … … 80 81 } else { 81 82 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(); 83 98 } 84 99 }
Note: See TracChangeset
for help on using the changeset viewer.