添加crc

This commit is contained in:
sc committed 2024-03-29 22:33:19 +08:00
commit cc3c806c97
1 file changed
-5
-5
View File
@@ -105,11 +105,6 @@ namespace SUNLIGHT_CDKEY
private void Button_Click(object sender, RoutedEventArgs e) private void Button_Click(object sender, RoutedEventArgs e)
{ {
string a,b;
a = sn_id.Text.Substring(0, 6);
b = (255-y).ToString()+ (255 - m).ToString()+(255 - d).ToString();
cdk.Text = a + b + CRCcheck16.ToCRC16(CRCcheck16.StringToHexByte(b), true); cdk.Text = a + b + CRCcheck16.ToCRC16(CRCcheck16.StringToHexByte(b), true);
} }