protected override void Arrange()
        {
            base.Arrange();

            step = Container.Resolve<SelectDatabaseStep>();
            connectionStringSettings = ConnectionStringSection.DescendentConfigurationsOfType<ConnectionStringSettings>().First();
        }
        protected override void Arrange()
        {
            base.Arrange();

            LoggingSectionViewModel = SectionViewModel.CreateSection(Container, LoggingSettings.SectionName, base.LoggingSection);
            EmailTraceListener = LoggingSectionViewModel.GetDescendentsOfType<EmailTraceListenerData>().First();
        }
        protected override void Arrange()
        {
            base.Arrange();

            var namespacesCollection = (ElementCollectionViewModel)UnitySectionViewModel.ChildElement("Namespaces");
            NamespaceElement = namespacesCollection.AddNewCollectionElement(typeof(NamespaceElement));
        }
        protected override void Arrange()
        {
            base.Arrange();

            ElementCollectionViewModel injectionMembersCollection = (ElementCollectionViewModel)RegistrationElement.ChildElement("InjectionMembers");
            PropertyElement = injectionMembersCollection.AddNewCollectionElement(typeof(PropertyElement));
        }
        protected override void Arrange()
        {
            base.Arrange();

            var assembliesCollection = (ElementCollectionViewModel)UnitySectionViewModel.ChildElement("Assemblies");
            AssemblyElement = assembliesCollection.AddNewCollectionElement(typeof(AssemblyElement));
        }
        protected override void Arrange()
        {
            base.Arrange();

            var loggingSection = SectionViewModel.CreateSection(Container, LoggingSettings.SectionName, base.LoggingSection);
            TraceSource = loggingSection.GetDescendentsOfType<TraceSourceData>().First();
        }
 public OverriddenElementViewModel(ElementLookup lookup, EnvironmentMergeSection environmentSection, ElementViewModel subject)
 {
     this.lookup = lookup;
     this.environmentSection = environmentSection;
     this.elementReference = new ReferenceContainer(this);
     this.subject = subject;
 }
 public SaveMergedEnvironmentConfigurationCommand(IUIServiceWpf uiService, ConfigurationSourceModel configurationSource, IApplicationModel application, ElementViewModel overridesViewModel)
     : base(uiService)
 {
     this.configurationSource = configurationSource;
     this.application = application;
     this.overridesViewModel = (EnvironmentSourceViewModel)overridesViewModel;
 }
        protected override void Arrange()
        {
            base.Arrange();

            var resources = new ResourceHelper<ConfigFileLocator>();
            resources.DumpResourceFileToDisk("empty.config");

            var applicationViewModel = Container.Resolve<ApplicationViewModel>();
            ConfigurationSourceModel sourceModel = applicationViewModel.CurrentConfigurationSource;
            applicationViewModel.NewEnvironment();

            EhabModel = sourceModel.AddSection(ExceptionHandlingSettings.SectionName, Section);
            EnvironmentViewModel = applicationViewModel.Environments.First();
            EnvironmentSection = (EnvironmentalOverridesSection)EnvironmentViewModel.ConfigurationElement;

            ((EnvironmentSourceViewModel)EnvironmentViewModel).EnvironmentConfigurationFile = "empty.config";
            ((EnvironmentSourceViewModel)EnvironmentViewModel).EnvironmentDeltaFile = "empty.config";

            WrapHandler = EhabModel.DescendentElements().Where(x => x.ConfigurationType == typeof(WrapHandlerData)).First();

            MainExceptionMessage = WrapHandler.Property("ExceptionMessage");
            MainExceptionMessage.Value = "Main Value";

            OverridesProperty = WrapHandler.Properties.Where(x => x.PropertyName.StartsWith("Overrides")).First(); 
            OverriddenExceptionMessage = OverridesProperty.ChildProperties.Where(x => x.PropertyName == "ExceptionMessage").First();
        }
 public RangeValidatorCultureProperty(IServiceProvider serviceProvider, ElementViewModel parent, PropertyDescriptor declaringProperty)
     : base(serviceProvider, parent, declaringProperty, 
            new Attribute[]{
                               new TypeConverterAttribute(typeof(CultureInfoConverter)), 
                               new DesigntimeDefaultAttribute(cultureInfoConverter.ConvertToInvariantString(CultureInfo.CurrentCulture))
                           })
 {
 }
        protected override void Arrange()
        {
            base.Arrange();

            categoryElement = LoggingSectionViewModel.GetDescendentsOfType<TraceSourceData>().First();
            overridesPropertyForCategoryElement = GetOverridesProperty(categoryElement);

        }
        protected override void Act()
        {
            var parameterValueProperty = base.ParameterElement.Property("Value");
            parameterValueProperty.Value = typeof(OptionalElement);

            var valueElementProperty = (ValueElementProperty)ParameterElement.Property("Value");
            optionalParameterViewModel = valueElementProperty.ValueElementViewModel;
        }
        protected override void Act()
        {
            logFilter = LoggingSection.GetDescendentsOfType<PriorityFilterData>().FirstOrDefault();
            int maximumPriority = (int) logFilter.Property("MaximumPriority").Value;

            logFilter.Property("MinimumPriority").Value = maximumPriority + 1;
            logFilter.Validate();
        }
 protected override void Act()
 {
     var parameterValueProperty = base.ParameterElement.Property("Value");
     parameterValueProperty.Value = typeof(DependencyElement);
     
     var valueElementProperty = (ValueElementProperty)ParameterElement.Property("Value");
     dependencyParameterViewModel = valueElementProperty.ValueElementViewModel;
 }
        /// <summary>
        /// Returns the set of <see cref="Property"/> elements to add to the <see cref="ElementViewModel"/>.
        /// </summary>
        /// <param name="subject">The <see cref="ElementViewModel"/> to provide properties for.</param>
        /// <returns>
        /// Returns the set of additional <see cref="Property"/> items to add to the <paramref name="subject"/>.
        /// </returns>
        public IEnumerable<Property> GetExtendedProperties(ElementViewModel subject)
        {
            var attributesPropertyDescriptor = TypeDescriptor.GetProperties(subject.ConfigurationType).OfType<PropertyDescriptor>().FirstOrDefault(x => x.Name == "Attributes");
            
            yield return subject.ContainingSection.CreateProperty<CustomAttributesProperty>(
                    new DependencyOverride<ElementViewModel>(subject),
                    new DependencyOverride<PropertyDescriptor>(attributesPropertyDescriptor));

        }
        protected override void Act()
        {
            var collectionViewModel =
                ViewModel.DescendentElements(x => x.ConfigurationType == typeof(NamedElementCollection<TestHandlerData>))
                    .OfType<ElementCollectionViewModel>()
                    .First();

            newCollectionItem = collectionViewModel.AddNewCollectionElement(typeof (TestHandlerData));
        }
        protected override void Arrange()
        {
            base.Arrange();

            var containersCollection = (ElementCollectionViewModel)UnitySectionViewModel.ChildElement("Containers");
            containersCollection.AddCommands.First().Execute(null);

            ContainerElement = UnitySectionViewModel.GetDescendentsOfType<ContainerElement>().First();
        }
        protected override void SetProperties(ElementViewModel createdElement, Type selectedType)
        {
            base.SetProperties(createdElement, selectedType);

            if (createdElement.ConfigurationType == typeof(KeyedHashAlgorithmProviderData))
            {
                createdElement.Property("Key").Value = keySettings;
            }
        }
        protected override void Arrange()
        {
            base.Arrange();

            var cacheManagersCollection = CacheSectionViewModel.GetDescendentsOfType<NameTypeConfigurationElementCollection<CacheStorageData, CustomCacheStorageData>>().First();
            CacheManagerBackingStore = ((ElementCollectionViewModel)cacheManagersCollection).AddNewCollectionElement(typeof(IsolatedStorageCacheStorageData));

            CacheManager.Property("CacheStorage").Value = CacheManagerBackingStore.Name;
        }
        public ElementValidationResult(ElementViewModel element, string errorMessage, bool isWarning)
            : base(errorMessage, isWarning)
        {
            Guard.ArgumentNotNull(element, "element");

            this.element = element;

            this.element.PropertyChanged += ElementPropertyChangedHandler;
        }
        protected override void Arrange()
        {
            base.Arrange();
            defaultCacheManagerProperty = (ElementReferenceProperty)CachingViewModel.Property("DefaultCacheManager");
            defaultCacheManagerProperty.Initialize(null);

            cacheManager = CachingViewModel.GetDescendentsOfType<CacheManagerData>().First();

            defaultCacheManagerPropertyChangedListener = new PropertyChangedListener(defaultCacheManagerProperty);
        }
        protected override void Arrange()
        {
            base.Arrange();

            ConfigurationSourceModel sourceModel = Container.Resolve<ConfigurationSourceModel>();
            sourceModel.New();

            var loggingSection = SectionViewModel.CreateSection(Container, LoggingSettings.SectionName, base.LoggingSection);
            DiagnosticsTraceListner = loggingSection.GetDescendentsOfType<SystemDiagnosticsTraceListenerData>().First();
        }
        protected override void Arrange()
        {
            base.Arrange();
            applicationModel = Container.Resolve<ApplicationViewModel>();
            applicationModel.NewEnvironment();
            applicationModel.NewEnvironment();

            environment1 = applicationModel.Environments.First();
            environment2 = applicationModel.Environments.Skip(1).First();
            
        }
 public ExportAdmTemplateCommand(CommandAttribute commandAttribute,
                                 ApplicationViewModel applicationViewModel,
                                 IUIServiceWpf uiService,
                                 ElementViewModel element,
                                 AssemblyLocator assemblyLocator)
     : base(commandAttribute, uiService)
 {
     this.applicationViewModel = applicationViewModel;
     this.element = element;
     this.attributeRetriever = new ConfigurationManageabilityProviderAttributeRetriever(assemblyLocator);
 }
        protected override void Act()
        {
            var collectionViewModel =
                ViewModel.DescendentElements(x => x.ConfigurationType == typeof(NamedElementCollection<TestHandlerData>))
                    .OfType<ElementCollectionViewModel>()
                    .First();

            var command = collectionViewModel.Commands.OfType<DefaultCollectionElementAddCommand>().Where(c => c.ConfigurationElementType == typeof(TestHandlerData)).First();
            command.Execute(null);
            addedElement = collectionViewModel.ChildElements.Last();
        }
 public void InitializeWithElementViewModel(ElementViewModel subject)
 {
     if (elementViewModelReference != null)
     {
         throw new InvalidOperationException();
     }
     elementViewModel = subject;
     subject.Deleted += SubjectDeleted;
     subject.PropertyChanged += SubjectPropertyChanged;
     environmentOverridenElementData = new EnvironmentOverriddenElementPayload(environmentSourceModel, subject.Path);
 }
        protected override void Act()
        {
            var resolvedCategoryReference = ExceptionHandlingSection
                .GetDescendentsOfType<LoggingExceptionHandlerData>()
                    .Single(x => x.Name=="General");

            unresolvedCategoryReference = ExceptionHandlingSection.GetDescendentsOfType<LoggingExceptionHandlerData>()
                                   .Single(x => x.Name == "InvalidCategoryName");

            resolvedCategoryProperty = resolvedCategoryReference.Property("LogCategory");
        }
        protected override void Arrange()
        {
            base.Arrange();
            validationModel = Container.Resolve<ValidationModel>();
            traceListener = LoggingSettingsViewModel.DescendentElements(x => x.ConfigurationType == typeof(FormattedEventLogTraceListenerData)).First();

            var bindableProperty = traceListener.Property("TraceOutputOptions").BindableProperty;
            bindableProperty.BindableValue = "Invalid";

            result = bindableProperty.Property.ValidationResults.First();
        }
        protected override void Arrange()
        {
            base.Arrange();

            step = Container.Resolve<PickExceptionStep>();

            existingPolicy = GetDescendentsOfType<ExceptionPolicyData>().First();

            step.Policy.Value = existingPolicy.Name;
            step.ExceptionType.Value = typeof(BadImageFormatException).AssemblyQualifiedName;
        }
        public SelectValidatedTypeReferenceMembersCommand(TypeMemberChooser typeMemberChooser, ElementViewModel context, CommandAttribute attribute, IUIServiceWpf uiService)
            : base(attribute, uiService)
        {
            if (context.ConfigurationType != typeof(ValidationRulesetData)) throw new InvalidOperationException();

            this.validatedTypeReferenceElement = context.AncestorElements().Where(x => x.ConfigurationType == typeof(ValidatedTypeReference)).First();
            this.fieldCollectionElement = (ElementCollectionViewModel)context.ChildElements.Where(x => x.ConfigurationType == typeof(ValidatedFieldReferenceCollection)).First();
            this.propertyCollectionElement = (ElementCollectionViewModel)context.ChildElements.Where(x => x.ConfigurationType == typeof(ValidatedPropertyReferenceCollection)).First();
            this.methodsCollectionElement = (ElementCollectionViewModel)context.ChildElements.Where(x => x.ConfigurationType == typeof(ValidatedMethodReferenceCollection)).First();

            this.typeMemberChooser = typeMemberChooser;
        }
 public ConnectionStringPropertyViewModel(IServiceProvider serviceProvider, ElementViewModel parent, PropertyDescriptor declaringProperty)
     : base(serviceProvider, parent, declaringProperty)
 {
 }
        protected override void SetProperties(ElementViewModel createdElement, Type selectedType)
        {
            base.SetProperties(createdElement, selectedType);

            createdElement.Property("Key").Value = keySettings;
        }
 protected abstract bool Matches(ElementViewModel element);
 public ParameterValueCollectionViewModel(ElementViewModel parentElementModel, PropertyDescriptor declaringProperty)
     : base(parentElementModel, declaringProperty)
 {
     base.IsPolymorphicCollection = true;
 }
