Esempio n. 1
0
        private void btnSend_Click(object sender, EventArgs e)
        {
            string description = "Problems:\r\n" + txtProblems.Text +
                                 "\r\n\r\nMissing Features:\r\n" + txtMissingFeatures.Text +
                                 "\r\n\r\nImprovements:\r\n\r\n" + txtImprovements.Text;

            PostSubmitter ps = new PostSubmitter();

            ps.Url = "http://www.sqlitecompare.com/support_submit.php";
            ps.PostItems.Add("subject", "Survey Results");
            ps.PostItems.Add("description", description);
            ps.PostItems.Add("email", txtEmail.Text.Trim());
            ps.PostItems.Add("os_version", Environment.OSVersion.ToString());
            ps.PostItems.Add("sw_version", Utils.GetSoftwareVersion() + " build " + Utils.GetSoftwareBuild());
            ps.PostItems.Add("name", txtName.Text.Trim());
            ps.Type = PostSubmitter.PostTypeEnum.Post;

            HttpPostSenderDialog dlg = new HttpPostSenderDialog();

            dlg.Prepare(ps);
            DialogResult rs = dlg.ShowDialog(this);

            if (rs == DialogResult.Cancel)
            {
                return;
            }

            if (dlg.Error != null)
            {
                // Some kind of transmission error has occured - notify the user
                DialogResult res = MessageBox.Show(this,
                                                   "Failed to transfer the data to our servers. Do you want to navigate to our web support page?",
                                                   "Error", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
                if (res == DialogResult.Yes)
                {
                    WebSiteUtils.OpenBugFeaturePage();
                }
            }
            else
            {
                MessageBox.Show(this,
                                "Your survey was queued for review. Thanks!",
                                "Information",
                                MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.Close();
            } // else
        }
        private void btnSend_Click(object sender, EventArgs e)
        {
            PostSubmitter ps = new PostSubmitter();

            ps.Url = "http://www.sqlitecompare.com/support_submit.php";
            ps.PostItems.Add("subject", "Bug report");
            ps.PostItems.Add("description", _error.ToString() + "\r\nActions: " + txtLastActions.Text.Trim());
            ps.PostItems.Add("email", txtEmail.Text.Trim());
            ps.PostItems.Add("os_version", Environment.OSVersion.ToString());
            ps.PostItems.Add("sw_version", Utils.GetSoftwareVersion() + " build " + Utils.GetSoftwareBuild());
            ps.PostItems.Add("name", "unknown");
            ps.Type = PostSubmitter.PostTypeEnum.Post;

            HttpPostSenderDialog dlg = new HttpPostSenderDialog();

            dlg.Prepare(ps);
            DialogResult rs = dlg.ShowDialog(this);

            if (rs == DialogResult.Cancel)
            {
                return;
            }
            if (dlg.Error != null)
            {
                // Some kind of transmission error has occured - notify the user
                DialogResult res = MessageBox.Show(this,
                                                   "Failed to transfer the data to our servers. Do you want to navigate to our web support page?",
                                                   "Error", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
                if (res == DialogResult.Yes)
                {
                    WebSiteUtils.OpenBugFeaturePage();
                }
            }
            else
            {
                MessageBox.Show(this,
                                "Thank you for sending us this bug report. We'll do our best to check it and incorporate a bugfix " +
                                "in the next software version.\r\nThe software will now exit.",
                                "Information",
                                MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.Close();
            } // else
        }
 private void lnkPurchase_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     WebSiteUtils.OpenBuyPage();
 }
Esempio n. 4
0
 private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
 {
     WebSiteUtils.OpenProductPage();
 }
Esempio n. 5
0
 private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
 {
     WebSiteUtils.OpenPage(e.LinkText);
 }
Esempio n. 6
0
        private void btnSendFeedback_Click(object sender, EventArgs e)
        {
            string type = "Unknown feedback type";

            if (_selected == pbxIdea)
            {
                type = "IDEA";
            }
            else if (_selected == pbxProblem)
            {
                type = "PROBLEM";
            }
            else if (_selected == pbxQuestion)
            {
                type = "QUESTION";
            }

            string email = string.Empty;

            if (_rx.IsMatch(txtEmail.Text.Trim()))
            {
                email = txtEmail.Text.Trim();
            }

            string licenseType = "Freeware";

            string customer = "Anonymous";

            PostSubmitter ps = new PostSubmitter();

            ps.Url = "http://www.sqlitecompare.com/support_submit.php";
            ps.PostItems.Add("subject", "Feedback [" + type + "]");
            ps.PostItems.Add("description", "FEEDBACK REPORT (license = [" + licenseType + "]):\r\n\r\n" + txtFeedback.Text);
            ps.PostItems.Add("email", email);
            ps.PostItems.Add("os_version", Environment.OSVersion.ToString());
            ps.PostItems.Add("sw_version", Utils.GetSoftwareVersion() + " build " + Utils.GetSoftwareBuild());
            ps.PostItems.Add("name", customer);
            ps.Type = PostSubmitter.PostTypeEnum.Post;

            HttpPostSenderDialog dlg = new HttpPostSenderDialog();

            dlg.Prepare(ps);
            DialogResult rs = dlg.ShowDialog(this);

            if (rs == DialogResult.Cancel)
            {
                return;
            }
            if (dlg.Error != null)
            {
                // Some kind of transmission error has occured - notify the user
                DialogResult res = MessageBox.Show(this,
                                                   "Failed to transfer the data to our servers. Do you want to navigate to our web support page?",
                                                   "Error", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
                if (res == DialogResult.Yes)
                {
                    WebSiteUtils.OpenBugFeaturePage();
                }
            }
            else
            {
                MessageBox.Show(this,
                                "Thank you for your feedback. We'll do our best to incorporate any useful idea into SQLite Compare " +
                                "and fix any reported bug as soon as possible.",
                                "Information",
                                MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.Close();
            } // els
        }
Esempio n. 7
0
 private void mniUserGuide_Click(object sender, EventArgs e)
 {
     WebSiteUtils.OpenUserGuidePage();
 }
Esempio n. 8
0
 private void mniProductWebsite_Click(object sender, EventArgs e)
 {
     WebSiteUtils.OpenProductPage();
 }
Esempio n. 9
0
 private void mniReport_Click(object sender, EventArgs e)
 {
     WebSiteUtils.OpenBugFeaturePage();
 }