Ejemplo n.º 1
0
        private void OnSendingError(object sender, ErrorModelEventArgs e) {
            string message = "Submitting Message: " + e.Error.Id + Environment.NewLine;
            WriteLog(message);

            e.Error.ExtendedData["BaseDirectory"] = AppDomain.CurrentDomain.BaseDirectory;

            if (e.Error.Message == "Important Exception")
                e.Error.Tags.Add("Important");
        }
Ejemplo n.º 2
0
        private void OnSendingError(object sender, ErrorModelEventArgs e)
        {
            string message = "Submitting Message: " + e.Error.Id + Environment.NewLine;

            WriteLog(message);

            e.Error.ExtendedData["BaseDirectory"] = AppDomain.CurrentDomain.BaseDirectory;

            if (e.Error.Message == "Important Exception")
            {
                e.Error.Tags.Add("Important");
            }
        }
Ejemplo n.º 3
0
        private void OnFeedbackSubmitting(object sender, ErrorModelEventArgs e)
        {
            if (logTextBox.InvokeRequired)
            {
                logTextBox.Invoke(new EventHandler <ErrorModelEventArgs>(OnFeedbackSubmitting), sender, e);
                return;
            }

            string message = "Submitting Message: " + e.Error.Id + Environment.NewLine;

            logTextBox.AppendText(message);

            e.Error.ExtendedData.Add("BaseDirectory", AppDomain.CurrentDomain.BaseDirectory);
            statusLabel.Text = "Submitting Message";

            if (e.Error.Message == "Important Exception")
            {
                e.Error.Tags.Add("Important");
            }
        }