Beispiel #35
0
 protected override void Act()
 {
     msmqTracelistenerElement = base.LoggingSectionViewModel.GetDescendentsOfType <MsmqTraceListenerData>().First();
     overridesProperty        = GetOverridesProperty(msmqTracelistenerElement);
     overridesProperty.Value  = true;
 }
 public GenericOutputConnectorViewModel(ElementViewModel element, string name, Color color, ISourceBlock <T> valueCallback) : base(element, name, color)
 {
     output = valueCallback;
     Type   = typeof(T);
 }
 protected static Property GetOverridesProperty(ElementViewModel declaringElement)
 {
     return(declaringElement.Properties.Where(x => x.PropertyName.Contains("Override")).FirstOrDefault());
 }
        protected override void Arrange()
        {
            base.Arrange();

            keyedHashProviderElement = base.CryptographyModel.GetDescendentsOfType <KeyedHashAlgorithmProviderData>().First();
        }
 public ConnectionViewModel(Connection connection, ElementViewModel from, ElementViewModel to) : this(connection)
 {
     this.From = from;
     this.To   = to;
 }
 public CacheManagerBackingStoreProperty(IServiceProvider serviceProvider, ElementLookup elementLookup, ElementViewModel parent, PropertyDescriptor declaringProperty)
     : base(serviceProvider, elementLookup, parent, declaringProperty)
 {
 }
 protected override void Act()
 {
     addedAssembly = assembliesCollection.AddNewCollectionElement(typeof(NamedElement));
 }
 public CustomTraceListenerFormatterProperty(IServiceProvider serviceProvider, ElementLookup lookup, ElementViewModel parent, PropertyDescriptor declaringProperty)
     : base(serviceProvider, lookup, parent, declaringProperty, new Attribute[] { new ConfigurationPropertyAttribute("formatter") })
 {
 }
 public void Return(ElementViewModel element)
 {
     GetPool(element.AssetName).Push(element);
 }
