コード例 #1
0
        /// <summary>
        /// Submits new <seealso cref="IssuesEntry"/> into the project.
        /// </summary>
        /// <param name="newEntry">A new issue entry.</param>
        /// <param name="applicationName">Application name invoking the submission.</param>
        /// <returns>A new <see cref="IssuesEntry"/> object containing some additional data.</returns>
        public IssuesEntry SubmitNewIssue(IssuesEntry newEntry, string applicationName)
        {
            if (string.IsNullOrEmpty(applicationName))
            {
                applicationName = "GCodeIssueTracker-1.0";
            }

            GUrl = "http://code.google.com/feeds/issues/p/" + ProjectName + "/issues/full";
            return(base.SubmitNewEntry <IssuesFeed, IssuesEntry>(newEntry, applicationName));
        }
コード例 #2
0
ファイル: CrashReport.cs プロジェクト: bluejack2000/core
 private void _email_Click(object sender, EventArgs e)
 {
     ProjectHostingService service = new ProjectHostingService("tradelink", _user.Text, _pass.Text);
     var issue = new IssuesEntry();
     issue.Author = new Author { Name = _user.Text };
     issue.Title = _desc.Text;
     issue.Content = new Content{ Type = "text", Description =  _body.Text };
     issue.Status = "New";
     try
     {
         int id = service.SubmitNewIssue(issue, PROGRAM).Id;
         System.Diagnostics.Process.Start("http://code.google.com/p/tradelink/issues/detail?id=" + id);
         if (TicketSucceed != null)
             TicketSucceed(_user.Text, _pass.Text);
         Close();
     }
     catch (Exception)
     {
         errstatus("Please copy/paste to community.tradelink.org (google disabled automatic reports).");
         HelpReportCommunity.Help(PROGRAM);
         Invalidate(true);
     }
 }
コード例 #3
0
        /// <summary>
        /// Submits new <seealso cref="IssuesEntry"/> into the project.
        /// </summary>
        /// <param name="newEntry">A new issue entry.</param>
        /// <param name="applicationName">Application name invoking the submission.</param>
        /// <returns>A new <see cref="IssuesEntry"/> object containing some additional data.</returns>
        public IssuesEntry SubmitNewIssue(IssuesEntry newEntry, string applicationName)
        {
            if (string.IsNullOrEmpty(applicationName))
                applicationName = "GCodeIssueTracker-1.0";

            GUrl = "http://code.google.com/feeds/issues/p/" + ProjectName + "/issues/full";
            return base.SubmitNewEntry<IssuesFeed, IssuesEntry>(newEntry, applicationName);
        }
コード例 #4
0
ファイル: CrashReport.cs プロジェクト: antonywu/tradelink
 private void _email_Click(object sender, EventArgs e)
 {
     ProjectHostingService service = new ProjectHostingService("tradelink", _user.Text, _pass.Text);
     var issue = new IssuesEntry();
     issue.Author = new Author { Name = _user.Text };
     issue.Title = _desc.Text;
     issue.Content = new Content{ Type = "text", Description =  _body.Text };
     issue.Status = "New";
     try
     {
         int id = service.SubmitNewIssue(issue, PROGRAM).Id;
         System.Diagnostics.Process.Start("http://code.google.com/p/tradelink/issues/detail?id=" + id);
         if (TicketSucceed != null)
             TicketSucceed(_user.Text, _pass.Text);
         Close();
     }
     catch (Exception)
     {
         Text = "Authentication failed.";
         Invalidate(true);
     }
 }