Exemple #1
0
 void item_MouseEnter(object sender, EventArgs e)
 {
     if (!SelectedStepButton.Equals(sender))
     {
         ((StepButton)sender).BackColor = C_MOUSEOVER_COLOR;
     }
 }
Exemple #2
0
 void item_MouseDown(object sender, MouseEventArgs e)
 {
     if (!SelectedStepButton.Equals(sender))
     {
         ((StepButton)sender).BackColor = C_MOUSEDOWN_COLOR;
     }
 }
Exemple #3
0
 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;
     }
 }