Пример #1
0
        //************************************************************************************
        private void buttonSend_Click(object sender, EventArgs e)
        {
            if (CommentBox.Text.Trim() == "")
            {
                CommentBox.ShowBalloon(ToolTipIcon.Warning, "", "Empty message?");
                return;
            }

            Cursor.Current = Cursors.WaitCursor;
            string message = "";

            message += "***************************** MESSAGE *****************************\n";
            message += CommentBox.Text + "\n";
            message += "****************************** NAME *******************************\n";
            message += NameBox.Text + "\n";
            message += "****************************** MAIL *******************************\n";
            message += MailBox.Text + "\n";
            message += "*******************************************************************\n";

            var           ravenClient = new RavenClient("https://[email protected]/1210500");
            SentryMessage msg         = new SentryMessage(message);
            SentryEvent   ev          = new SentryEvent(msg);

            ravenClient.Capture(ev);
            Close();
        }
Пример #2
0
        //*************************************************************************************************************
        private void buttonSend_Click(object sender, EventArgs e)
        {
            if (CommentBox.Text.Trim() == "")
            {
                CommentBox.ShowBalloon(ToolTipIcon.Warning, "", "Empty message?");
                return;
            }

            Cursor.Current = Cursors.WaitCursor;
            string message = "";

            message += "***************************** MESSAGE *****************************\n";
            message += CommentBox.Text + "\n";
            message += "****************************** NAME *******************************\n";
            message += NameBox.Text + "\n";
            message += "****************************** MAIL *******************************\n";
            message += MailBox.Text + "\n";
            message += "*******************************************************************\n";

            var           ravenClient = new RavenClient("https://[email protected]/5275199");
            SentryMessage msg         = new SentryMessage(message);
            SentryEvent   ev          = new SentryEvent(msg);

            ravenClient.Capture(ev);
            Close();
        }