static void Test3() { //配置对象 SerialKeyConfiguration skc = new SerialKeyConfiguration(); //生成key对象 Generate CreateAKey = new Generate(skc); // string trialKey = CreateAKey.doKey(30); //试用版30天期限 //创建1个有时间限制的试用版 skc.Features = new bool[8] { true, false, false, false,false, false,false ,false }; // 当然这里的版本可以自定义,只要你自己认识就行了 }
public string GetNewCDKey(int daysLeft, DateTime creationDate, int machineCode, string secretPhase, bool foreverWork = false) { SKGL.SerialKeyConfiguration skc = new SKGL.SerialKeyConfiguration(); if (foreverWork == true) { skc.Features[0] = true; } SKGL.Generate generate = new SKGL.Generate(skc); generate.secretPhase = secretPhase; return(generate.doKey(daysLeft, creationDate, machineCode)); }
public Validate(SerialKeyConfiguration serialKeyConfiguration) { _skc = serialKeyConfiguration; }
public Generate(SerialKeyConfiguration _serialKeyConfiguration) { skc = _serialKeyConfiguration; }
public Generate(SerialKeyConfiguration serialKeyConfiguration) { _skc = serialKeyConfiguration; }
public Generate() { _skc = new SerialKeyConfiguration(); }
public Validate(SerialKeyConfiguration _serialKeyConfiguration) { skc = _serialKeyConfiguration; }
public Generate(SerialKeyConfiguration _serialKeyConfiguration) { skc = _serialKeyConfiguration; }
public Validate(SerialKeyConfiguration _serialKeyConfiguration) { skc = _serialKeyConfiguration; }
public string GetMachineCode() { SKGL.SerialKeyConfiguration skc = new SKGL.SerialKeyConfiguration(); SKGL.Generate generate = new SKGL.Generate(skc); return(generate.MachineCode.ToString()); }