Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/12 15:52:24 (13 years ago)
Author:
abeham
Message:

#1614

  • fixed a discovery bug
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Views/3.3/ProblemView.cs

    r7538 r7539  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using System.Reflection;
    2526using System.Windows.Forms;
    2627using HeuristicLab.Core.Views;
     
    6465        var provider = (IProblemInstanceProvider)problemInstanceProviderComboBox.SelectedItem;
    6566        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 });
    6769        problemInstanceProviderViewHost.Content = provider;
    6870      }
Note: See TracChangeset for help on using the changeset viewer.