public PopupMenuDrawable() { Type popupMenuDrawableType = ToolbarTypes.getType("Toolbar.PopupMenuDrawable"); this.realPopupMenuDrawable = Activator.CreateInstance(popupMenuDrawableType, null); this.updateMethod = ToolbarTypes.getMethod(popupMenuDrawableType, "Update"); this.drawMethod = ToolbarTypes.getMethod(popupMenuDrawableType, "Draw"); this.addOptionMethod = ToolbarTypes.getMethod(popupMenuDrawableType, "AddOption"); this.addSeparatorMethod = ToolbarTypes.getMethod(popupMenuDrawableType, "AddSeparator"); this.destroyMethod = ToolbarTypes.getMethod(popupMenuDrawableType, "Destroy"); this.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"); }