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"); }
internal ButtonTypes(Type iButtonType) { this.iButtonType = iButtonType; this.textProperty = ToolbarTypes.getProperty(iButtonType, "Text"); this.textColorProperty = ToolbarTypes.getProperty(iButtonType, "TextColor"); this.texturePathProperty = ToolbarTypes.getProperty(iButtonType, "TexturePath"); this.toolTipProperty = ToolbarTypes.getProperty(iButtonType, "ToolTip"); this.visibleProperty = ToolbarTypes.getProperty(iButtonType, "Visible"); this.visibilityProperty = ToolbarTypes.getProperty(iButtonType, "Visibility"); this.effectivelyVisibleProperty = ToolbarTypes.getProperty(iButtonType, "EffectivelyVisible"); this.enabledProperty = ToolbarTypes.getProperty(iButtonType, "Enabled"); this.importantProperty = ToolbarTypes.getProperty(iButtonType, "Important"); this.drawableProperty = ToolbarTypes.getProperty(iButtonType, "Drawable"); this.onClickEvent = ToolbarTypes.getEvent(iButtonType, "OnClick"); this.onMouseEnterEvent = ToolbarTypes.getEvent(iButtonType, "OnMouseEnter"); this.onMouseLeaveEvent = ToolbarTypes.getEvent(iButtonType, "OnMouseLeave"); this.destroyMethod = ToolbarTypes.getMethod(iButtonType, "Destroy"); }