Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3819


Ignore:
Timestamp:
05/17/10 00:08:33 (15 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893)

File:
1 edited

Legend:

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

    r3758 r3819  
    225225      if (listView.SelectedItems.Count == 1) {
    226226        T item = (T)listView.SelectedItems[0].Tag;
    227         IView view = MainFormManager.MainForm.ShowContent(item);
     227        IContentView view;
     228        view = MainFormManager.MainForm.Views.OfType<IContentView>().Where(x => (x.Content != null) && (x.Content == item)).FirstOrDefault();
    228229        if (view != null) {
    229           view.ReadOnly = this.ReadOnly;
     230          view.Show();
     231        } else {
     232          view = MainFormManager.MainForm.ShowContent(item);
     233          if (view != null) {
     234            view.ReadOnly = this.ReadOnly;
     235          }
    230236        }
    231237      }
Note: See TracChangeset for help on using the changeset viewer.