Beispiel #1
0
        public DVHView(PlanSetup planSetup)
        {
            DVHViewModel dVHViewModel = new DVHViewModel(planSetup);

            this.DataContext = dVHViewModel;
            InitializeComponent();
        }
Beispiel #2
0
 public MainViewModel(PlanViewModel planViewModel,
                      DoseMetricViewModel doseMetricViewModel,
                      DVHViewModel dVHViewModel)
 {
     PlanViewModel       = planViewModel;
     DoseMetricViewModel = doseMetricViewModel;
     DVHViewModel        = dVHViewModel;
 }
Beispiel #3
0
 public MainViewModel(DoseMetricSelectionViewModel doseMetricSelectionViewModel,
                      DoseMetricViewModel doseMetricViewModel,
                      DVHSelectionViewModel dVHSelectionViewModel,
                      DVHViewModel dVHViewModel,
                      DoseParametersViewModel doseParametersViewModel,
                      IEventAggregator eventAggregator)
 {
     DoseMetricViewModel          = doseMetricViewModel;
     DoseMetricSelectionViewModel = doseMetricSelectionViewModel;
     DVHSelectionViewModel        = dVHSelectionViewModel;
     DVHViewModel            = dVHViewModel;
     DoseParametersViewModel = doseParametersViewModel;
     _eventAggregator        = eventAggregator;
     SaveTemplateCommand     = new DelegateCommand(OnSaveTemplate);
     LoadMetricsCommand      = new DelegateCommand(OnLoadMetrics);
     PrintCommand            = new DelegateCommand(OnPrint);
 }