private void Antuorization() { int num; ISACTIVED = true; string str = "1B3F1E4B5F1B3F5F80300206A7"; Encode encode = new Encode(); string hardDiskID = encode.GetHardDiskID(); string cPUID = encode.GetCPUID(); str = str + encode.GetSHA1MachineCode(hardDiskID + cPUID); for (num = 0; num < 0x18; num++) { ConstantValues.TPOACTIVED[num] = false; ConstantValues.TPOEXPLANATION[num] = false; } XMLFileReader reader = new XMLFileReader("license.xml"); for (num = 1; num < 0x1c; num++) { string attr = reader.GetAttr("//licenses/license[@name='TPO" + num.ToString() + "']/@value"); try { string str5 = encode.Decode(attr); if (str5.Contains(str + "TPO" + num.ToString())) { ConstantValues.TPOACTIVED[num] = true; } if (str5.Contains("EXP")) { ConstantValues.TPOEXPLANATION[num] = true; } } catch { } } ConstantValues.TPOACTIVED[1] = true; ConstantValues.TPOACTIVED[0x12] = true; ConstantValues.TPOEXPLANATION[1] = true; ConstantValues.TPOEXPLANATION[0x12] = true; }