Compare commits
4
Commits
6b06bb643e
..
CDKEY
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e9fb61ff0 | ||
|
|
1a7669f1bf | ||
|
|
4e40658493 | ||
|
|
608f121b5d |
+1
-11
@@ -109,29 +109,19 @@ namespace SUNLIGHT_CDKEY
|
||||
string a;
|
||||
string b, my, mm, md;
|
||||
|
||||
if (sn_id.Text.Length <6)
|
||||
if (sn_id.Text.Length <6)//id字节长度大于6有效
|
||||
{
|
||||
sn_id.BorderBrush = new SolidColorBrush(System.Windows.Media.Color.FromArgb(255, 255,0, 0));
|
||||
return;
|
||||
}else sn_id.BorderBrush = new SolidColorBrush(System.Windows.Media.Color.FromArgb(255, 255, 255, 255));
|
||||
|
||||
a= sn_id.Text.Substring(0, 6);
|
||||
<<<<<<<<< Temporary merge branch 1
|
||||
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;
|
||||
|
||||
|
||||
a= sn_id.Text.Substring(0, 6);
|
||||
b=(2255-y).ToString()+(255-m).ToString()+(255-d).ToString();
|
||||
|
||||
>>>>>>>>> Temporary merge branch 2
|
||||
|
||||
cdk.Text = a + b + CRCcheck16.ToCRC16(CRCcheck16.StringToHexByte(b), true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user