Exemplo n.º 1
0
        /// <summary>
        /// Load all of the layout profiles found in the project.
        /// </summary>
        private void loadLayoutProfiles()
        {
            layoutProfiles.Clear();

            List <Type> types = CinemaMocapHelper.GetLayoutProfiles();

            foreach (Type t in types)
            {
                foreach (CinemaMocapLayoutAttribute attribute in t.GetCustomAttributes(typeof(CinemaMocapLayoutAttribute), true))
                {
                    layoutProfiles.Add(new TypeLabelContextData(t, attribute.Name, attribute.Ordinal));
                }
            }

            layoutProfiles.Sort(delegate(TypeLabelContextData x, TypeLabelContextData y)
            {
                return(x.Ordinal - y.Ordinal);
            });
        }
        /// <summary>
        /// Load all of the layout profiles found in the project.
        /// </summary>
        public static List <TypeLabelContextData> LoadMetaData()
        {
            List <TypeLabelContextData> layoutProfiles = new List <TypeLabelContextData>();

            List <Type> types = CinemaMocapHelper.GetLayoutProfiles();

            foreach (Type t in types)
            {
                foreach (CinemaMocapLayoutAttribute attribute in t.GetCustomAttributes(typeof(CinemaMocapLayoutAttribute), true))
                {
                    layoutProfiles.Add(new TypeLabelContextData(t, attribute.Name, attribute.Ordinal));
                }
            }

            layoutProfiles.Sort(delegate(TypeLabelContextData x, TypeLabelContextData y)
            {
                return(x.Ordinal - y.Ordinal);
            });

            return(layoutProfiles);
        }