Beispiel #44
0
 //public for unittesting purposes.
 public void RecreateLifetimeElementViewModel()
 {
     lifetimeElementViewModel = parentViewModel.ContainingSection.
                                CreateElement(parentViewModel, lifetimeElementPropertyDescriptor);
 }
 public SaveEnvironmentConfigurationDeltaCommand(IUIServiceWpf uiService, ElementViewModel overridesViewModel)
     : base(uiService)
 {
     this.overridesViewModel = (EnvironmentSourceViewModel)overridesViewModel;
 }
 public OverriddenElementViewModel(ElementLookup lookup, EnvironmentMergeSection environmentSection, ElementViewModel subject)
 {
     this.lookup             = lookup;
     this.environmentSection = environmentSection;
     this.elementReference   = new ReferenceContainer(this);
     this.subject            = subject;
 }
 public SaveMergedEnvironmentConfigurationCommand(IUIServiceWpf uiService, ConfigurationSourceModel configurationSource, IApplicationModel application, ElementViewModel overridesViewModel)
     : base(uiService)
 {
     this.configurationSource = configurationSource;
     this.application         = application;
     this.overridesViewModel  = (EnvironmentSourceViewModel)overridesViewModel;
 }
 public ExportKeyCommand(CommandAttribute commandAttribute, ElementViewModel subject, IUIServiceWpf uiService)
     : base(commandAttribute, uiService)
 {
     this.uiService   = uiService;
     this.keyProperty = subject.Properties.OfType <ICryptographicKeyProperty>().FirstOrDefault();
 }
