示例#1
0
 public static DialogResult reportCriticalErrorToO2Developers(object currentObject, string subject,
                                                              string message)
 {
     var rpReportBug = new ReportBug();
     rpReportBug.setFromEmail("*****@*****.**");
     rpReportBug.setSubject("[CRITICAL O2 ERROR] " + currentObject);
     rpReportBug.setMessage(Mail.getUserDetailsAsEmailFormat() + " says:" + Environment.NewLine + subject +
                            Environment.NewLine + Environment.NewLine + message);
     return rpReportBug.ShowDialog();         
 }
示例#2
0
 private void requestHelpFromO2SupportToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     var rpReportBug = new ReportBug {fParentForm = this};
     rpReportBug.setFromEmail("*****@*****.**");
     rpReportBug.setSubject("[Comment from O2 user] ");
     rpReportBug.setMessage(Mail.getUserDetailsAsEmailFormat() + " says:" + Environment.NewLine +
                            "Hello O2 Support, " + Environment.NewLine + Environment.NewLine);
     rpReportBug.Show();
 }