Beispiel #1
0
 private void frmTrail_Load(object sender, EventArgs e)
 {
     label2.Text = Convert.ToString(Properties.Settings.Default.Trail);
     if (Properties.Settings.Default.TrailE == "yes")
     {
         frmSplash s1 = new frmSplash();
         s1.Show();
         this.Hide();
     }
 }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            String key = Microsoft.VisualBasic.Interaction.InputBox("Please Enter Serial Key", "Activate Product", "");

            if (key == "123-321-123-123487-564")
            {
                Properties.Settings.Default.TrailE = "yes";
                Properties.Settings.Default.Save();
                frmSplash s1 = new frmSplash();
                s1.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Invalid Serial Key?", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Close();
            }
        }
Beispiel #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.Trail < 1)
     {
         Properties.Settings.Default.Trail = 0;
         Properties.Settings.Default.Save();
         label2.Text = "0";
         MessageBox.Show("Trail expired, Please Register!", "Expired", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         frmSplash sp = new frmSplash();
         Properties.Settings.Default.Trail = Properties.Settings.Default.Trail - 1;
         Properties.Settings.Default.Save();
         this.Hide();
         sp.ShowDialog();
     }
 }