예제 #1
0
        private void OnClick(MouseButtons button)
        {
            switch (button)
            {
            case MouseButtons.Left:
                IconClicked.Invoke(this, new EventArgs());
                break;

            case MouseButtons.Right:
                MenuOpening.Invoke(this, new EventArgs());
                break;
            }
        }
예제 #2
0
 protected virtual void OnIconClicked(TrayIconClickedEventArgument e)
 {
     IconClicked?.Invoke(this, e);
 }