public EnvironmentOverriddenElementProperty(IServiceProvider serviceProvider, IUIServiceWpf uiService, EnvironmentSourceViewModel environmentModel, ElementViewModel subject, EnvironmentOverriddenElementPayload overrides) : base(serviceProvider, subject, null, new Attribute[] { new EnvironmentalOverridesAttribute(false), new ResourceCategoryAttribute(typeof(DesignResources), "CategoryOverrides") }) { this.uiService = uiService; this.overrides = overrides; this.environment = environmentModel; this.converter = new OverriddenElementViewModelConverter(); this.overrides = overrides; this.subject = subject; this.environment.PropertyChanged += EnvironmentPropertyChanged; }
public EnvironmentSourceViewModel(IUnityContainer builder, IUIServiceWpf uiService, ApplicationViewModel sourceModel, ConfigurationSection section) : base(builder, EnvironmentalOverridesSection.EnvironmentallyOverriddenProperties, section, new Attribute[] { new EnvironmentalOverridesAttribute(false) }) { this.uiService = uiService; this.environmentSection = (EnvironmentalOverridesSection)section; this.elementLookup = builder.Resolve <ElementLookup>(); this.applicationModel = sourceModel; foreach (EnvironmentalOverridesElement mergeElement in environmentSection.MergeElements) { var payload = new EnvironmentOverriddenElementPayload(environmentSection, mergeElement.LogicalParentElementPath); var reference = new EnvironmentOverriddenElementReference(elementLookup, environmentSection); reference.InitializeWithConfigurationElementPayload(payload); overriddenElements.Add(reference); } saveMergedConfigurationCommand = CreateCommand <SaveMergedEnvironmentConfigurationCommand>(this); saveEnvironmentDeltaCommand = CreateCommand <SaveEnvironmentConfigurationDeltaCommand>(this); }
public TraceListenerReferenceEnvironmentOverriddenElementProperty(IServiceProvider serviceProvider, IUIServiceWpf uiService, EnvironmentSourceViewModel environmentModel, ElementViewModel subject, EnvironmentOverriddenElementPayload overrides) : base(serviceProvider, uiService, environmentModel, subject, overrides) { }