コード例 #1
0
ファイル: TaskbarIcon.cs プロジェクト: sea-cpu/Kill-Update
        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);
 }