Changeset 12444 for branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views/ThresholdTerminatorView.cs
- Timestamp:
- 06/15/15 11:08:52 (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/TerminationCriteria/HeuristicLab.Termination/3.3/Views/ThresholdTerminatorView.cs
r12441 r12444 20 20 #endregion 21 21 22 using HeuristicLab.Core; 22 23 using HeuristicLab.Core.Views; 24 using HeuristicLab.Data; 23 25 using HeuristicLab.MainForm; 24 26 … … 26 28 27 29 [View("ThresholdTerminator View")] 28 [Content(typeof( ISingleValueTerminator), true)]29 public partial class SingleValueTerminatorView : ItemView{30 [Content(typeof(ThresholdTerminator<>), true)] 31 public partial class ThresholdTerminatorView<T> : ItemView where T : class, IItem, IStringConvertibleValue, new() { 30 32 31 public new ISingleValueTerminatorContent {32 get { return ( ISingleValueTerminator)base.Content; }33 public new ThresholdTerminator<T> Content { 34 get { return (ThresholdTerminator<T>)base.Content; } 33 35 set { base.Content = value; } 34 36 } 35 37 36 public SingleValueTerminatorView() {38 public ThresholdTerminatorView() { 37 39 InitializeComponent(); 38 40 } … … 42 44 viewHost.Content = null; 43 45 if (Content != null) { 44 viewHost.Content = Content. SingleValueParameter.ActualValue ?? Content.SingleValueParameter;46 viewHost.Content = Content.ThresholdParameter.ActualValue ?? Content.ThresholdParameter; 45 47 } 46 48 }
Note: See TracChangeset
for help on using the changeset viewer.