BEurtle.IssueDetail.CommentContextMenu_ItemClicked C# (CSharp) Метод

CommentContextMenu_ItemClicked() приватный Метод

private CommentContextMenu_ItemClicked ( object sender, ToolStripItemClickedEventArgs e ) : void
sender object
e System.Windows.Forms.ToolStripItemClickedEventArgs
Результат void
        private void CommentContextMenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            switch (e.ClickedItem.Name)
            {
                case "CommentBodyUndo":
                    {
                        CommentBody.Document.ExecCommand("Undo", false, null);
                        CommentBody.Focus();
                        CommentBody.Document.ActiveElement.Focus();
                        break;
                    }
                case "CommentBodyCut":
                    {
                        CommentBody.Document.ExecCommand("Cut", false, null);
                        CommentBody.Focus();
                        CommentBody.Document.ActiveElement.Focus();
                        break;
                    }
                case "CommentBodyCopy":
                    {
                        CommentBody.Document.ExecCommand("Copy", false, null);
                        CommentBody.Focus();
                        CommentBody.Document.ActiveElement.Focus();
                        break;
                    }
                case "CommentBodyPaste":
                    {
                        CommentBody.Document.ExecCommand("Paste", false, null);
                        CommentBody.Focus();
                        CommentBody.Document.ActiveElement.Focus();
                        break;
                    }
                case "CommentBodyDelete":
                    {
                        CommentBody.Document.ExecCommand("Delete", false, null);
                        CommentBody.Focus();
                        CommentBody.Document.ActiveElement.Focus();
                        break;
                    }
                case "CommentBodySelectAll":
                    {
                        CommentBody.Document.ExecCommand("SelectAll", false, null);
                        CommentBody.Focus();
                        CommentBody.Document.ActiveElement.Focus();
                        break;
                    }
            }
        }