Compare commits

..
2 Commits
Author SHA1 Message Date
sc 8793b264d8 crc 2024-03-29 22:37:22 +08:00
sc 537c89677e 添加crc 2024-03-29 22:36:39 +08:00
+4
View File
@@ -105,6 +105,10 @@ namespace SUNLIGHT_CDKEY
private void Button_Click(object sender, RoutedEventArgs e)
{
string a, b;
a= sn_id.Text.Substring(0, 6);
b=(2255-y).ToString()+(255-m).ToString()+(255-d).ToString();
cdk.Text = a + b + CRCcheck16.ToCRC16(CRCcheck16.StringToHexByte(b), true);
}