Ejemplo n.º 1
0
        public AssemblySection CreateSection(AssemblySections section)
        {
            var s = new AssemblySection();

            s.Name = Enum.GetName(typeof(AssemblySections), section);

            if (!Sections.Where(_ => _.Name == s.Name).Any())
            {
                Sections.Add(s);
            }

            return(s);
        }
Ejemplo n.º 2
0
        public AssemblySection this[AssemblySections section]
        {
            get
            {
                foreach (var s in Sections)
                {
                    if (s.Name == Enum.GetName(typeof(AssemblySections), section))
                    {
                        return(s);
                    }
                }

                return(Sections[0]);
            }
        }