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; } }
protected virtual void OnIconClicked(TrayIconClickedEventArgument e) { IconClicked?.Invoke(this, e); }