- Timestamp:
- 03/01/12 15:52:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3/ProblemView.cs
r7538 r7539 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.Reflection; 25 26 using System.Windows.Forms; 26 27 using HeuristicLab.Core.Views; … … 64 65 var provider = (IProblemInstanceProvider)problemInstanceProviderComboBox.SelectedItem; 65 66 var genericType = provider.GetType().GetInterfaces().Single(x => x.IsGenericType && x.GetGenericTypeDefinition() == typeof(IProblemInstanceProvider<>)).GetGenericArguments().First(); 66 this.GetType().GetMethod("SetConsumable").MakeGenericMethod(genericType).Invoke(this, new object[] { provider, Content }); 67 this.GetType().GetMethod("SetConsumable", BindingFlags.NonPublic | BindingFlags.Instance) 68 .MakeGenericMethod(genericType).Invoke(this, new object[] { provider, Content }); 67 69 problemInstanceProviderViewHost.Content = provider; 68 70 }
Note: See TracChangeset
for help on using the changeset viewer.