Changeset 3819
- Timestamp:
- 05/17/10 00:08:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/Clipboard.cs
r3758 r3819 225 225 if (listView.SelectedItems.Count == 1) { 226 226 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(); 228 229 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 } 230 236 } 231 237 }
Note: See TracChangeset
for help on using the changeset viewer.