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

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

private CommentDelete_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void CommentDelete_Click(object sender, EventArgs e)
        {
            throw new Exception("BE currently deletes whole bugs when passed a comment id, so I refuse to run");

            XPathNavigator comment = commentToUUID[Comments.SelectedNode].Item2;
            string shortname = comment.SelectSingleNode("short-name").ToString();
            //MessageBox.Show("TODO: Delete Comment "+shortname);
            string[] outputs = plugin.callBEcmd(plugin.rootpath, new string[]{"remove "+shortname});
            if (outputs[0].Length > 0) MessageBox.Show(this, "Command output: " + outputs[0]);
            loadIssue();
        }