public MissingDependenciesConfigurationValidator(IFormatterEditorFactory formatterEditorFactory, ILocalizerService localizerService, ISharedResourcesGlobalViewModel sharedResourcesGlobalViewModel, IDependenciesService dependenciesService, DependencyFillHelper dependencyFillHelper) { _formatterEditorFactory = formatterEditorFactory; _localizerService = localizerService; _sharedResourcesGlobalViewModel = sharedResourcesGlobalViewModel; _dependenciesService = dependenciesService; _dependencyFillHelper = dependencyFillHelper; }
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 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); }