Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/15/13 16:11:27 (11 years ago)
Author:
jkarder
Message:

#2116: added prototype of a breadcrumb navigation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/ResultCollectionView.cs

    r9456 r10042  
    2020#endregion
    2121
    22 using System;
    2322using HeuristicLab.Core;
    2423using HeuristicLab.Core.Views;
    2524using HeuristicLab.MainForm;
     25using HeuristicLab.MainForm.WindowsForms;
    2626
    2727namespace HeuristicLab.Optimization.Views {
     
    3333    public override bool ReadOnly {
    3434      get { return true; }
    35       set { /*not needed because results are always readonly */}
     35      set { /* not needed because results are always readonly */}
    3636    }
    3737
     
    4545      return null;
    4646    }
    47 
    48     protected override void itemsListView_DoubleClick(object sender, EventArgs e) {
    49       if (itemsListView.SelectedItems.Count == 1) {
    50         IResult result = itemsListView.SelectedItems[0].Tag as IResult;
    51         if (result != null) {
    52           IContentView view = MainFormManager.MainForm.ShowContent(result, typeof(ResultView));
    53           if (view != null) {
    54             view.ReadOnly = ReadOnly;
    55             view.Locked = Locked;
    56           }
    57         }
    58       }
    59     }
    6047  }
    6148}
Note: See TracChangeset for help on using the changeset viewer.