public SetMatchupProposerViewModel( IEnumerable<IMatchupProposer> proposers, IMatchupProposer activeMatchupProposer )
 {
     Algorithms = proposers
         .Select( proposer => new Algorithm( proposer, proposer.GetType() == activeMatchupProposer.GetType() ) )
         .ToArray();
 }
Exemple #2
0
 public Algorithm(IMatchupProposer proposer, bool selected = false )
     : this(proposer.GetType().FullName, proposer.GetType().Name, selected)
 {
 }