Changeset 5896
- Timestamp:
- 03/30/11 18:13:04 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization.Views/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultCollectionView.cs
r5875 r5896 40 40 InitializeComponent(); 41 41 itemsGroupBox.Text = "Results"; 42 viewHost.ViewsLabelVisible = false; 42 43 base.ReadOnly = true; 43 44 } … … 47 48 } 48 49 49 protected override void itemsListView_SelectedIndexChanged(object sender, EventArgs e) { 50 viewHost.ViewType = typeof(ResultValueView); 51 base.itemsListView_SelectedIndexChanged(sender, e); 52 } 53 protected override void showDetailsCheckBox_CheckedChanged(object sender, EventArgs e) { 54 viewHost.ViewType = typeof(ResultValueView); 55 base.showDetailsCheckBox_CheckedChanged(sender, e); 50 protected override void itemsListView_DoubleClick(object sender, EventArgs e) { 51 if (itemsListView.SelectedItems.Count == 1) { 52 IResult result = itemsListView.SelectedItems[0].Tag as IResult; 53 if (result != null) { 54 IContentView view = MainFormManager.MainForm.ShowContent(result, typeof(ResultView)); 55 if (view != null) { 56 view.ReadOnly = ReadOnly; 57 view.Locked = Locked; 58 } 59 } 60 } 56 61 } 57 62 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultValueView.cs
r5875 r5896 27 27 namespace HeuristicLab.Optimization.Views { 28 28 [View("Result Value View")] 29 [Content(typeof(Result), false)]29 [Content(typeof(Result), true)] 30 30 [Content(typeof(IResult), false)] 31 31 public sealed partial class ResultValueView : ItemView { -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultView.cs
r5445 r5896 31 31 /// </summary> 32 32 [View("Result View")] 33 [Content(typeof(Result), true)]33 [Content(typeof(Result), false)] 34 34 [Content(typeof(IResult), false)] 35 35 public sealed partial class ResultView : NamedItemView {
Note: See TracChangeset
for help on using the changeset viewer.