public SaveMergedEnvironmentConfigurationCommand(IUIServiceWpf uiService, ConfigurationSourceModel configurationSource, IApplicationModel application, ElementViewModel overridesViewModel)
     : base(uiService)
 {
     this.configurationSource = configurationSource;
     this.application         = application;
     this.overridesViewModel  = (EnvironmentSourceViewModel)overridesViewModel;
 }
        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 SaveEnvironmentConfigurationDeltaCommand(IUIServiceWpf uiService, ElementViewModel overridesViewModel)
     : base(uiService)
 {
     this.overridesViewModel = (EnvironmentSourceViewModel)overridesViewModel;
 }
 public TraceListenerReferenceEnvironmentOverriddenElementProperty(IServiceProvider serviceProvider, IUIServiceWpf uiService, EnvironmentSourceViewModel environmentModel, ElementViewModel subject, EnvironmentOverriddenElementPayload overrides)
     : base(serviceProvider, uiService, environmentModel, subject, overrides)
 {
 }
        public Property GetNameProperty(EnvironmentSourceViewModel environment)
        {
            var overridesProperty = this.Properties.OfType <EnvironmentOverriddenElementProperty>().Where(x => x.Environment == environment).FirstOrDefault();

            return(overridesProperty.ChildProperties.Where(x => x.PropertyName == "Name").FirstOrDefault());
        }
Exemplo n.º 6
0
 public EnvironmentalTraceListenerReferenceDataViewModel(TraceListenerReferenceViewModel original, EnvironmentSourceViewModel environment)
 {
     this.original    = original;
     this.environment = environment;
 }
Exemplo n.º 7
0
 public void Initialize(EnvironmentSourceViewModel environment)
 {
     this.environment = environment;
 }