public void Add()
 {
     var data = new BindableExpertise(new BindableInterval());
     var vm = new IntervalViewModel(this.windowManager, data, this.hierarchyManager);
     var result = this.windowManager.ShowDialog(vm);
     if (result.HasValue && result.Value)
     {
         this.Values.Add(data);
     }
     this.eventAggregator.PublishOnUIThread(new DataChangedEvent());
     this.NotifyOfPropertyChange(() => this.Values);
 }
 public void Edit()
 {
     var vm = new IntervalViewModel(this.windowManager, this.SelectedItem, this.hierarchyManager);
     this.windowManager.ShowDialog(vm);
     this.eventAggregator.PublishOnUIThread(new DataChangedEvent());
     this.NotifyOfPropertyChange(() => this.Values);
 }