getProperty() static private method

static private getProperty ( Type type, string name ) : PropertyInfo
type System.Type
name string
return System.Reflection.PropertyInfo
Exemplo n.º 1
0
        public GameScenesVisibility(params GameScenes[] gameScenes)
        {
            Type gameScenesVisibilityType = ToolbarTypes.getType("Toolbar.GameScenesVisibility");

            realGameScenesVisibility = Activator.CreateInstance(gameScenesVisibilityType, new object[] { gameScenes });
            visibleProperty          = ToolbarTypes.getProperty(gameScenesVisibilityType, "Visible");
        }
Exemplo n.º 2
0
        internal ButtonTypes(Type iButtonType)
        {
            this.iButtonType = iButtonType;

            textProperty               = ToolbarTypes.getProperty(iButtonType, "Text");
            textColorProperty          = ToolbarTypes.getProperty(iButtonType, "TextColor");
            texturePathProperty        = ToolbarTypes.getProperty(iButtonType, "TexturePath");
            toolTipProperty            = ToolbarTypes.getProperty(iButtonType, "ToolTip");
            visibleProperty            = ToolbarTypes.getProperty(iButtonType, "Visible");
            visibilityProperty         = ToolbarTypes.getProperty(iButtonType, "Visibility");
            effectivelyVisibleProperty = ToolbarTypes.getProperty(iButtonType, "EffectivelyVisible");
            enabledProperty            = ToolbarTypes.getProperty(iButtonType, "Enabled");
            importantProperty          = ToolbarTypes.getProperty(iButtonType, "Important");
            drawableProperty           = ToolbarTypes.getProperty(iButtonType, "Drawable");
            onClickEvent               = ToolbarTypes.getEvent(iButtonType, "OnClick");
            onMouseEnterEvent          = ToolbarTypes.getEvent(iButtonType, "OnMouseEnter");
            onMouseLeaveEvent          = ToolbarTypes.getEvent(iButtonType, "OnMouseLeave");
            destroyMethod              = ToolbarTypes.getMethod(iButtonType, "Destroy");
        }