private void sendLogsToGDocBackupDevelopersToolStripMenuItem_Click(object sender, EventArgs e) { if (Logs == null) return; using (SendFeedbackForm sf = new SendFeedbackForm()) { sf.DataTitle = "GDocBackup Logs"; sf.DataBody = String.Join(Environment.NewLine, Logs); sf.ShowDialog(); } }
private void sendLogsToGDocBackupDevelopersToolStripMenuItem_Click(object sender, EventArgs e) { if (Logs == null) { return; } using (SendFeedbackForm sf = new SendFeedbackForm()) { sf.DataTitle = "GDocBackup Logs"; sf.DataBody = String.Join(Environment.NewLine, Logs); sf.ShowDialog(); } }
/// <summary> /// ... /// </summary> private static void BuildAndSendFeedBack(string mainEx, object subEx) { // Build feedback data StringBuilder sb = new StringBuilder(); sb.AppendLine(mainEx); sb.AppendLine(new String('-', 40)); if (subEx != null) { sb.AppendLine(subEx.ToString()); sb.AppendLine(new String('-', 40)); } // Show SendFeedback window using (SendFeedbackForm sf = new SendFeedbackForm()) { sf.DataTitle = "GDocBackup encountered an unexpected error!"; sf.DataBody = sb.ToString(); sf.ShowDialog(); } }