Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5833


Ignore:
Timestamp:
03/28/11 10:50:01 (14 years ago)
Author:
swagner
Message:

Removed redundant new line string constant (#1416)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemView.cs

    r5832 r5833  
    3333  [Content(typeof(INamedItem), false)]
    3434  public partial class NamedItemView : ItemView {
    35     private readonly string nl = Environment.NewLine;
    3635    private const string infoLabelToolTipSuffix = "Double-click to open description editor.";
    3736
     
    6968      } else {
    7069        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);
    7271        Caption = Content.Name;
    7372      }
     
    9897        Invoke(new EventHandler(Content_DescriptionChanged), sender, e);
    9998      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);
    101100      }
    102101    }
Note: See TracChangeset for help on using the changeset viewer.