private static MouseAction ConvertExtendedMouseAction(ExtendedMouseAction action)
 {
     return(action.In(ExtendedMouseAction.XButton1Click, ExtendedMouseAction.XButton2Click)
                ? MouseAction.None
                : (MouseAction)action);
 }
 private static MouseAction ConvertExtendedMouseAction(ExtendedMouseAction action)
 {
     return action.In(ExtendedMouseAction.XButton1Click, ExtendedMouseAction.XButton2Click)
                ? MouseAction.None
                : (MouseAction) action;
 }