日期:2014-05-17 浏览次数:20917 次
public enum ButtonType
{
/// <summary>
/// 最小化
/// </summary>
Minimize,
/// <summary>
/// 最大化
/// </summary>
Maximization,
/// <summary>
/// 关闭
/// </summary>
Close,
/// <summary>
/// 还原
/// </summary>
Restore
}
/// <summary>
/// 按钮状态
/// </summary>
public enum ButtonState
{
/// <summary>
/// 正常
/// </summary>
None,
/// <summary>
/// 鼠标滑过
/// </summary>
Hover,
/// <summary>
/// 按下
/// </summary>
Down
}
public class ToolsButton : Button
{
#region 私有字段
private Image backImg;
private Image hoverImg;
private Image clickImg;
private ButtonType type;
private ButtonState state = ButtonState.None;