internal Button(object realButton, ToolbarTypes types)
{
this.realButton = realButton;
this.types = types;
realClickHandler = attachEventHandler(types.button.onClickEvent, "clicked", realButton);
realMouseEnterHandler = attachEventHandler(types.button.onMouseEnterEvent, "mouseEntered", realButton);
realMouseLeaveHandler = attachEventHandler(types.button.onMouseLeaveEvent, "mouseLeft", realButton);
}