📄 license.cs
字号:
this.d.ag = true;
}
break;
}
if (this.d.ag)
{
this.d.ah = this.d.b9;
}
}
Label_28B6:
if (!this.d.ag)
{
this.d.a(0x2330L, this.d.l("D:'\x00021RB44K_L65#kf@:"), "GENERAL");
}
goto Label_297B;
Label_28F1:
if ((((this.a.Length == 0) | (this.b.Length == 0)) | (this.c.Length == 0)) & (((this.b.Length != 0) | (this.a.Length != 0)) | (this.c.Length != 0)))
{
this.d.a(0x2331L, this.d.l("odpy\x007f:[\fbS7$c-: OP:M&nXr7|9"), "GENERAL");
}
Label_297B:
if (A_0)
{
if (!f.e)
{
if ((this.d.ai != this.d.cb) & (str != "DD8AEDBF792091BAEB89D0AA2CCBA8D4"))
{
f.f = new a(this.d.ag, this.a, this.c, this.d.p, this.d.ah, this.d.b8, this.d.b9, this.d.ca);
f.e = f.f.f();
}
}
else if (this.d.ai == this.d.cb)
{
if (f.f != null)
{
f.f.h();
f.f = null;
}
f.e = false;
}
else if (f.f != null)
{
f.f.a(this.d.ag, this.a, this.c, this.d.p, this.d.ah, this.d.b8, this.d.b9, this.d.ca);
}
}
this.d.af = true;
ag = this.d.ag;
}
catch (Exception exception3)
{
ProjectData.SetProjectError(exception3);
Exception exception2 = exception3;
this.d.a.b("[License:3] " + exception2.Message);
ag = false;
ProjectData.ClearProjectError();
}
return ag;
}
private string a(string A_0)
{
string str2 = "";
try
{
UnicodeEncoding encoding = new UnicodeEncoding();
MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();
str2 = BitConverter.ToString(provider.ComputeHash(encoding.GetBytes(A_0))).Replace("-", "");
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.d.a.b("[License:2] " + exception.Message);
str2 = "";
ProjectData.ClearProjectError();
}
return str2;
}
private string a(string A_0, string A_1, string A_2, double A_3, int A_4, string A_5)
{
string str4 = "";
string str2 = "";
string str3 = "";
string str5 = "";
try
{
str3 = "";
str2 = "";
str5 = "43210ABCDEFGHJKLMNPQRTUVWXY98765";
if (!(((((A_0.Length != 0) & (A_1.Length != 0)) & (A_2.Length != 0)) & (A_3 >= 1.0)) & (A_4 >= 0)))
{
return str3;
}
str4 = this.a(A_0 + A_1.ToUpper() + A_2.ToUpper() + A_3.ToString() + A_4.ToString() + A_5);
if (str4.Length < 0x20)
{
return str3;
}
int num = 1;
do
{
long num2 = Conversions.ToLong("&H" + str4.Substring(num - 1, 2)) % 0x20L;
str2 = str5.Substring((int) num2, 1) + str2;
num += 2;
}
while (num <= 0x20);
str3 = str2.Substring(4, 4) + "-" + str2.Substring(12, 4) + "-" + str2.Substring(0, 4) + "-" + str2.Substring(8, 4);
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.d.a.b("[License:1] " + exception.Message);
str3 = "";
ProjectData.ClearProjectError();
}
return str3;
}
public void Dispose()
{
this.Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if ((!this.e && disposing) && (f.f != null))
{
f.f.h();
f.f = null;
f.e = false;
}
this.e = true;
}
protected override void Finalize()
{
this.Dispose(false);
base.Finalize();
}
public string Company
{
get
{
this.d.av();
return this.a;
}
set
{
this.d.av();
this.d.ag = false;
this.d.af = false;
if (value == null)
{
value = "";
}
this.a = value.Trim().ToUpper();
this.a();
}
}
public bool IsLicensed
{
get
{
this.d.av();
this.a(true);
bool ag = this.d.ag;
this.d.av();
this.a();
return ag;
}
}
public string Key
{
get
{
this.d.av();
return this.b;
}
set
{
this.d.av();
this.d.ag = false;
this.d.af = false;
if (value == null)
{
value = "";
}
this.b = value.Trim().ToUpper();
this.a();
}
}
public string LicenseType
{
get
{
this.d.av();
return this.c;
}
set
{
this.d.av();
this.d.ag = false;
this.d.af = false;
if (value == null)
{
value = "";
}
this.c = value.Trim().ToUpper();
this.a();
}
}
public string mCore.ILicense.Company
{
get
{
this.d.av();
return this.a;
}
set
{
this.d.av();
this.d.ag = false;
this.d.af = false;
if (value == null)
{
value = "";
}
this.a = value.Trim().ToUpper();
this.a();
}
}
public bool mCore.ILicense.IsLicensed
{
get
{
this.d.av();
this.a(true);
bool ag = this.d.ag;
this.d.av();
this.a();
return ag;
}
}
public string mCore.ILicense.Key
{
get
{
this.d.av();
return this.b;
}
set
{
this.d.av();
this.d.ag = false;
this.d.af = false;
if (value == null)
{
value = "";
}
this.b = value.Trim().ToUpper();
this.a();
}
}
public string mCore.ILicense.LicenseType
{
get
{
this.d.av();
return this.c;
}
set
{
this.d.av();
this.d.ag = false;
this.d.af = false;
if (value == null)
{
value = "";
}
this.c = value.Trim().ToUpper();
this.a();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -