private void Button_RollOver(MouseRollOverEventArgs obj) { if (state != ButtonState.Out) return; state = ButtonState.Over; }
/// <summary> /// Sends the given event to this sprite. /// </summary> /// <param name="e">The event that is sent.</param> public void SendEvent(MouseRollOverEventArgs e) { if (RollOver != null) RollOver(e); }