/// <summary> /// Handles the Enter event of the buttonDummyFocus control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> /// <remarks>Documented by Dev05, 2009-05-18</remarks> private void buttonDummyFocus_Enter(object sender, EventArgs e) { if (lastButton != null && lastButton.Enabled) { if (lastButton == glassButtonNextCard && glassButtonPreviousCard.Enabled) { glassButtonPreviousCard.Focus(); } else if (glassButtonNextCard.Enabled) { glassButtonNextCard.Focus(); } else { lastButton.Focus(); } } }