private void frm_productkey_Load(object sender, EventArgs e) { if (Properties.Settings.Default.Product_Key.Equals("Yes")) { splashscreen s = new splashscreen(); s.Show(); this.Hide(); } }
private void btn_enregistrer_Click(object sender, EventArgs e) { if (txt_product_key.Text != "") { if (txt_product_key.Text == Properties.Settings.Default.Password) { splashscreen s = new splashscreen(); s.Show(); this.Hide(); Properties.Settings.Default.Product_Key.Replace("No", "Yes"); } else { MessageBox.Show(this, "Votre clé n'est pas authentique!", "Authentification", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show(this, "Completer la clé d'activation!", "Authentification", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }