private void btnFeedback_Click(object sender, EventArgs e) { string _HumanDescription = txtHumanDescription.Text.ToString().Trim(); Reporting.Reporting _rep = new global::iSpyServer.Reporting.Reporting(); try { string g = Guid.NewGuid().ToString(); _rep.LogApplicationException(11, "iSpy Version: " + Application.ProductVersion + "<br/><br/>" + UnhandledException.Message + "<br/><br/>User Notes:<br/>" + _HumanDescription, UnhandledException.Source, UnhandledException.HelpLink, UnhandledException.StackTrace, g); } catch (Exception) { _rep.Dispose(); //MainForm.LogExceptionToFile(ex); MessageBox.Show(LocRM.GetString("SendErrorReportError"), LocRM.GetString("Error")); return; } _rep.Dispose(); iSpyServer.Default.Enable_Error_Reporting = chkErrorReporting.Checked; Close(); }
private void btnFeedback_Click(object sender, EventArgs e) { bool success = false; string _Feedback = txtFeedback.Text.ToString().Trim(); if (_Feedback == "") { MessageBox.Show(LocRM.GetString("Feedback_PleaseEnter"), LocRM.GetString("Error")); return; } string FromEmail = txtEmail.Text.Trim(); if (!IsValidEmail(FromEmail)) { if (MessageBox.Show(LocRM.GetString("Feedback_ValidateEmail"), LocRM.GetString("AreYouSure"), MessageBoxButtons.YesNo) == DialogResult.No) { return; } } Reporting.Reporting _rep = new global::iSpyServer.Reporting.Reporting(); try { _rep.SendFeedback("iSpyServer Feedback: " + _Feedback + "<br/><br/>Version: " + Application.ProductVersion, FromEmail); success = true; _rep.Dispose(); } catch (Exception ex) { _rep.Dispose(); MainForm.LogExceptionToFile(ex); MessageBox.Show(LocRM.GetString("Feedback_NotSent"), LocRM.GetString("Error")); } if (success) { MessageBox.Show(LocRM.GetString("Feedback_Sent"), LocRM.GetString("Note")); Close(); } }
private void btnFeedback_Click(object sender, EventArgs e) { bool success = false; string _Feedback = txtFeedback.Text.ToString().Trim(); if (_Feedback == "") { MessageBox.Show(LocRM.GetString("Feedback_PleaseEnter"), LocRM.GetString("Error")); return; } string FromEmail = txtEmail.Text.Trim(); if (!IsValidEmail(FromEmail)) { if (MessageBox.Show(LocRM.GetString("Feedback_ValidateEmail"), LocRM.GetString("AreYouSure"), MessageBoxButtons.YesNo) == DialogResult.No) return; } Reporting.Reporting _rep = new global::iSpyServer.Reporting.Reporting(); try { _rep.SendFeedback("iSpyServer Feedback: " + _Feedback + "<br/><br/>Version: " + Application.ProductVersion, FromEmail); success = true; _rep.Dispose(); } catch (Exception ex) { _rep.Dispose(); MainForm.LogExceptionToFile(ex); MessageBox.Show(LocRM.GetString("Feedback_NotSent"), LocRM.GetString("Error")); } if (success) { MessageBox.Show(LocRM.GetString("Feedback_Sent"), LocRM.GetString("Note")); Close(); } }