Beispiel #1
0
        public static MethodDrawer GetMethodDrawer(int methodId)
        {
            MethodDrawer drawer;

            if (!cachedMethodDrawers.TryGetValue(methodId, out drawer))
            {
                cachedMethodDrawers.Add(methodId, drawer = new MethodDrawer());
            }
            return(drawer);
        }
        static void DrawMemberItems(DrawItemEventArgs e, Item item, string text, Point position)
        {
            switch (item.MemberType)
            {
            case MemberType.Property:
                PropertyDrawer.DrawProperties(text, e, position);
                break;

            case MemberType.Method:
                MethodDrawer.DrawMethods(text, e, position);
                break;

            default:
                break;
            }
        }