private void TrackItem_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { if (isLeftDown) { MouseLeftButtonClick?.Invoke(sender, e); } isLeftDown = false; }
private void OnMouseClick(object sender, MouseEventArgs e) { NotifyIconHelper.SetNotifyIconWindowForeground(NotifyIcon); if (e.Button == MouseButtons.Right) { if (NotifyIconHelper.TryGetNotifyIconClickedPoint(NotifyIcon, out Point point)) { MouseRightButtonClick?.Invoke(this, point); } } else { MouseLeftButtonClick?.Invoke(this, null); } }
private void OnMouseDoubleClick(object sender, MouseEventArgs e) { MouseLeftButtonClick?.Invoke(this, null); }