void item_MouseEnter(object sender, EventArgs e) { if (!SelectedStepButton.Equals(sender)) { ((StepButton)sender).BackColor = C_MOUSEOVER_COLOR; } }
void item_MouseDown(object sender, MouseEventArgs e) { if (!SelectedStepButton.Equals(sender)) { ((StepButton)sender).BackColor = C_MOUSEDOWN_COLOR; } }
void item_MouseLeave(object sender, EventArgs e) { if (SelectedStepButton.Equals(sender)) { ((StepButton)sender).BackColor = C_SELECTED_COLOR_BG; } else { ((StepButton)sender).BackColor = C_UNSELECTED_COLOR_BG; } }