Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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);
     }
 }