public static bool DdcOpen(this IMouseEventArgs e, IDDControl ddc) { if (ddc.DroppedDown) { return(false); } if (e.Up() && e.Left() && !ddc.DroppedDown && ddc.DropDownButton.Has(e.X, e.Y)) { return(true); } return(false); }
public static bool IsPressed(this IMouseEventArgs e) => e.Down() && e.Left();
public static bool AppClick(this IMouseEventArgs e) => (e.Down() && e.Left()) || e.OpenContextMenu();
public static bool IsClicked(this IMouseEventArgs e) => e.Up() && e.Left();