public MeasuringGroupEditorViewModel(IMeasuringElementEditorViewModelFactory measuringElementEditorViewModelFactory, IApplicationGlobalCommands applicationGlobalCommands, ILogService logService)
 {
     _measuringElementEditorViewModelFactory = measuringElementEditorViewModelFactory;
     _applicationGlobalCommands = applicationGlobalCommands;
     _logService = logService;
     MeasuringElementEditorViewModels       = new ObservableCollection <IMeasuringElementEditorViewModel>();
     AddDiscretMeasuringElementCommand      = new RelayCommand(OnAddDiscretMeasuringElementExecute);
     AddDiscretMeasuringElementGroupCommand = new RelayCommand(OnAddDiscretMeasuringElementGroupCommandExecute);
     AddAnalogMeasuringElementCommand       = new RelayCommand(OnAddAnalogMeasuringElementExecute);
     DeleteMeasuringElementCommand          = new RelayCommand <object>(OnDeleteMeasuringElementExecute);
     AddControlSignalCommand         = new RelayCommand(OnAddControlSignalExecute);
     OpenPresentationSettingsCommand = new RelayCommand(OnOpenPresentationSettingsCommand);
     PresentationSettingsViewModel   = new PresentationSettingsViewModel(this, new Dictionary <Guid, PositioningInfoViewModel>());
     AddDateTimeCommand = new RelayCommand(OnAddDateTimeExecute);
 }
 private void OnOpenPresentationSettingsCommand()
 {
     PresentationSettingsViewModel.UpdateMeasuringElements();
     _applicationGlobalCommands.ShowWindowModal(() => new PresentationSettingsWindow(),
                                                PresentationSettingsViewModel);
 }