internal ButtonTypes(Type iButtonType) { this.iButtonType = iButtonType; textProperty = ToolbarTypes.GetProperty(iButtonType, "Text"); textColorProperty = ToolbarTypes.GetProperty(iButtonType, "TextColor"); texturePathProperty = ToolbarTypes.GetProperty(iButtonType, "TexturePath"); bigTexturePathProperty = ToolbarTypes.GetProperty(iButtonType, "BigTexturePath"); toolTipProperty = ToolbarTypes.GetProperty(iButtonType, "ToolTip"); visibleProperty = ToolbarTypes.GetProperty(iButtonType, "Visible"); visibilityProperty = ToolbarTypes.GetProperty(iButtonType, "Visibility"); effectivelyVisibleProperty = ToolbarTypes.GetProperty(iButtonType, "EffectivelyVisible"); isHoveringProperty = ToolbarTypes.GetProperty(iButtonType, "IsHovering"); 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"); }
private ToolbarManager(object realToolbarManager) { this.realToolbarManager = realToolbarManager; addMethod = ToolbarTypes.GetMethod(types.iToolbarManagerType, "add"); }