You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
899 B
C#

using System;
namespace IntelOrca.Launchpad
{
public class ButtonPressEventArgs : EventArgs
{
private ButtonType mType;
private ToolbarButton mToolbarButton;
private SideButton mSidebarButton;
private int mX, mY;
public ButtonPressEventArgs(ToolbarButton toolbarButton)
{
mType = ButtonType.Toolbar;
mToolbarButton = toolbarButton;
}
public ButtonPressEventArgs(SideButton sideButton)
{
mType = ButtonType.Side;
mSidebarButton = sideButton;
}
public ButtonPressEventArgs(int x, int y)
{
mType = ButtonType.Grid;
mX = x;
mY = y;
}
public ButtonType Type
{
get { return mType; }
}
public ToolbarButton ToolbarButton
{
get { return mToolbarButton; }
}
public SideButton SidebarButton
{
get { return mSidebarButton; }
}
public int X
{
get { return mX; }
}
public int Y
{
get { return mY; }
}
}
}