Exemple #1
0
        private void submitReportButton_Click(object sender, EventArgs e)
        {
            this.buttonContinue.Enabled     = false;
            this.buttonQuit.Enabled         = false;
            this.buttonSubmitReport.Enabled = false;
            this.statusLinkLabel.Visible    = true;

            SFBugReporter wc = new SFBugReporter();

            wc.DownloadProgressChanged += wc_DownloadProgressChanged;
            wc.DownloadStringCompleted += wc_DownloadStringCompleted;

            NameValueCollection qc = new NameValueCollection();

            qc.Add("group_id", "242527");       //PH BugTracker ID: Required Do Not Change!
            qc.Add("atid", "1119665");          //PH BugTracker group ID (bugs group): Required Do Not Change!
            qc.Add("func", "postadd");          //PH BugTracker Function: Required Do Not Change!
            qc.Add("category_id", "100");       //100 = null
            qc.Add("artifact_group_id", "100"); //100 = null
            qc.Add("assigned_to", "100");       //User this report is to be assigned, 100 = null
            qc.Add("priority", "5");            //Bug Report Priority, 1 = Low (Blue) 5 = default (Green)
            //summary must be completly unique to prevent duplicate submission errors.
            qc.Add("summary", Uri.EscapeDataString(_exception.Message)
                   + " - " + DateTime.Now.ToString("F", System.Globalization.DateTimeFormatInfo.InvariantInfo)
                   + " - " + DateTime.Now.Ticks.ToString("x", System.Globalization.DateTimeFormatInfo.InvariantInfo));
            qc.Add("details", Uri.EscapeDataString(textException.Text));
            //qc.Add("input_file", FileName);
            //qc.Add("file_description", "Error-Report");
            qc.Add("submit", "Add Artifact"); //PH BugTracker Function: Required Do Not Change!

            wc.QueryString = qc;
            wc.DownloadStringAsync(new Uri("https://sourceforge.net/tracker/index.php"));
        }
        private void submitReportButton_Click(object sender, EventArgs e)
        {
            this.buttonContinue.Enabled = false;
            this.buttonQuit.Enabled = false;
            this.buttonSubmitReport.Enabled = false;
            this.statusLinkLabel.Visible = true;

            SFBugReporter wc = new SFBugReporter();
            wc.DownloadProgressChanged += new DownloadProgressChangedEventHandler(wc_DownloadProgressChanged);
            wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);

            NameValueCollection qc = new NameValueCollection();
            qc.Add("group_id", "242527"); //PH BugTracker ID: Required Do Not Change!
            qc.Add("atid", "1119665"); //PH BugTracker group ID (bugs group): Required Do Not Change!
            qc.Add("func", "postadd"); //PH BugTracker Function: Required Do Not Change!
            qc.Add("category_id", "100"); //100 = null
            qc.Add("artifact_group_id", "100"); //100 = null
            qc.Add("assigned_to", "100"); //User this report is to be assigned, 100 = null
            qc.Add("priority", "5"); //Bug Report Priority, 1 = Low (Blue) 5 = default (Green)
            //summary must be completly unique to prevent duplicate submission errors.
            qc.Add("summary", Uri.EscapeDataString(_exception.Message)
                + " - " + DateTime.Now.ToString("F", System.Globalization.DateTimeFormatInfo.InvariantInfo)
                + " - " + DateTime.Now.Ticks.ToString("x", System.Globalization.DateTimeFormatInfo.InvariantInfo)); 
            qc.Add("details", Uri.EscapeDataString(textException.Text));
            //qc.Add("input_file", FileName);
            //qc.Add("file_description", "Error-Report");
            qc.Add("submit", "Add Artifact"); //PH BugTracker Function: Required Do Not Change!

            wc.QueryString = qc;
            wc.DownloadStringAsync(new Uri("https://sourceforge.net/tracker/index.php"));
        }
Exemple #3
0
        private void submitReportButton_Click(object sender, EventArgs e)
        {
            this.buttonContinue.Enabled = false;
            this.buttonQuit.Enabled = false;
            this.buttonSubmitReport.Enabled = false;
            this.statusLinkLabel.Visible = true;

            SFBugReporter wc = new SFBugReporter();
            wc.DownloadProgressChanged += new DownloadProgressChangedEventHandler(wc_DownloadProgressChanged);
            wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);

            NameValueCollection qc = new NameValueCollection();
            qc.Add("group_id", "242527");
            qc.Add("atid", "1119665");
            qc.Add("func", "postadd");
            qc.Add("category_id", "100");
            qc.Add("artifact_group_id", "100");
            qc.Add("assigned_to", "100");
            qc.Add("priority", "5");

            qc.Add("summary", Uri.EscapeDataString(_exception.Message)
                + " - " + DateTime.Now.ToString("F")
                + " - " + DateTime.Now.Ticks.ToString("x"));
            qc.Add("details", Uri.EscapeDataString(textException.Text));

            qc.Add("submit", "Add Artifact");

            wc.QueryString = qc;
            wc.DownloadStringAsync(new Uri("https://sourceforge.net/tracker/index.php"));
        }