Beispiel #1
0
 protected override void OnMouseLeave(
     EventArgs e)
 {
     _state &= ~ColorButtonState.Hot;
     base.OnMouseLeave(e);
 }
Beispiel #2
0
 protected override void OnGotFocus(EventArgs e)
 {
     _state |= ColorButtonState.Selected;
     base.OnGotFocus(e);
 }
Beispiel #3
0
 protected override void OnMouseEnter(
     EventArgs e)
 {
     _state |= ColorButtonState.Hot;
     base.OnMouseEnter(e);
 }