Beispiel #49
0
 private void ClearSelectedElement()
 {
     selectedElement = null;
     OnSelectedElementChanged(null);
 }
Beispiel #50
0
        public static KeyValuePair <JObject, List <JObject> > getDataForFuncChart(string funccode)
        {
            List <FunctViewModel> functs = new List <FunctViewModel>();
            //DUNG DE DUYET LUA CHON NODE HIEN THI.
            List <ElementViewModel> result = new List <ElementViewModel>();

            #region "TAO TAT CA CAC GROUPS"
            JObject     groupElements = new JObject();
            FunctAccess access        = new FunctAccess();
            DataTable   dtResult      = access.GetChildsByFunccodeIsActive(funccode);
            foreach (DataRow dtr in dtResult.Rows)
            {
                JObject group = new JObject();
                group["group"]      = true;
                group["groupName"]  = dtr["FUNCNAME"].ToString();
                group["groupState"] = "";
                group["template"]   = "group_grey";
                string         key  = "A" + dtr["FUNCCODE"].ToString();
                FunctViewModel item = new FunctViewModel
                {
                    FUNCCODE   = dtr["FUNCCODE"].ToString(),
                    FUNCNAME   = dtr["FUNCNAME"].ToString(),
                    FUNCPARENT = dtr["FUNCPARENT"].ToString(),
                    FUNCLEVEL  = dtr["FUNCLEVEL"].ToString(),
                    ORDERINDEX = dtr["ORDERINDEX"].ToString(),
                    ISACTIVE   = dtr["ISACTIVE"].ToString()
                };
                functs.Add(item);
                ElementViewModel g = new ElementViewModel
                {
                    display = true,
                    id      = dtr["FUNCCODE"].ToString(),
                    pid     = dtr["FUNCPARENT"].ToString()
                };
                result.Add(g);
                groupElements[key] = group;
            }

            //LAY VE NODE TUONG UNG DEPTCODE TUYEN VAO.
            if (funccode != "-1")
            {
                #region "NODE ROOT NEU FUNCCODE !=-1 (LAY TAT CA)"

                dtResult = access.GetByFuncCodeIsActive(funccode);
                foreach (DataRow dtr in dtResult.Rows)
                {
                    int oLevel;
                    int.TryParse(dtr["FUNCLEVEL"].ToString(), out oLevel);
                    JObject group = new JObject();
                    group["group"]      = true;
                    group["groupName"]  = dtr["FUNCNAME"].ToString();
                    group["groupState"] = "";
                    group["template"]   = "group_grey";
                    string         key  = "A" + dtr["FUNCCODE"].ToString();
                    FunctViewModel item = new FunctViewModel
                    {
                        FUNCCODE   = dtr["FUNCCODE"].ToString(),
                        FUNCNAME   = dtr["FUNCNAME"].ToString(),
                        FUNCPARENT = dtr["FUNCPARENT"].ToString(),
                        FUNCLEVEL  = dtr["FUNCLEVEL"].ToString(),
                        ORDERINDEX = dtr["ORDERINDEX"].ToString(),
                        ISACTIVE   = dtr["ISACTIVE"].ToString()
                    };
                    functs.Add(item);
                    ElementViewModel g = new ElementViewModel
                    {
                        display = true,
                        id      = dtr["FUNCCODE"].ToString(),
                        pid     = dtr["FUNCPARENT"].ToString()
                    };
                    result.Add(g);
                    groupElements[key] = group;
                }
                #endregion
            }
            #region "TAO GROUP EMPTY"
            JObject egroup = new JObject();
            egroup["group"]        = false;
            egroup["groupName"]    = "";
            egroup["groupState"]   = "";
            egroup["template"]     = "empty";
            groupElements["empty"] = egroup;
            #endregion
            #endregion

            #region "TAO CAC NODES EMPTY"
            List <JObject> nodeElements = new List <JObject>();
            #region "TAO CAC FUNCTIONER"
            var empReporter = bEmployeeMasterReport.GeFunctioners();
            Dictionary <string, string> funcCodeDeptParents = new Dictionary <string, string>();
            //LAY CAC GEO SUPERVISOR
            foreach (var geo in empReporter)
            {
                var dept = result.Where(d => d.id == geo.DEPTCODEFUN).FirstOrDefault();
                if (dept == null)
                {
                    continue;
                }
                //DANH DAU KO HIEN THI
                dept.display = false;
                var list = result.Where(d => d.pid == dept.id);
                //TAO MOT NODE SUPERVISOR.
                JObject group = new JObject();

                //CAP NHAT LAI PID TRO VAO GEO SUPERVISOR
                foreach (var g in list)
                {
                    g.pid = geo.SYS_EMPID;
                }
                group["id"] = geo.SYS_EMPID;
                var efunc = result.Where(d => d.pid == dept.pid && d.display == false).FirstOrDefault();
                if (efunc != null)
                {
                    var el = empReporter.Where(em => em.DEPTCODEFUN == dept.pid).FirstOrDefault();
                    if (el != null)
                    {
                        group["pid"] = el.SYS_EMPID;
                    }
                    else
                    {
                        group["pid"] = dept.pid;
                    }
                }
                group["tags"]     = "[" + "'A" + geo.DEPTCODEFUN + "']";
                group["EMPNAME"]  = geo.EMPNAME;
                group["EMPID"]    = geo.EMPID;
                group["EMAIL"]    = geo.EMAIL;
                group["POSITION"] = geo.POSITION;
                group["IMAGE"]    = geo.IMAGE;
                nodeElements.Add(group);
            }
            #endregion

            //KIEM TRA ROOT CO GEO FUNCTIONER.
            if (funccode != "-1")
            {
                ElementViewModel e = result.Where(d => d.id == funccode && d.display == true).FirstOrDefault();
                if (e != null)
                {
                    JObject rgroup = new JObject();
                    rgroup["id"]       = e.id;
                    rgroup["pid"]      = e.pid;
                    rgroup["tags"]     = "[" + "'empty','A" + funccode + "']";
                    rgroup["EMPNAME"]  = "";
                    rgroup["EMPID"]    = "";
                    rgroup["EMAIL"]    = "";
                    rgroup["POSITION"] = "";
                    rgroup["IMAGE"]    = "";
                    nodeElements.Add(rgroup);
                }
            }

            foreach (var d in functs)
            {
                ElementViewModel node = result.Where(dp => dp.id == d.FUNCCODE && dp.display == true).FirstOrDefault();
                if (node != null)
                {
                    JObject group = new JObject();
                    group["id"]       = node.id;
                    group["pid"]      = node.pid;
                    group["tags"]     = "[" + "'empty','A" + d.FUNCCODE + "']";
                    group["EMPNAME"]  = "";
                    group["EMPID"]    = "";
                    group["EMAIL"]    = "";
                    group["POSITION"] = "";
                    group["IMAGE"]    = "";
                    nodeElements.Add(group);
                }
            }
            #endregion

            KeyValuePair <JObject, List <JObject> > data = new KeyValuePair <JObject, List <JObject> >(groupElements, nodeElements);
            return(data);
        }
