请各位帮忙看一下这段代码应该怎么修改
// Token: 0x0200068E RID: 1678public class bassDemo
{
// Token: 0x06002B31 RID: 11057 RVA: 0x0004F064 File Offset: 0x0004D264
public bassDemo(DateTime msgDate, DateTime EndDate)
{
Class66.Hposf7VzlvwOh();
base..ctor();
appSetting.ReadSetting(ref Class57.appSetting_0);
string xmlPath = "DXP.dat";
object dxpdemoReg_ = DemoAndHardDisk.dxpdemoReg_0;
Type typeFromHandle = typeof(DemoAndHardDisk.DXPDemoReg);
string text = null;
XMLSerializ.smethod_1(xmlPath, ref dxpdemoReg_, typeFromHandle, ref text);
DemoAndHardDisk.dxpdemoReg_0 = (DemoAndHardDisk.DXPDemoReg)dxpdemoReg_;
if (DemoAndHardDisk.dxpdemoReg_0 == null)
{
DemoAndHardDisk.dxpdemoReg_0 = new DemoAndHardDisk.DXPDemoReg();
DemoAndHardDisk.dxpdemoReg_0.msgDate = msgDate;
DemoAndHardDisk.dxpdemoReg_0.endDate = EndDate;
}
DemoAndHardDisk.bool_1 = DemoAndHardDisk.HardWare.smethod_0();
if (DemoAndHardDisk.dxpdemoReg_0.method_0())
{
if (DateTime.Compare(DemoAndHardDisk.dxpdemoReg_0.msgDate, DateTime.MinValue) != 0)
{
msgDate = DemoAndHardDisk.dxpdemoReg_0.msgDate;
}
if (DateTime.Compare(DemoAndHardDisk.dxpdemoReg_0.endDate, DateTime.MinValue) != 0)
{
EndDate = DemoAndHardDisk.dxpdemoReg_0.endDate;
}
if (DateTime.Compare(DateAndTime.Today, Class57.appSetting_0.RunDate) < 0)
{
ProjectData.EndApp();
return;
}
Class57.appSetting_0.RunDate = DateAndTime.Today;
if (DateTime.Compare(DateAndTime.Today, EndDate) > 0)
{
appSetting.WriteSetting(Class57.appSetting_0);
DemoAndHardDisk.bool_0 = true;
Interaction.MsgBox(Operators.ConcatenateObject("软件试用已到期!软件编号:", DemoAndHardDisk.HardWare.smethod_3()), MsgBoxStyle.OkOnly, Class57.appSetting_0.myTitle);
ProjectData.EndApp();
return;
}
if (DateTime.Compare(DateAndTime.Today, msgDate) > 0)
{
appSetting.WriteSetting(Class57.appSetting_0);
Interaction.MsgBox(Operators.ConcatenateObject("软件试用将于【" + EndDate.ToLongDateString() + "】到期!软件编号:", DemoAndHardDisk.HardWare.smethod_3()), MsgBoxStyle.OkOnly, Class57.appSetting_0.myTitle);
}
}
}
}
是否修改这段代码:if (DateTime.Compare(DateAndTime.Today, EndDate) > 0),直接用dnspy编译出错。 public DXPDemoReg()
{
Class66.Hposf7VzlvwOh();
base..ctor();
this.msgDate = DateTime.MinValue;
this.regSN = "0000";
this.Demo = true;
this.endDate = DateTime.MinValue;
Random random = new Random();
checked
{
this.regSN = Conversions.ToString(decimal.Multiply(new decimal((ulong)random.Next()), 9m));
this.DemoReg1 = Convert.ToUInt64(decimal.Multiply(new decimal((ulong)random.Next()), 9m));
this.demoreg2 = Convert.ToUInt64(decimal.Multiply(new decimal((ulong)random.Next()), 9m));
}
}
这段代码是否是注册码?求解 改this.endDate = DateTime.MaxValue;试试
改this.endDate = DateTime.MaxValue;试试
改完编译出错,小白不懂,在怎么操作!
页:
[1]