Ejemplo n.º 1
0
        private void imgLicenseKey_Click(object sender, EventArgs e)
        {
            frmRegistration RegWindow = new frmRegistration();

            RegWindow.ShowDialog();
            RegWindow.Dispose();
            MessageBox.Show("Please restart this software package to complete the registration", "Restart Required", MessageBoxButtons.OK, MessageBoxIcon.Information);
            Application.Exit();
        }
Ejemplo n.º 2
0
        private void InvokeRegistration()
        {
            DialogResult RegisterResponse = MessageBox.Show("Please Register This Software Before Using It", "Registration Required", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);

            if (RegisterResponse == DialogResult.OK)
            {
                //Continue with the registration process.
                frmRegistration RegWindow = new frmRegistration();
                RegWindow.ShowDialog();
                RegWindow.Dispose();
                MessageBox.Show("Please restart this software package to complete the registration", "Restart Required", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Application.Exit();
            }
            else
            {
                //User rejected the registration. Force kill the application
                MessageBox.Show("This Software Cannot be Used Without a Valid License.", "Registration Required", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Application.Exit();
            }
        }