Example #1
0
        private void BtnFeedbackClick(object sender, EventArgs e)
        {
            string humanDescription = txtHumanDescription.Text.Trim();
            var rep = new 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();
            MainForm.Conf.Enable_Error_Reporting = chkErrorReporting.Checked;
            Close();
        }
Example #2
0
        private void BtnFeedbackClick(object sender, EventArgs e)
        {
            string humanDescription = txtHumanDescription.Text.Trim();
            var    rep = new 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();
                //Log.Error("",ex);//MainForm.LogExceptionToFile(ex);
                MessageBox.Show(LocRm.GetString("SendErrorReportError"), LocRm.GetString("Error"));
                return;
            }
            rep.Dispose();
            MainForm.Conf.Enable_Error_Reporting = chkErrorReporting.Checked;
            Close();
        }
Example #3
0
        private static void AddCameraToDatabase(string type, string model, string prefix, string source, string url, string cookies, string flags, int port)
        {
            try
            {
                var r = new Reporting.Reporting { Timeout = 8000 };
                r.AddCamera2(type, model, prefix, source, url, cookies, flags, port);
                r.Dispose();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);

            }
        }
Example #4
0
        private static void AddCameraToDatabase(string type, string model, string prefix, string source, string url, string cookies, string flags, int port)
        {
            try
            {
                var r = new Reporting.Reporting { Timeout = 8000 };
                r.AddCamera2(type, model, prefix, source, url, cookies, flags, port);
                r.Dispose();
            }
            catch (Exception ex)
            {
                MainForm.LogExceptionToFile(ex);

            }
        }
Example #5
0
 private static void AddCameraToDatabase(string type, string model, string prefix, string source, string url, string cookies, string flags, int port)
 {
     try
     {
         var r = new Reporting.Reporting {
             Timeout = 8000
         };
         r.AddCamera2(type, model, prefix, source, url, cookies, flags, port);
         r.Dispose();
     }
     catch (Exception ex)
     {
         MainForm.LogExceptionToFile(ex);
     }
 }
Example #6
0
 private static void AddCameraToDatabase(string type, string model, string prefix, string source, string url, string cookies, string flags, int port)
 {
     try
     {
         var r = new Reporting.Reporting {
             Timeout = 8000
         };
         r.AddCamera2(type, model, prefix, source, url, cookies, flags, port);
         r.Dispose();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Example #7
0
        private void BtnFeedbackClick(object sender, EventArgs e)
        {
            bool   success  = false;
            string feedback = txtFeedback.Text.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;
                }
            }
            var rep = new Reporting.Reporting();

            try
            {
                rep.SendFeedback("iSpy Feedback: " + feedback + "<br/><br/>Version: " + Application.ProductVersion,
                                 fromEmail);
                success = true;
                rep.Dispose();
            }
            catch (Exception ex)
            {
                rep.Dispose();
                Log.Error("", ex);//MainForm.LogExceptionToFile(ex);
                MessageBox.Show(LocRm.GetString("Feedback_NotSent"), LocRm.GetString("Error"));
            }
            if (success)
            {
                MessageBox.Show(LocRm.GetString("Feedback_Sent"), LocRm.GetString("Note"));
                Close();
            }
        }
Example #8
0
        private void BtnFeedbackClick(object sender, EventArgs e)
        {
            bool success = false;
            string feedback = txtFeedback.Text.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;
            }
            var rep = new Reporting.Reporting();
            try
            {
                rep.SendFeedback("iSpy 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();
            }
        }