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); }
public MeasuringGroupEditorViewModelFactory(ITypesContainer container, IMeasuringElementEditorViewModelFactory measuringElementEditorViewModelFactory) { _container = container; _measuringElementEditorViewModelFactory = measuringElementEditorViewModelFactory; }