Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/20/17 14:14:58 (8 years ago)
Author:
mkommend
Message:

#2749: Changed DataAnalysisSolutionView to open the Result.Value in a new view when double clicking a detailed result.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs

    r14185 r14770  
    2929using HeuristicLab.MainForm;
    3030using HeuristicLab.Optimization;
    31 using HeuristicLab.Optimization.Views;
    3231using HeuristicLab.Persistence.Default.Xml;
    3332using HeuristicLab.PluginInfrastructure;
     
    9796    }
    9897
    99     protected override void itemsListView_DoubleClick(object sender, EventArgs e) {
     98    protected sealed override void itemsListView_DoubleClick(object sender, EventArgs e) {
    10099      if (itemsListView.SelectedItems.Count != 1) return;
    101100
     
    103102      Type viewType = itemsListView.SelectedItems[0].Tag as Type;
    104103      if (result != null) {
    105         IContentView view = MainFormManager.MainForm.ShowContent(result, typeof(ResultView));
     104        IContentView view = MainFormManager.MainForm.ShowContent(result.Value);
    106105        if (view != null) {
     106          view.Caption = result.Name;
    107107          view.ReadOnly = ReadOnly;
    108108          view.Locked = Locked;
Note: See TracChangeset for help on using the changeset viewer.