Beispiel #51
0
        public void AddElement(ElementViewModel element)
        {
            var originNodeIndex      = NodeIndexes[element.Origin];
            var destinationNodeIndex = NodeIndexes[element.Destination];

            Matrix[(originNodeIndex, originNodeIndex)].Add(element);
Beispiel #52
0
 protected override void Act()
 {
     customSystemDiagnostic = LoggingSectionViewModel.DescendentConfigurationsOfType <SystemDiagnosticsTraceListenerData>().FirstOrDefault();
 }
 /// <summary>
 /// Adds a custom element to the <see cref="ElementLookup"/>.
 /// </summary>
 /// <remarks>
 /// Custom elements are elements that are created by user code.
 /// </remarks>
 /// <param name="element">
 /// The element that should be added to the <see cref="ElementLookup"/>.
 /// </param>
 public void AddCustomElement(ElementViewModel element)
 {
     customElementViewModels.Add(element);
 }
 public RedirectedSectionSourceProperty(IServiceProvider serviceProvider, ElementLookup lookup, ElementViewModel parent, PropertyDescriptor declaringProperty)
     : base(serviceProvider, lookup, parent, declaringProperty)
 {
 }
 protected override bool Matches(ElementViewModel element)
 {
     return(this.path == element.Path);
 }
 public SystemDiagnosticInitDataProperty(IServiceProvider serviceProvider, ElementViewModel parent, PropertyDescriptor declaringProperty)
     : base(serviceProvider, parent, declaringProperty, new Attribute[] { new ConfigurationPropertyAttribute("initializeData") })
 {
 }
 public GenericInputConnectorViewModel(ITargetBlock <T> target, ElementViewModel element, string name, Color color) : base(element, name, color)
 {
     this.target = target;
     Type        = typeof(T);
 }
 public InjectionMemberCollectionViewModel(ElementViewModel parentElementModel, PropertyDescriptor declaringProperty)
     : base(parentElementModel, declaringProperty)
 {
     base.IsPolymorphicCollection = true;
 }
Beispiel #59
0
 public AssociationViewModel(ElementViewModel from, ElementViewModel to) : base(new Connection() { Type = EConnection.Association }, from, to)
 {
 }
 protected override void SetProperties(ElementViewModel createdElement, Type selectedType)
 {
     createdElement.Property("Name").Value         = selectedType.FullName;
     createdElement.Property("AssemblyName").Value = selectedType.Assembly.GetName().FullName;
 }