notes.ToolbarTypes.getEvent C# (CSharp) 메소드

getEvent() 정적인 개인적인 메소드

static private getEvent ( Type type, string name ) : EventInfo
type System.Type
name string
리턴 System.Reflection.EventInfo
        internal static EventInfo getEvent(Type type, string name)
        {
            return type.GetEvent(name, BindingFlags.Public | BindingFlags.Instance);
        }

Usage Example

예제 #1
0
        public PopupMenuDrawable()
        {
            Type popupMenuDrawableType = ToolbarTypes.getType("Toolbar.PopupMenuDrawable");

            realPopupMenuDrawable   = Activator.CreateInstance(popupMenuDrawableType, null);
            updateMethod            = ToolbarTypes.getMethod(popupMenuDrawableType, "Update");
            drawMethod              = ToolbarTypes.getMethod(popupMenuDrawableType, "Draw");
            addOptionMethod         = ToolbarTypes.getMethod(popupMenuDrawableType, "AddOption");
            addSeparatorMethod      = ToolbarTypes.getMethod(popupMenuDrawableType, "AddSeparator");
            destroyMethod           = ToolbarTypes.getMethod(popupMenuDrawableType, "Destroy");
            onAnyOptionClickedEvent = ToolbarTypes.getEvent(popupMenuDrawableType, "OnAnyOptionClicked");
        }
All Usage Examples Of notes.ToolbarTypes::getEvent