예제 #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);
 }