public void LoadOpinion(Opinion opinion) { var vm = new SliderViewModel(this.hierarchy, string.Format(ExpertNamePattern, this.Sliders.Count + 1)); vm.CurrentSet = hierarchy.Levels.SingleOrDefault(l => l.Labels.Count == opinion.LabelSet); vm.LowerBoundValue = opinion.LowerBoundLabel.Index; vm.UpperBoundValue = opinion.UpperBoundLabel.Index; this.Sliders.Add(vm); }
public void Add() { var vm = new SliderViewModel(this.hierarchy, string.Format(ExpertNamePattern, this.Sliders.Count + 1)); this.Sliders.Add(vm); }