Changeset 8211 for trunk/sources/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceConsumerViewGeneric.cs
- Timestamp:
- 07/04/12 12:41:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceConsumerViewGeneric.cs
r8199 r8211 26 26 using System.Windows.Forms; 27 27 using HeuristicLab.Common.Resources; 28 using HeuristicLab.Core; 28 29 using HeuristicLab.MainForm; 29 30 using HeuristicLab.MainForm.WindowsForms; … … 161 162 162 163 protected string GetProblemType() { 164 var item = Content as IItem; 165 if (item != null) 166 return item.ItemName; 167 return "problem"; 168 } 169 protected string GetProviderFormatInfo() { 163 170 return SelectedProvider.Name; 164 171 } … … 167 174 protected void SetTooltip() { 168 175 toolTip.SetToolTip(problemInstanceProviderComboBox, GetProviderToolTip()); 169 toolTip.SetToolTip(importButton, "Import a " + GetProblemType() + " problem from file.");170 toolTip.SetToolTip(exportButton, "Export currently loaded " + GetProblemType() + " problem to a file.");176 toolTip.SetToolTip(importButton, "Import a " + GetProblemType() + " from a file in the " + GetProviderFormatInfo() + " format."); 177 toolTip.SetToolTip(exportButton, "Export currently loaded " + GetProblemType() + " to a file in the " + GetProviderFormatInfo() + " format."); 171 178 if (SelectedProvider.WebLink != null) 172 179 toolTip.SetToolTip(libraryInfoButton, "Browse to " + SelectedProvider.WebLink.ToString());
Note: See TracChangeset
for help on using the changeset viewer.