// Token: 0x06007C7B RID: 31867 RVA: 0x00230208 File Offset: 0x0022E408
        private static int GetComponentLevel(IAnnotationComponent component)
        {
            int  result = 0;
            Type type   = component.GetType();

            if (AdornerPresentationContext._ZLevel.ContainsKey(type))
            {
                result = (int)AdornerPresentationContext._ZLevel[type];
            }
            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns the component ZLevel
        /// </summary>
        /// <param name="component">component</param>
        /// <returns>ZLevel</returns>
        private static int GetComponentLevel(IAnnotationComponent component)
        {
            int  level = 0;
            Type type  = component.GetType();

            if (_ZLevel.ContainsKey(type))
            {
                level = (int)_ZLevel[type];
            }

            return(level);
        }
        /// <summary>
        /// Returns the component ZLevel
        /// </summary>
        /// <param name="component">component</param> 
        /// <returns>ZLevel</returns>
        private static int GetComponentLevel(IAnnotationComponent component) 
        { 
            int level = 0;
            Type type = component.GetType(); 
            if (_ZLevel.ContainsKey(type))
                level = (int)_ZLevel[type];

            return level; 
        }