Changeset 5833 for trunk/sources
- Timestamp:
- 03/28/11 10:50:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemView.cs
r5832 r5833 33 33 [Content(typeof(INamedItem), false)] 34 34 public partial class NamedItemView : ItemView { 35 private readonly string nl = Environment.NewLine;36 35 private const string infoLabelToolTipSuffix = "Double-click to open description editor."; 37 36 … … 69 68 } else { 70 69 nameTextBox.Text = Content.Name; 71 toolTip.SetToolTip(infoLabel, string.IsNullOrEmpty(Content.Description) ? infoLabelToolTipSuffix : Content.Description + nl + nl+ infoLabelToolTipSuffix);70 toolTip.SetToolTip(infoLabel, string.IsNullOrEmpty(Content.Description) ? infoLabelToolTipSuffix : Content.Description + Environment.NewLine + Environment.NewLine + infoLabelToolTipSuffix); 72 71 Caption = Content.Name; 73 72 } … … 98 97 Invoke(new EventHandler(Content_DescriptionChanged), sender, e); 99 98 else { 100 toolTip.SetToolTip(infoLabel, string.IsNullOrEmpty(Content.Description) ? infoLabelToolTipSuffix : Content.Description + nl + nl+ infoLabelToolTipSuffix);99 toolTip.SetToolTip(infoLabel, string.IsNullOrEmpty(Content.Description) ? infoLabelToolTipSuffix : Content.Description + Environment.NewLine + Environment.NewLine + infoLabelToolTipSuffix); 101 100 } 102 101 }
Note: See TracChangeset
for help on using the changeset viewer.