Changeset 17843 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ConcreteItemsRestrictor.cs
- Timestamp:
- 02/23/21 16:36:44 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ConcreteItemsRestrictor.cs
r17829 r17843 15 15 public event Action<object> OnUnchecked; 16 16 17 p ublicConcreteItemsRestrictor() {17 protected ConcreteItemsRestrictor() { 18 18 InitializeComponent(); 19 19 } 20 20 21 public void Init<T>(IEnumerable<T> objs) { 22 if(objs != null) { 23 foreach(var obj in objs) { 21 public static ConcreteItemsRestrictor Create<T>(IEnumerable<T> objs) { 22 ConcreteItemsRestrictor ctrl = new ConcreteItemsRestrictor(); 23 ctrl.Init<T>(objs); 24 return ctrl; 25 } 26 27 protected void Init<T>(IEnumerable<T> objs) { 28 if(objs != null) 29 foreach(var obj in objs) 24 30 SetupOption(obj); 25 }26 }27 31 } 28 32
Note: See TracChangeset
for help on using the changeset viewer.