Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
            }
        }
Пример #3
0
        /// <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();
            }
        }
Пример #4
0
        /// <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();
            }
        }