private void simpleButton1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txt_activations.Text)) { MessageBox.Show("Please Enter Activations Keys...", "Informations", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (MicroVisionSerial.Encryption.Activation.CheckActivationKey(txt_serial.Text, txt_activations.Text) == true) { //Regrist activations value in system regestry....... if (regisactvations() == true) { MessageBox.Show("Activations Complete", "Informations", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Hide(); frm_login frm = new frm_login(); frm.ShowDialog(); this.Close(); } else { MessageBox.Show("Error in activations please contact programmer", "Informations", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } else { MessageBox.Show("Invaild Keys", "Informations", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.Hide(); frm_login frm = new frm_login(); frm.ShowDialog(); this.Close(); }