public FRM_Setting(FRM_Main _Main) { InitializeComponent(); this.fRM_Main = _Main; // Check si le fichier licence.key existe if (File.Exists(Application.StartupPath + "/setting/licence.key")) { licence = new Licence(); licence.ShowKey(); TXT_licenceKey.Text = licence.GetKey(); LBL_idProduct.Text = "ID de Produit : " + licence.GetIdProduct().ToString(); LBL_status.Text = "Etat : " + licence.GetEtat(); } }
private void BT_Saving_Click(object sender, EventArgs e) { licence = new Licence(TXT_licenceKey.Text); licence.CheckLicence(); }