public ConfigurationEditorViewModelValidator(IFormatterEditorFactory formatterEditorFactory, ILocalizerService localizerService, ISharedResourcesGlobalViewModel sharedResourcesGlobalViewModel) { _formatterEditorFactory = formatterEditorFactory; _localizerService = localizerService; _sharedResourcesGlobalViewModel = sharedResourcesGlobalViewModel; }
public BoolToAddressDependencyViewModel(IFormatterEditorFactory formatterEditorFactory, ISharedResourcesGlobalViewModel sharedResourcesGlobalViewModel) { _formatterEditorFactory = formatterEditorFactory; _sharedResourcesGlobalViewModel = sharedResourcesGlobalViewModel; ShowFormatterParametersIfTrueCommand = new RelayCommand(OnShowFormatterParametersIfTrueExecute); ShowFormatterParametersIfFalseCommand = new RelayCommand(OnShowFormatterParametersIfFalseExecute); SetResourceToDependencyCommand = new RelayCommand(OnSetResourceToDependencyExecute); }
public MeasuringElementEditorViewModelFactory(ITypesContainer container, IMeasuringElementFactory measuringElementFactory, ISharedResourcesGlobalViewModel sharedResourcesGlobalViewModel, IFormatterEditorFactory formatterEditorFactory) { _container = container; _measuringElementFactory = measuringElementFactory; _sharedResourcesGlobalViewModel = sharedResourcesGlobalViewModel; _formatterEditorFactory = formatterEditorFactory; }
public MissingDependenciesConfigurationValidator(IFormatterEditorFactory formatterEditorFactory, ILocalizerService localizerService, ISharedResourcesGlobalViewModel sharedResourcesGlobalViewModel, IDependenciesService dependenciesService, DependencyFillHelper dependencyFillHelper) { _formatterEditorFactory = formatterEditorFactory; _localizerService = localizerService; _sharedResourcesGlobalViewModel = sharedResourcesGlobalViewModel; _dependenciesService = dependenciesService; _dependencyFillHelper = dependencyFillHelper; }
public AnalogMeasuringElementEditorViewModel(IFormatterEditorFactory formatterEditorFactory, IApplicationGlobalCommands applicationGlobalCommands, IDependenciesService dependenciesService, ISharedResourcesGlobalViewModel sharedResourcesGlobalViewModel) { _formatterEditorFactory = formatterEditorFactory; _applicationGlobalCommands = applicationGlobalCommands; _dependenciesService = dependenciesService; _sharedResourcesGlobalViewModel = sharedResourcesGlobalViewModel; ShowFormatterParametersCommand = new RelayCommand(OnShowFormatterParametersExecute); ShowDependenciesCommand = new RelayCommand(OnShowDependenciesExecute); }
public RegexConditionsValidator(IFormatterEditorFactory formatterEditorFactory, ILocalizerService localizerService, ISharedResourcesGlobalViewModel sharedResourcesGlobalViewModel, IDependenciesService dependenciesService, DependencyFillHelper dependencyFillHelper, IFormatterInfoService formatterInfoService) { _formatterEditorFactory = formatterEditorFactory; _localizerService = localizerService; _sharedResourcesGlobalViewModel = sharedResourcesGlobalViewModel; _dependenciesService = dependenciesService; _dependencyFillHelper = dependencyFillHelper; _formatterInfoService = formatterInfoService; }
public DependentJournalParameterEditorViewModel(IDependentJournalParameter journalParameter, IJournalConditionEditorViewModelFactory journalConditionEditorViewModelFactory, IApplicationGlobalCommands applicationGlobalCommands, IFormatterEditorFactory formatterEditorFactory) : base(journalParameter) { this._journalConditionEditorViewModelFactory = journalConditionEditorViewModelFactory; this._applicationGlobalCommands = applicationGlobalCommands; this._formatterEditorFactory = formatterEditorFactory; this.CancelCommand = new RelayCommand <object>(this.OnCancel); this.SubmitCommand = new RelayCommand <object>(this.OnSubmit); this.AddConditionCommand = new RelayCommand(this.OnAddConditionExecute); this.JournalConditionEditorViewModels = new ObservableCollection <IJournalConditionEditorViewModel>(); this.DeleteConditionCommand = new RelayCommand <object>(this.OnDeleteConditionExecute); this.ShowFormatterParameters = new RelayCommand(this.OnShowFormatterParameters); }
public RecordTemplateEditorViewModel(IJournalParametersEditorViewModelFactory journalParametersEditorViewModelFactory, IFormatterEditorFactory formatterEditorFactory, IRecordTemplate recordTemplate ) { this._recordTemplate = recordTemplate; this.AllJournalParameterEditorViewModels = new ObservableCollection <IJournalParameterEditorViewModel>(); this._journalParametersEditorViewModelFactory = journalParametersEditorViewModelFactory; this._formatterEditorFactory = formatterEditorFactory; this.AddRecordParameterCommand = new RelayCommand(this.OnAddRecordParameterExecute); this.AddComplexRecordParameterCommand = new RelayCommand(this.OnAddComplexRecordParameterExecute); this.EditElementCommand = new RelayCommand(this.OnEditElementExecute, this.CanExecuteEditElement); this.SetElementUpCommand = new RelayCommand(this.OnSetElementUpExecute, this.CanExecuteSetElementUp); this.SetElementDownCommand = new RelayCommand(this.OnSetElementDownExecute, this.CanExecuteSetElementDown); this.DeleteElementCommand = new RelayCommand(this.OnDeleteElementExecute, this.CanDeleteElementDown); this.AddDependentParameterCommand = new RelayCommand(this.OnAddDependentParameterExecute); this.ShowFormatterParametersCommand = new RelayCommand(this.OnShowFormatterParametersExecute, this.CanShowFormatterParametersExecute); }
public ApplyFormatterResultViewModel(IFormatterEditorFactory formatterEditorFactory) { _formatterEditorFactory = formatterEditorFactory; ShowFormatterParameters = new RelayCommand(() => { _formatterEditorFactory.EditFormatterByUser(this, new List <IConfigurationItemViewModel>()); }); }
public SubJournalParameterEditorViewModel(ISubJournalParameter journalParameter, IFormatterEditorFactory formatterEditorFactory) : base(journalParameter) { this._formatterEditorFactory = formatterEditorFactory; this.BitNumbersInWord = new ObservableCollection <ISharedBitViewModel>(); this.ShowFormatterParametersCommand = new RelayCommand(this.OnShowFormatterParametersExecute); }
public ResultFillHelper(IFormatterEditorFactory formatterEditorFactory, IFormatterViewModelFactory formatterViewModelFactory, ISaveFormatterService saveFormatterService) { this._formatterEditorFactory = formatterEditorFactory; _formatterViewModelFactory = formatterViewModelFactory; _saveFormatterService = saveFormatterService; }
public ConfigurationEditorViewModel( IApplicationGlobalCommands applicationGlobalCommands, Func <IElementAddingCommand> elementAddingCommandAddingFunc, IFormatterEditorFactory formatterEditorFactory, IFragmentSettingsViewModel fragmentSettingsViewModel, ISharedResourcesGlobalViewModel sharedResourcesGlobalViewModel, IDependenciesService dependenciesService, DependencyFillHelper dependencyFillHelper, BaseValuesFillHelper baseValuesFillHelper, ImportPropertiesFromExcelTypeAHelper importPropertiesFromExcelTypeAHelper ) { _allRows = new ObservableCollection <IConfigurationItemViewModel>(); _applicationGlobalCommands = applicationGlobalCommands; _formatterEditorFactory = formatterEditorFactory; _sharedResourcesGlobalViewModel = sharedResourcesGlobalViewModel; _dependenciesService = dependenciesService; _dependencyFillHelper = dependencyFillHelper; _baseValuesFillHelper = baseValuesFillHelper; _importPropertiesFromExcelTypeAHelper = importPropertiesFromExcelTypeAHelper; FragmentSettingsViewModel = fragmentSettingsViewModel; RootConfigurationItemViewModels = new ObservableCollection <IConfigurationItemViewModel>(); ElementsAddingCommandCollection = new ObservableCollection <IElementAddingCommand>(); AddRootElementCommand = new RelayCommand(OnAddRootElement); AddRootGroupElementCommand = new RelayCommand(OnAddRootGroupElementExecute); IElementAddingCommand command = elementAddingCommandAddingFunc(); command.Name = "AddChildElement"; command.AddingCommand = new RelayCommand(OnAddChildElementExecute, CanExecuteAddChildElement); ElementsAddingCommandCollection.Add(command); command = elementAddingCommandAddingFunc(); command.Name = "AddChildGroup"; command.AddingCommand = new RelayCommand(OnAddChildGroupElementExecute, CanExecuteAddChildGroupElement); ElementsAddingCommandCollection.Add(command); EditElementCommand = new RelayCommand(OnEditElementExecute, CanExecuteEditElement); DeleteElementCommand = new RelayCommand(OnDeleteElementExecute, CanExecuteDeleteElement); ShowFormatterParametersCommand = new RelayCommand(OnShowFormatterParametersExecute, CanExecuteShowFormatterParameters); SetElementDownCommand = new RelayCommand(OnSetElementDownExecute, CanExecuteSetElementDown); SetElementUpCommand = new RelayCommand(OnSetElementUpExecute, CanExecuteSetElementUp); OpenConfigurationSettingsCommand = new RelayCommand(OnOpenConfigurationSettingsExecute); CopyElementCommand = new RelayCommand(OnCopyElementExecute, CanExecuteCopyElement); CutElementCommand = new RelayCommand(OnCutElementExecute, CanExecuteCutElement); PasteAsChildElementCommand = new RelayCommand(OnPasteAsChildElementExecute, CanPasteAsChildElementElement); AddSelectedElementAsResourceCommand = new RelayCommand(OnAddSelectedElementAsResourceExecute, CanExecuteAddSelectedElementAsResource); ShowDependenciesCommand = new RelayCommand(OnShowDependenciesExecute, CanExecuteShowDependencies); ShowFiltersCommand = new RelayCommand(OnShowFiltersExecute, CanExecuteShowFilters); EditDescriptionCommand = new RelayCommand(OnEditDescriptionExecute, CanExecuteEditDescription); IncreaseAddressCommand = new RelayCommand(() => OnChangeAddress(true), () => SelectedRows.All(model => model is IAddressChangeable)); DecreaseAddressCommand = new RelayCommand(() => OnChangeAddress(false), () => SelectedRows.All(model => model is IAddressChangeable)); AddDependencyToManyProps = new RelayCommand(OnAddDependencyToManyPropsExecute, CanExecuteAddDependencyToManyProps); TriggerAdditionalSettingsCommand = new RelayCommand(() => { IsAdditionalSettingsOpened = true; }); AddressIteratorValue = 1; OnSelectionChangedCommand = new RelayCommand <object>(OnSelectionChangedExecute); SelectedRows = new List <IEditorConfigurationItemViewModel>(); OpenBasicValuesCommand = new RelayCommand(OnOpenBasicValuesExacute); MigrateComplexPropertiesCommand = new RelayCommand(OnMigrateComplexPropertiesExecute); BaseValuesViewModel = new BaseValuesViewModel(); ImportPropertiesFromExcelTypeACommand = new RelayCommand(OnImportPropertiesFromExcelTypeAExecute); EditCommand = new RelayCommand(OnEditExecute); SetIsFromBitsToManyPropsViewModel = new SetIsFromBitsToManyPropsViewModel(this); }
public JournalConditionEditorViewModel(IJournalCondition journalCondition, IFormatterEditorFactory formatterEditorFactory) { this._journalCondition = journalCondition; this._formatterEditorFactory = formatterEditorFactory; this.ShowFormatterParameters = new RelayCommand(this.OnShowFormatterParameters); }