Exemplo n.º 1
0
        private void TrackItem_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            if (isLeftDown)
            {
                MouseLeftButtonClick?.Invoke(sender, e);
            }

            isLeftDown = false;
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 private void OnMouseDoubleClick(object sender, MouseEventArgs e)
 {
     MouseLeftButtonClick?.Invoke(this, null);
 }