private void PickedStopAction() { switch (tabIndex) { case 0: if (holdLeft == true) { mouse.ReleaseLeft(); } else if (holdLeftAndRight == true) { mouse.ReleaseLeftAndRight(); } break; case 2: if (singleLeft == true) { start = false; } else if (singleRight == true) { start = false; } break; default: break; } }