public ChoiceScorerEditor( ChoiceScorer scorer) { InitializeComponent(); DataContext = new EditableChoiceScorer(scorer); }
public EditableChoiceScorer( ChoiceScorer choiceScorer) { ChoiceScorer = choiceScorer; choiceScorerData.Scale = choiceScorer.Scale; choiceScorerData.Selections = new ObservableCollection <EditableSelection>( choiceScorer.Selections.Select( item => new EditableSelection(item))); }
public EditableChoiceScorer() { ChoiceScorer = new ChoiceScorer(0.0, new ChoiceScorer.Selection[] { }); choiceScorerData.Scale = 0.0; choiceScorerData.Selections = new ObservableCollection <EditableSelection>(); }