Compare commits

...
2 Commits
Author SHA1 Message Date
sc b8878d4223 KEY 2024-03-29 23:02:22 +08:00
sc eadb411c73 CDKEY 2024-03-29 23:01:14 +08:00
+6 -2
View File
@@ -111,8 +111,12 @@ namespace SUNLIGHT_CDKEY
if (sn_id.Text == "") return;
a= sn_id.Text.Substring(0, 6);
b=(2255-y).ToString()+(255-m).ToString()+(255-d).ToString();
>>>>>>>>> Temporary merge branch 2
my = Convert.ToString(Convert.ToInt32(2255 - y), 16).ToUpper();
mm = Convert.ToString(Convert.ToInt32(255 - m), 16).ToUpper();
md = Convert.ToString(Convert.ToInt32(255-d), 16).ToUpper();
b=my+mm+md;
cdk.Text = a + b + CRCcheck16.ToCRC16(CRCcheck16.StringToHexByte(b), true);
}