Example #1
0
        public UmlTypeMember CreateTypeMember(string sectionName)
        {
            var property = new UmlTypeMember();
            var data     = new UmlTypeMemberData();

            if (sectionName == "Properties")
            {
                var pe = new PropertyElement();
                pe.Type             = "string";
                pe.Name             = "";
                data.Owner          = pe;
                property.DataSource = data;

                typeMemberLookup.Add(pe, property);
                Owner.Type.AddChild(pe);
            }

            if (sectionName == "Methods")
            {
                var pe = new MethodElement();
                pe.Name             = "";
                data.Owner          = pe;
                property.DataSource = data;

                typeMemberLookup.Add(pe, property);
                Owner.Type.AddChild(pe);
            }

            return(property);
        }
Example #2
0
        public UmlTypeMember CreateTypeMember(string sectionName)
        {
            var property = new UmlTypeMember();
            var data = new UmlTypeMemberData();
            if (sectionName == "Properties")
            {
                var pe = new PropertyElement();
                pe.Type = "string";
                pe.Name = "";
                data.Owner = pe;
                property.DataSource = data;

                typeMemberLookup.Add(pe, property);
                Owner.Type.AddChild(pe);
            }

            if (sectionName == "Methods")
            {
                var pe = new MethodElement();
                pe.Name = "";
                data.Owner = pe;
                property.DataSource = data;

                typeMemberLookup.Add(pe, property);
                Owner.Type.AddChild(pe);
            }

            return property;
        }
Example #3
0
        public UmlTypeMember CreateTypeMember(string sectionName)
        {
            var enumValue = new UmlTypeMember();
            var data = new UmlTypeMemberData();
            var pe = new EnumValueElement();
            pe.Value = 0;
            pe.Name = "";
            data.Owner = pe;
            enumValue.DataSource = data;

            typeMemberLookup.Add(pe, enumValue);
            Owner.Type.AddChild(pe);

            return enumValue;
        }
Example #4
0
        public UmlTypeMember CreateTypeMember(string sectionName)
        {
            var enumValue = new UmlTypeMember();
            var data      = new UmlTypeMemberData();
            var pe        = new EnumValueElement();

            pe.Value             = 0;
            pe.Name              = "";
            data.Owner           = pe;
            enumValue.DataSource = data;

            typeMemberLookup.Add(pe, enumValue);
            Owner.Type.AddChild(pe);

            return(enumValue);
        }
Example #5
0
        private UmlTypeMember GetTypeMember(TypeMemberElement pe)
        {
            UmlTypeMember typeMember = null;

            if (typeMemberLookup.TryGetValue(pe, out typeMember))
            {
                return(typeMember);
            }

            typeMember = new UmlTypeMember();
            var data = new UmlTypeMemberData();

            data.Owner            = pe;
            typeMember.DataSource = data;

            typeMemberLookup.Add(pe, typeMember);

            return(typeMember);
        }
Example #6
0
        private UmlTypeMember GetTypeMember(TypeMemberElement pe)
        {
            UmlTypeMember typeMember = null;
            if (typeMemberLookup.TryGetValue(pe, out typeMember))
            {
                return typeMember;
            }

            typeMember = new UmlTypeMember();
            var data = new UmlTypeMemberData();
            data.Owner = pe;
            typeMember.DataSource = data;

            typeMemberLookup.Add(pe, typeMember);

            return typeMember;
        }