Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/16 14:40:38 (8 years ago)
Author:
mkommend
Message:

#2587: Added parameter descriptions as tooltip to the listview items in the CreateExperimentDialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs

    r13671 r13681  
    5656    private bool createBatchRun;
    5757    private int repetitions;
    58     private Dictionary<IProblemInstanceProvider, HashSet<IDataDescriptor>> instances;
    59     private Dictionary<IValueParameter, IntArray> intParameters;
    60     private Dictionary<IValueParameter, DoubleArray> doubleParameters;
    61     private HashSet<IValueParameter> boolParameters;
    62     private Dictionary<IValueParameter, HashSet<IItem>> multipleChoiceParameters;
    63     private IItem optionalNullChoice = new BoolValue(); // any item will do
     58    private readonly Dictionary<IProblemInstanceProvider, HashSet<IDataDescriptor>> instances;
     59    private readonly Dictionary<IValueParameter, IntArray> intParameters;
     60    private readonly Dictionary<IValueParameter, DoubleArray> doubleParameters;
     61    private readonly HashSet<IValueParameter> boolParameters;
     62    private readonly Dictionary<IValueParameter, HashSet<IItem>> multipleChoiceParameters;
     63    private readonly IItem optionalNullChoice = new BoolValue(); // any item will do
    6464
    6565    private StringBuilder failedInstances;
    66     private EventWaitHandle backgroundWorkerWaitHandle = new ManualResetEvent(false);
     66    private readonly EventWaitHandle backgroundWorkerWaitHandle = new ManualResetEvent(false);
    6767    private bool suppressTreeViewEventHandling, suppressCheckAllNoneEventHandling;
    6868
     
    489489            || typeof(OptionalConstrainedValueParameter<>).IsAssignableFrom(param.GetType().GetGenericTypeDefinition())
    490490            || typeof(ConstrainedValueParameter<>).IsAssignableFrom(param.GetType().GetGenericTypeDefinition()))
    491             parametersListView.Items.Add(new ListViewItem(param.Name) { Tag = param });
     491            parametersListView.Items.Add(new ListViewItem(param.Name) { Tag = param, ToolTipText = param.Description });
    492492        }
    493493      }
Note: See TracChangeset for help on using the changeset viewer.