コード例 #1
0
        public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            if (e.DomainProperty.Id == global::Microsoft.Example.Circuits.NamedElement.NameDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::Microsoft.Example.Circuits.ResistorShape.FindResistorShapeDecorator("NameDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Example.Circuits.Resistor.DomainClassId);
                }
                decorator = global::Microsoft.Example.Circuits.JunctionShape.FindJunctionShapeDecorator("NameDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Example.Circuits.Junction.DomainClassId);
                }
                decorator = global::Microsoft.Example.Circuits.TransistorShape.FindTransistorShapeDecorator("NameDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Example.Circuits.Transistor.DomainClassId);
                }
                decorator = global::Microsoft.Example.Circuits.CapacitorShape.FindCapacitorShapeDecorator("NameDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Example.Circuits.Capacitor.DomainClassId);
                }
            }
        }
コード例 #2
0
ファイル: Diagram.cs プロジェクト: Aniz/visualEv
        public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            if (e.DomainProperty.Id == global::Ufba.Ev.OptionHasFunctions.VarDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::Ufba.Ev.OptionConnector.FindOptionConnectorDecorator("Var");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Ufba.Ev.OptionHasFunctions.DomainClassId);
                }
            }
        }
コード例 #3
0
ファイル: Diagram.cs プロジェクト: simple555a/DotNetAppDev
        public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            if (e.DomainProperty.Id == global::AppDevUnited.TaskFlowDSLSample.Flow.GuardDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::AppDevUnited.TaskFlowDSLSample.FlowConnector.FindFlowConnectorDecorator("Guard");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::AppDevUnited.TaskFlowDSLSample.Flow.DomainClassId);
                }
            }
        }
コード例 #4
0
        public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            if (e.DomainProperty.Id == global::Company.SlideShowDesigner.Photo.NameDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::Company.SlideShowDesigner.PhotoShape.FindPhotoShapeDecorator("NameDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Company.SlideShowDesigner.Photo.DomainClassId);
                }
            }
        }
コード例 #5
0
ファイル: Diagram.cs プロジェクト: walterbaidal/MDD-Project
        public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            if (e.DomainProperty.Id == global::IPS_GT16.XCXABGProyectoIPS.EntidadReferencesRelacioned.aCardMinDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::IPS_GT16.XCXABGProyectoIPS.EntidadRelacion.FindEntidadRelacionDecorator("CardMin");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::IPS_GT16.XCXABGProyectoIPS.EntidadReferencesRelacioned.DomainClassId);
                }
            }
            else if (e.DomainProperty.Id == global::IPS_GT16.XCXABGProyectoIPS.EntidadReferencesRelacioned.bCardMaxDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::IPS_GT16.XCXABGProyectoIPS.EntidadRelacion.FindEntidadRelacionDecorator("CardMax");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::IPS_GT16.XCXABGProyectoIPS.EntidadReferencesRelacioned.DomainClassId);
                }
            }
        }
コード例 #6
0
ファイル: Diagram.cs プロジェクト: ralungei/OneClickWeb
        public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            if (e.DomainProperty.Id == global::UPM_IPS.RAARMAPMCWeberMDD.RelacionReferencesEntidadIzq.cardinalidadDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::UPM_IPS.RAARMAPMCWeberMDD.RelIzq.FindRelIzqDecorator("NameDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::UPM_IPS.RAARMAPMCWeberMDD.RelacionReferencesEntidadIzq.DomainClassId);
                }
            }
            else if (e.DomainProperty.Id == global::UPM_IPS.RAARMAPMCWeberMDD.RelacionReferencesEntidadDer.cardinalidadDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::UPM_IPS.RAARMAPMCWeberMDD.RelDer.FindRelDerDecorator("NameDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::UPM_IPS.RAARMAPMCWeberMDD.RelacionReferencesEntidadDer.DomainClassId);
                }
            }
        }
コード例 #7
0
ファイル: Diagram.cs プロジェクト: martinca-msft/Gadgeteer
        public override void ElementPropertyChanged(DslModeling::ElementPropertyChangedEventArgs e)
        {
            if (e == null)
            {
                throw new global::System.ArgumentNullException("e");
            }

            if (e.DomainProperty.Id == global::Microsoft.Gadgeteer.Designer.Module.NameDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::Microsoft.Gadgeteer.Designer.ModuleShape.FindModuleShapeDecorator("LabelDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Gadgeteer.Designer.Module.DomainClassId);
                }
            }
            else if (e.DomainProperty.Id == global::Microsoft.Gadgeteer.Designer.Module.TypeDomainPropertyId)
            {
                DslDiagrams::Decorator decorator = global::Microsoft.Gadgeteer.Designer.ModuleShape.FindModuleShapeDecorator("TypeDecorator");
                if (decorator != null)
                {
                    decorator.UpdateDecoratorHostShapes(e.ModelElement, global::Microsoft.Gadgeteer.Designer.Module.DomainClassId);
                }
            }
        }