Changeset 8968


Ignore:
Timestamp:
11/28/12 12:55:44 (10 years ago)
Author:
mkommend
Message:

#1988: Corrected configuration of the problem instance provider view in ProblemView which lead to a problem in the cross validation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ProblemView.cs

    r7956 r8968  
    5757        IEnumerable<Type> viewTypes = MainFormManager.GetViewTypes(consumer.GetType(), true);
    5858        Type genericView = viewTypes.Where(x => x.IsSubclassOf(neededViewType)).First();
     59        ProblemInstanceConsumerViewHost.Content = null; //necessary to enable the change of the ViewType
    5960        ProblemInstanceConsumerViewHost.ViewType = genericView;
    6061        ProblemInstanceConsumerViewHost.Content = consumer;
Note: See TracChangeset for help on using the changeset viewer.