public bool LicenseCheck() { string computerInfo = ComputerInfo.GetComputerInfo(); encryptComputer = new Encryption().EncryptString(computerInfo); if (CheckRegist() == false) { RegistFile.WriteComputerInfoFile(encryptComputer); MessageBox.Show("Sorry, No license!!!"); return(false); } return(true); }
private bool CheckRegistData(string key) { if (RegistFile.ExistRegistInfofile() == false) { return(false); } else { string info = RegistFile.ReadRegistFile(); var helper = new Encryption(EncryptionKeyEnum.KeyB); string registData = helper.DecryptString(info); if (key == registData) { return(true); } else { return(false); } } }