Пример #1
0
 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);
 }
Пример #2
0
 public void Add()
 {
     var vm = new SliderViewModel(this.hierarchy, string.Format(ExpertNamePattern, this.Sliders.Count + 1));
     this.Sliders.Add(vm);
 }