Changeset 7665 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceConsumerView.cs
- Timestamp:
- 03/27/12 13:31:44 (12 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification
- Property svn:ignore
-
old new 3 3 protoc.exe 4 4 ProtoGen.exe 5 bin
-
- Property svn:ignore
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4
-
Property
svn:ignore
set to
bin
HeuristicLab.Problems.Instances.Views-3.4.csproj.user
obj
-
Property
svn:ignore
set to
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceConsumerView.cs
r7664 r7665 73 73 private void problemInstanceProviderComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { 74 74 if (problemInstanceProviderComboBox.SelectedIndex >= 0) { 75 //dynamic provider = SelectedProvider;76 //dynamic consumer = Content;77 //provider.Consumer = consumer;78 75 problemInstanceProviderViewHost.Content = SelectedProvider; 79 76 dynamic view = problemInstanceProviderViewHost.ActiveView; 80 view.Consumer = Content; 81 //Check if IProblemInstanceExporterView is implemented 82 view.Exporter = Content; 77 dynamic content = Content; 78 view.Consumer = content; 79 if (CheckForIProblemInstanceExporter(Content)) 80 view.Exporter = content; 83 81 //SetTooltip(); 84 82 } 85 83 SetEnabledStateOfControls(); 84 } 85 86 private bool CheckForIProblemInstanceExporter(IProblemInstanceConsumer content) { 87 // no check if IProblemInstanceConsumer<T> and IProblemInstanceExporter<T> have the same generic type T 88 return Content.GetType().GetInterfaces() 89 .Any(x => x.IsGenericType && x.GetGenericTypeDefinition().Equals(typeof(IProblemInstanceExporter<>))); 86 90 } 87 91
Note: See TracChangeset
for help on using the changeset viewer.