checking in all the old panacean stuff
This commit is contained in:
873
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/FormMain.Designer.cs
generated
vendored
Normal file
873
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/FormMain.Designer.cs
generated
vendored
Normal file
@@ -0,0 +1,873 @@
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
partial class FormMain
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.timerUpdateUnits = new System.Windows.Forms.Timer(this.components);
|
||||
this.btnSortArray = new System.Windows.Forms.Button();
|
||||
this.btnShowRegistation = new System.Windows.Forms.Button();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.btnOk = new System.Windows.Forms.Button();
|
||||
this.lProtectionDate = new System.Windows.Forms.Label();
|
||||
this.label26 = new System.Windows.Forms.Label();
|
||||
this.lLaunchesLeft = new System.Windows.Forms.Label();
|
||||
this.lLaunchesTotal = new System.Windows.Forms.Label();
|
||||
this.lTrialDaysLeft = new System.Windows.Forms.Label();
|
||||
this.lTrialDaysTotal = new System.Windows.Forms.Label();
|
||||
this.label29 = new System.Windows.Forms.Label();
|
||||
this.label27 = new System.Windows.Forms.Label();
|
||||
this.label21 = new System.Windows.Forms.Label();
|
||||
this.label20 = new System.Windows.Forms.Label();
|
||||
this.btnRenew = new System.Windows.Forms.Button();
|
||||
this.btnRegister = new System.Windows.Forms.Button();
|
||||
this.tbRenewalCode = new System.Windows.Forms.TextBox();
|
||||
this.tbLicenseCode = new System.Windows.Forms.TextBox();
|
||||
this.lCurrentRegistrationDate = new System.Windows.Forms.Label();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.lFirstRegistrationDate = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.lOrderDate = new System.Windows.Forms.Label();
|
||||
this.lCurrentActivationDate = new System.Windows.Forms.Label();
|
||||
this.label16 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.lCurrentPPVersion = new System.Windows.Forms.Label();
|
||||
this.lCustomerEMail = new System.Windows.Forms.Label();
|
||||
this.lCustomerName = new System.Windows.Forms.Label();
|
||||
this.label25 = new System.Windows.Forms.Label();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.lIntelliProtectorVersion = new System.Windows.Forms.Label();
|
||||
this.lSupportExpirationPPVersion = new System.Windows.Forms.Label();
|
||||
this.lSupportExpirationDaysLeft = new System.Windows.Forms.Label();
|
||||
this.lLicenseExpirationDaysLeft = new System.Windows.Forms.Label();
|
||||
this.lSupportExpirationDate = new System.Windows.Forms.Label();
|
||||
this.lLicenseExpirationDate = new System.Windows.Forms.Label();
|
||||
this.lSupportExpirationDaysTotal = new System.Windows.Forms.Label();
|
||||
this.lLicenseExpirationDaysTotal = new System.Windows.Forms.Label();
|
||||
this.lBuyNowLink = new System.Windows.Forms.Label();
|
||||
this.lRenewLicenseLink = new System.Windows.Forms.Label();
|
||||
this.lLicenseCode = new System.Windows.Forms.Label();
|
||||
this.lLicenseType = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.label35 = new System.Windows.Forms.Label();
|
||||
this.label31 = new System.Windows.Forms.Label();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label19 = new System.Windows.Forms.Label();
|
||||
this.label24 = new System.Windows.Forms.Label();
|
||||
this.label18 = new System.Windows.Forms.Label();
|
||||
this.label23 = new System.Windows.Forms.Label();
|
||||
this.label39 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.label37 = new System.Windows.Forms.Label();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.lIsProtected = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.lTrialTimeUnitsLeft = new System.Windows.Forms.Label();
|
||||
this.lTrialTimeUnitsTotal = new System.Windows.Forms.Label();
|
||||
this.lIsRegistered = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.btnRegistrationByEmail = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(470, 513);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(229, 13);
|
||||
this.label1.TabIndex = 5;
|
||||
this.label1.Text = "IntelliProtector sample. Visual Studio 2005.NET";
|
||||
//
|
||||
// timerUpdateUnits
|
||||
//
|
||||
this.timerUpdateUnits.Enabled = true;
|
||||
this.timerUpdateUnits.Interval = 30000;
|
||||
this.timerUpdateUnits.Tick += new System.EventHandler(this.timerUpdateUnits_Tick);
|
||||
//
|
||||
// btnSortArray
|
||||
//
|
||||
this.btnSortArray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSortArray.Location = new System.Drawing.Point(547, 119);
|
||||
this.btnSortArray.Name = "btnSortArray";
|
||||
this.btnSortArray.Size = new System.Drawing.Size(153, 23);
|
||||
this.btnSortArray.TabIndex = 73;
|
||||
this.btnSortArray.Text = "Sort array (encrypted call)";
|
||||
this.btnSortArray.UseVisualStyleBackColor = true;
|
||||
this.btnSortArray.Click += new System.EventHandler(this.btnSortArray_Click);
|
||||
//
|
||||
// btnShowRegistation
|
||||
//
|
||||
this.btnShowRegistation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnShowRegistation.Location = new System.Drawing.Point(547, 89);
|
||||
this.btnShowRegistation.Name = "btnShowRegistation";
|
||||
this.btnShowRegistation.Size = new System.Drawing.Size(153, 23);
|
||||
this.btnShowRegistation.TabIndex = 72;
|
||||
this.btnShowRegistation.Text = "Show Registration Window";
|
||||
this.btnShowRegistation.UseVisualStyleBackColor = true;
|
||||
this.btnShowRegistation.Click += new System.EventHandler(this.btnShowRegistation_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnCancel.Location = new System.Drawing.Point(624, 41);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnCancel.TabIndex = 71;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// btnOk
|
||||
//
|
||||
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOk.Location = new System.Drawing.Point(624, 12);
|
||||
this.btnOk.Name = "btnOk";
|
||||
this.btnOk.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnOk.TabIndex = 70;
|
||||
this.btnOk.Text = "Ok";
|
||||
this.btnOk.UseVisualStyleBackColor = true;
|
||||
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
|
||||
//
|
||||
// lProtectionDate
|
||||
//
|
||||
this.lProtectionDate.Location = new System.Drawing.Point(141, 146);
|
||||
this.lProtectionDate.Name = "lProtectionDate";
|
||||
this.lProtectionDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lProtectionDate.TabIndex = 135;
|
||||
this.lProtectionDate.Text = "date";
|
||||
//
|
||||
// label26
|
||||
//
|
||||
this.label26.AutoSize = true;
|
||||
this.label26.Location = new System.Drawing.Point(12, 146);
|
||||
this.label26.Name = "label26";
|
||||
this.label26.Size = new System.Drawing.Size(82, 13);
|
||||
this.label26.TabIndex = 134;
|
||||
this.label26.Text = "Protection date:";
|
||||
//
|
||||
// lLaunchesLeft
|
||||
//
|
||||
this.lLaunchesLeft.AutoSize = true;
|
||||
this.lLaunchesLeft.Location = new System.Drawing.Point(119, 269);
|
||||
this.lLaunchesLeft.Name = "lLaunchesLeft";
|
||||
this.lLaunchesLeft.Size = new System.Drawing.Size(13, 13);
|
||||
this.lLaunchesLeft.TabIndex = 131;
|
||||
this.lLaunchesLeft.Text = "0";
|
||||
//
|
||||
// lLaunchesTotal
|
||||
//
|
||||
this.lLaunchesTotal.AutoSize = true;
|
||||
this.lLaunchesTotal.Location = new System.Drawing.Point(119, 251);
|
||||
this.lLaunchesTotal.Name = "lLaunchesTotal";
|
||||
this.lLaunchesTotal.Size = new System.Drawing.Size(13, 13);
|
||||
this.lLaunchesTotal.TabIndex = 130;
|
||||
this.lLaunchesTotal.Text = "0";
|
||||
//
|
||||
// lTrialDaysLeft
|
||||
//
|
||||
this.lTrialDaysLeft.AutoSize = true;
|
||||
this.lTrialDaysLeft.Location = new System.Drawing.Point(119, 227);
|
||||
this.lTrialDaysLeft.Name = "lTrialDaysLeft";
|
||||
this.lTrialDaysLeft.Size = new System.Drawing.Size(13, 13);
|
||||
this.lTrialDaysLeft.TabIndex = 133;
|
||||
this.lTrialDaysLeft.Text = "0";
|
||||
//
|
||||
// lTrialDaysTotal
|
||||
//
|
||||
this.lTrialDaysTotal.AutoSize = true;
|
||||
this.lTrialDaysTotal.Location = new System.Drawing.Point(119, 191);
|
||||
this.lTrialDaysTotal.Name = "lTrialDaysTotal";
|
||||
this.lTrialDaysTotal.Size = new System.Drawing.Size(13, 13);
|
||||
this.lTrialDaysTotal.TabIndex = 132;
|
||||
this.lTrialDaysTotal.Text = "0";
|
||||
//
|
||||
// label29
|
||||
//
|
||||
this.label29.AutoSize = true;
|
||||
this.label29.Location = new System.Drawing.Point(12, 269);
|
||||
this.label29.Name = "label29";
|
||||
this.label29.Size = new System.Drawing.Size(93, 13);
|
||||
this.label29.TabIndex = 127;
|
||||
this.label29.Text = "Trial launches left:";
|
||||
//
|
||||
// label27
|
||||
//
|
||||
this.label27.AutoSize = true;
|
||||
this.label27.Location = new System.Drawing.Point(12, 251);
|
||||
this.label27.Name = "label27";
|
||||
this.label27.Size = new System.Drawing.Size(99, 13);
|
||||
this.label27.TabIndex = 126;
|
||||
this.label27.Text = "Trial launches total:";
|
||||
//
|
||||
// label21
|
||||
//
|
||||
this.label21.AutoSize = true;
|
||||
this.label21.Location = new System.Drawing.Point(12, 227);
|
||||
this.label21.Name = "label21";
|
||||
this.label21.Size = new System.Drawing.Size(72, 13);
|
||||
this.label21.TabIndex = 129;
|
||||
this.label21.Text = "Trial days left:";
|
||||
//
|
||||
// label20
|
||||
//
|
||||
this.label20.AutoSize = true;
|
||||
this.label20.Location = new System.Drawing.Point(12, 191);
|
||||
this.label20.Name = "label20";
|
||||
this.label20.Size = new System.Drawing.Size(78, 13);
|
||||
this.label20.TabIndex = 128;
|
||||
this.label20.Text = "Trial days total:";
|
||||
//
|
||||
// btnRenew
|
||||
//
|
||||
this.btnRenew.Location = new System.Drawing.Point(416, 451);
|
||||
this.btnRenew.Name = "btnRenew";
|
||||
this.btnRenew.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnRenew.TabIndex = 117;
|
||||
this.btnRenew.Text = "Renew";
|
||||
this.btnRenew.UseVisualStyleBackColor = true;
|
||||
this.btnRenew.Click += new System.EventHandler(this.btnRenew_Click);
|
||||
//
|
||||
// btnRegister
|
||||
//
|
||||
this.btnRegister.Location = new System.Drawing.Point(417, 425);
|
||||
this.btnRegister.Name = "btnRegister";
|
||||
this.btnRegister.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnRegister.TabIndex = 116;
|
||||
this.btnRegister.Text = "Register";
|
||||
this.btnRegister.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tbRenewalCode
|
||||
//
|
||||
this.tbRenewalCode.Location = new System.Drawing.Point(109, 451);
|
||||
this.tbRenewalCode.Name = "tbRenewalCode";
|
||||
this.tbRenewalCode.Size = new System.Drawing.Size(301, 20);
|
||||
this.tbRenewalCode.TabIndex = 115;
|
||||
//
|
||||
// tbLicenseCode
|
||||
//
|
||||
this.tbLicenseCode.Location = new System.Drawing.Point(110, 425);
|
||||
this.tbLicenseCode.Name = "tbLicenseCode";
|
||||
this.tbLicenseCode.Size = new System.Drawing.Size(301, 20);
|
||||
this.tbLicenseCode.TabIndex = 114;
|
||||
//
|
||||
// lCurrentRegistrationDate
|
||||
//
|
||||
this.lCurrentRegistrationDate.Location = new System.Drawing.Point(141, 128);
|
||||
this.lCurrentRegistrationDate.Name = "lCurrentRegistrationDate";
|
||||
this.lCurrentRegistrationDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lCurrentRegistrationDate.TabIndex = 93;
|
||||
this.lCurrentRegistrationDate.Text = "date";
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(12, 128);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(122, 13);
|
||||
this.label12.TabIndex = 92;
|
||||
this.label12.Text = "Current registration date:";
|
||||
//
|
||||
// lFirstRegistrationDate
|
||||
//
|
||||
this.lFirstRegistrationDate.Location = new System.Drawing.Point(141, 109);
|
||||
this.lFirstRegistrationDate.Name = "lFirstRegistrationDate";
|
||||
this.lFirstRegistrationDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lFirstRegistrationDate.TabIndex = 91;
|
||||
this.lFirstRegistrationDate.Text = "date";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(12, 109);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(107, 13);
|
||||
this.label10.TabIndex = 90;
|
||||
this.label10.Text = "First registration date:";
|
||||
//
|
||||
// lOrderDate
|
||||
//
|
||||
this.lOrderDate.Location = new System.Drawing.Point(141, 71);
|
||||
this.lOrderDate.Name = "lOrderDate";
|
||||
this.lOrderDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lOrderDate.TabIndex = 88;
|
||||
this.lOrderDate.Text = "date";
|
||||
//
|
||||
// lCurrentActivationDate
|
||||
//
|
||||
this.lCurrentActivationDate.Location = new System.Drawing.Point(141, 90);
|
||||
this.lCurrentActivationDate.Name = "lCurrentActivationDate";
|
||||
this.lCurrentActivationDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lCurrentActivationDate.TabIndex = 89;
|
||||
this.lCurrentActivationDate.Text = "date";
|
||||
//
|
||||
// label16
|
||||
//
|
||||
this.label16.AutoSize = true;
|
||||
this.label16.Location = new System.Drawing.Point(12, 71);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new System.Drawing.Size(60, 13);
|
||||
this.label16.TabIndex = 86;
|
||||
this.label16.Text = "Order date:";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(12, 90);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(117, 13);
|
||||
this.label7.TabIndex = 87;
|
||||
this.label7.Text = "Current activation date:";
|
||||
//
|
||||
// lCurrentPPVersion
|
||||
//
|
||||
this.lCurrentPPVersion.Location = new System.Drawing.Point(341, 43);
|
||||
this.lCurrentPPVersion.Name = "lCurrentPPVersion";
|
||||
this.lCurrentPPVersion.Size = new System.Drawing.Size(131, 13);
|
||||
this.lCurrentPPVersion.TabIndex = 84;
|
||||
this.lCurrentPPVersion.Text = "1.0";
|
||||
//
|
||||
// lCustomerEMail
|
||||
//
|
||||
this.lCustomerEMail.Location = new System.Drawing.Point(341, 26);
|
||||
this.lCustomerEMail.Name = "lCustomerEMail";
|
||||
this.lCustomerEMail.Size = new System.Drawing.Size(209, 13);
|
||||
this.lCustomerEMail.TabIndex = 85;
|
||||
this.lCustomerEMail.Text = "customer e-mail";
|
||||
//
|
||||
// lCustomerName
|
||||
//
|
||||
this.lCustomerName.Location = new System.Drawing.Point(341, 9);
|
||||
this.lCustomerName.Name = "lCustomerName";
|
||||
this.lCustomerName.Size = new System.Drawing.Size(209, 13);
|
||||
this.lCustomerName.TabIndex = 83;
|
||||
this.lCustomerName.Text = "customer name";
|
||||
//
|
||||
// label25
|
||||
//
|
||||
this.label25.AutoSize = true;
|
||||
this.label25.Location = new System.Drawing.Point(250, 43);
|
||||
this.label25.Name = "label25";
|
||||
this.label25.Size = new System.Drawing.Size(84, 13);
|
||||
this.label25.TabIndex = 81;
|
||||
this.label25.Text = "Product version:";
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(250, 26);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(84, 13);
|
||||
this.label13.TabIndex = 82;
|
||||
this.label13.Text = "Customer e-mail:";
|
||||
//
|
||||
// lIntelliProtectorVersion
|
||||
//
|
||||
this.lIntelliProtectorVersion.AutoSize = true;
|
||||
this.lIntelliProtectorVersion.Location = new System.Drawing.Point(129, 485);
|
||||
this.lIntelliProtectorVersion.Name = "lIntelliProtectorVersion";
|
||||
this.lIntelliProtectorVersion.Size = new System.Drawing.Size(41, 13);
|
||||
this.lIntelliProtectorVersion.TabIndex = 125;
|
||||
this.lIntelliProtectorVersion.Text = "version";
|
||||
//
|
||||
// lSupportExpirationPPVersion
|
||||
//
|
||||
this.lSupportExpirationPPVersion.AutoSize = true;
|
||||
this.lSupportExpirationPPVersion.Location = new System.Drawing.Point(481, 309);
|
||||
this.lSupportExpirationPPVersion.Name = "lSupportExpirationPPVersion";
|
||||
this.lSupportExpirationPPVersion.Size = new System.Drawing.Size(22, 13);
|
||||
this.lSupportExpirationPPVersion.TabIndex = 111;
|
||||
this.lSupportExpirationPPVersion.Text = "1.5";
|
||||
//
|
||||
// lSupportExpirationDaysLeft
|
||||
//
|
||||
this.lSupportExpirationDaysLeft.AutoSize = true;
|
||||
this.lSupportExpirationDaysLeft.Location = new System.Drawing.Point(481, 344);
|
||||
this.lSupportExpirationDaysLeft.Name = "lSupportExpirationDaysLeft";
|
||||
this.lSupportExpirationDaysLeft.Size = new System.Drawing.Size(13, 13);
|
||||
this.lSupportExpirationDaysLeft.TabIndex = 110;
|
||||
this.lSupportExpirationDaysLeft.Text = "0";
|
||||
//
|
||||
// lLicenseExpirationDaysLeft
|
||||
//
|
||||
this.lLicenseExpirationDaysLeft.AutoSize = true;
|
||||
this.lLicenseExpirationDaysLeft.Location = new System.Drawing.Point(157, 326);
|
||||
this.lLicenseExpirationDaysLeft.Name = "lLicenseExpirationDaysLeft";
|
||||
this.lLicenseExpirationDaysLeft.Size = new System.Drawing.Size(13, 13);
|
||||
this.lLicenseExpirationDaysLeft.TabIndex = 109;
|
||||
this.lLicenseExpirationDaysLeft.Text = "0";
|
||||
//
|
||||
// lSupportExpirationDate
|
||||
//
|
||||
this.lSupportExpirationDate.AutoSize = true;
|
||||
this.lSupportExpirationDate.Location = new System.Drawing.Point(481, 292);
|
||||
this.lSupportExpirationDate.Name = "lSupportExpirationDate";
|
||||
this.lSupportExpirationDate.Size = new System.Drawing.Size(28, 13);
|
||||
this.lSupportExpirationDate.TabIndex = 102;
|
||||
this.lSupportExpirationDate.Text = "date";
|
||||
//
|
||||
// lLicenseExpirationDate
|
||||
//
|
||||
this.lLicenseExpirationDate.AutoSize = true;
|
||||
this.lLicenseExpirationDate.Location = new System.Drawing.Point(157, 292);
|
||||
this.lLicenseExpirationDate.Name = "lLicenseExpirationDate";
|
||||
this.lLicenseExpirationDate.Size = new System.Drawing.Size(28, 13);
|
||||
this.lLicenseExpirationDate.TabIndex = 104;
|
||||
this.lLicenseExpirationDate.Text = "date";
|
||||
//
|
||||
// lSupportExpirationDaysTotal
|
||||
//
|
||||
this.lSupportExpirationDaysTotal.AutoSize = true;
|
||||
this.lSupportExpirationDaysTotal.Location = new System.Drawing.Point(481, 327);
|
||||
this.lSupportExpirationDaysTotal.Name = "lSupportExpirationDaysTotal";
|
||||
this.lSupportExpirationDaysTotal.Size = new System.Drawing.Size(13, 13);
|
||||
this.lSupportExpirationDaysTotal.TabIndex = 103;
|
||||
this.lSupportExpirationDaysTotal.Text = "0";
|
||||
//
|
||||
// lLicenseExpirationDaysTotal
|
||||
//
|
||||
this.lLicenseExpirationDaysTotal.AutoSize = true;
|
||||
this.lLicenseExpirationDaysTotal.Location = new System.Drawing.Point(157, 309);
|
||||
this.lLicenseExpirationDaysTotal.Name = "lLicenseExpirationDaysTotal";
|
||||
this.lLicenseExpirationDaysTotal.Size = new System.Drawing.Size(13, 13);
|
||||
this.lLicenseExpirationDaysTotal.TabIndex = 105;
|
||||
this.lLicenseExpirationDaysTotal.Text = "0";
|
||||
//
|
||||
// lBuyNowLink
|
||||
//
|
||||
this.lBuyNowLink.Location = new System.Drawing.Point(129, 368);
|
||||
this.lBuyNowLink.Name = "lBuyNowLink";
|
||||
this.lBuyNowLink.Size = new System.Drawing.Size(350, 13);
|
||||
this.lBuyNowLink.TabIndex = 121;
|
||||
this.lBuyNowLink.Text = "http://www.mysite.com/purchase1.html";
|
||||
//
|
||||
// lRenewLicenseLink
|
||||
//
|
||||
this.lRenewLicenseLink.Location = new System.Drawing.Point(129, 384);
|
||||
this.lRenewLicenseLink.Name = "lRenewLicenseLink";
|
||||
this.lRenewLicenseLink.Size = new System.Drawing.Size(350, 13);
|
||||
this.lRenewLicenseLink.TabIndex = 123;
|
||||
this.lRenewLicenseLink.Text = "http://www.mysite.com/purchase2.html";
|
||||
//
|
||||
// lLicenseCode
|
||||
//
|
||||
this.lLicenseCode.Location = new System.Drawing.Point(129, 400);
|
||||
this.lLicenseCode.Name = "lLicenseCode";
|
||||
this.lLicenseCode.Size = new System.Drawing.Size(301, 13);
|
||||
this.lLicenseCode.TabIndex = 122;
|
||||
this.lLicenseCode.Text = "license code";
|
||||
//
|
||||
// lLicenseType
|
||||
//
|
||||
this.lLicenseType.AutoSize = true;
|
||||
this.lLicenseType.Location = new System.Drawing.Point(141, 43);
|
||||
this.lLicenseType.Name = "lLicenseType";
|
||||
this.lLicenseType.Size = new System.Drawing.Size(16, 13);
|
||||
this.lLicenseType.TabIndex = 79;
|
||||
this.lLicenseType.Text = "-1";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(250, 9);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(83, 13);
|
||||
this.label9.TabIndex = 80;
|
||||
this.label9.Text = "Customer name:";
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(12, 485);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(114, 13);
|
||||
this.label14.TabIndex = 124;
|
||||
this.label14.Text = "IntelliProtector version:";
|
||||
//
|
||||
// label35
|
||||
//
|
||||
this.label35.AutoSize = true;
|
||||
this.label35.Location = new System.Drawing.Point(336, 309);
|
||||
this.label35.Name = "label35";
|
||||
this.label35.Size = new System.Drawing.Size(132, 13);
|
||||
this.label35.TabIndex = 108;
|
||||
this.label35.Text = "Support expiration version:";
|
||||
//
|
||||
// label31
|
||||
//
|
||||
this.label31.AutoSize = true;
|
||||
this.label31.Location = new System.Drawing.Point(336, 344);
|
||||
this.label31.Name = "label31";
|
||||
this.label31.Size = new System.Drawing.Size(137, 13);
|
||||
this.label31.TabIndex = 107;
|
||||
this.label31.Text = "Support expiration days left:";
|
||||
//
|
||||
// label15
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new System.Drawing.Point(12, 326);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(137, 13);
|
||||
this.label15.TabIndex = 106;
|
||||
this.label15.Text = "License expiration days left:";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(11, 454);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(79, 13);
|
||||
this.label5.TabIndex = 112;
|
||||
this.label5.Text = "Renewal code:";
|
||||
//
|
||||
// label19
|
||||
//
|
||||
this.label19.AutoSize = true;
|
||||
this.label19.Location = new System.Drawing.Point(12, 428);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new System.Drawing.Size(74, 13);
|
||||
this.label19.TabIndex = 113;
|
||||
this.label19.Text = "License code:";
|
||||
//
|
||||
// label24
|
||||
//
|
||||
this.label24.AutoSize = true;
|
||||
this.label24.Location = new System.Drawing.Point(336, 292);
|
||||
this.label24.Name = "label24";
|
||||
this.label24.Size = new System.Drawing.Size(119, 13);
|
||||
this.label24.TabIndex = 99;
|
||||
this.label24.Text = "Support expiration date:";
|
||||
//
|
||||
// label18
|
||||
//
|
||||
this.label18.AutoSize = true;
|
||||
this.label18.Location = new System.Drawing.Point(12, 292);
|
||||
this.label18.Name = "label18";
|
||||
this.label18.Size = new System.Drawing.Size(119, 13);
|
||||
this.label18.TabIndex = 98;
|
||||
this.label18.Text = "License expiration date:";
|
||||
//
|
||||
// label23
|
||||
//
|
||||
this.label23.AutoSize = true;
|
||||
this.label23.Location = new System.Drawing.Point(336, 327);
|
||||
this.label23.Name = "label23";
|
||||
this.label23.Size = new System.Drawing.Size(143, 13);
|
||||
this.label23.TabIndex = 101;
|
||||
this.label23.Text = "Support expiration days total:";
|
||||
//
|
||||
// label39
|
||||
//
|
||||
this.label39.AutoSize = true;
|
||||
this.label39.Location = new System.Drawing.Point(9, 368);
|
||||
this.label39.Name = "label39";
|
||||
this.label39.Size = new System.Drawing.Size(110, 13);
|
||||
this.label39.TabIndex = 120;
|
||||
this.label39.Text = "Purchase license link:";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(12, 309);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(143, 13);
|
||||
this.label11.TabIndex = 100;
|
||||
this.label11.Text = "License expiration days total:";
|
||||
//
|
||||
// label37
|
||||
//
|
||||
this.label37.AutoSize = true;
|
||||
this.label37.Location = new System.Drawing.Point(9, 384);
|
||||
this.label37.Name = "label37";
|
||||
this.label37.Size = new System.Drawing.Size(114, 13);
|
||||
this.label37.TabIndex = 118;
|
||||
this.label37.Text = "Purchase renewal link:";
|
||||
//
|
||||
// label17
|
||||
//
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(9, 400);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(74, 13);
|
||||
this.label17.TabIndex = 119;
|
||||
this.label17.Text = "License code:";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(12, 43);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(70, 13);
|
||||
this.label8.TabIndex = 78;
|
||||
this.label8.Text = "License type:";
|
||||
//
|
||||
// lIsProtected
|
||||
//
|
||||
this.lIsProtected.AutoSize = true;
|
||||
this.lIsProtected.Location = new System.Drawing.Point(141, 9);
|
||||
this.lIsProtected.Name = "lIsProtected";
|
||||
this.lIsProtected.Size = new System.Drawing.Size(19, 13);
|
||||
this.lIsProtected.TabIndex = 75;
|
||||
this.lIsProtected.Text = "no";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(12, 9);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(100, 13);
|
||||
this.label3.TabIndex = 74;
|
||||
this.label3.Text = "Software protected:";
|
||||
//
|
||||
// lTrialTimeUnitsLeft
|
||||
//
|
||||
this.lTrialTimeUnitsLeft.AutoSize = true;
|
||||
this.lTrialTimeUnitsLeft.Location = new System.Drawing.Point(119, 211);
|
||||
this.lTrialTimeUnitsLeft.Name = "lTrialTimeUnitsLeft";
|
||||
this.lTrialTimeUnitsLeft.Size = new System.Drawing.Size(208, 13);
|
||||
this.lTrialTimeUnitsLeft.TabIndex = 97;
|
||||
this.lTrialTimeUnitsLeft.Text = "* mins | * hours | * days | * weeks | * months";
|
||||
//
|
||||
// lTrialTimeUnitsTotal
|
||||
//
|
||||
this.lTrialTimeUnitsTotal.AutoSize = true;
|
||||
this.lTrialTimeUnitsTotal.Location = new System.Drawing.Point(119, 175);
|
||||
this.lTrialTimeUnitsTotal.Name = "lTrialTimeUnitsTotal";
|
||||
this.lTrialTimeUnitsTotal.Size = new System.Drawing.Size(208, 13);
|
||||
this.lTrialTimeUnitsTotal.TabIndex = 95;
|
||||
this.lTrialTimeUnitsTotal.Text = "* mins | * hours | * days | * weeks | * months";
|
||||
//
|
||||
// lIsRegistered
|
||||
//
|
||||
this.lIsRegistered.AutoSize = true;
|
||||
this.lIsRegistered.Location = new System.Drawing.Point(141, 26);
|
||||
this.lIsRegistered.Name = "lIsRegistered";
|
||||
this.lIsRegistered.Size = new System.Drawing.Size(19, 13);
|
||||
this.lIsRegistered.TabIndex = 77;
|
||||
this.lIsRegistered.Text = "no";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(12, 211);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(94, 13);
|
||||
this.label6.TabIndex = 96;
|
||||
this.label6.Text = "Trial time units left:";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 175);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(100, 13);
|
||||
this.label4.TabIndex = 94;
|
||||
this.label4.Text = "Trial time units total:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 26);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(101, 13);
|
||||
this.label2.TabIndex = 76;
|
||||
this.label2.Text = "Software registered:";
|
||||
//
|
||||
// btnRegistrationByEmail
|
||||
//
|
||||
this.btnRegistrationByEmail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnRegistrationByEmail.Location = new System.Drawing.Point(547, 148);
|
||||
this.btnRegistrationByEmail.Name = "btnRegistrationByEmail";
|
||||
this.btnRegistrationByEmail.Size = new System.Drawing.Size(153, 23);
|
||||
this.btnRegistrationByEmail.TabIndex = 136;
|
||||
this.btnRegistrationByEmail.Text = "Registration By Email";
|
||||
this.btnRegistrationByEmail.UseVisualStyleBackColor = true;
|
||||
this.btnRegistrationByEmail.Click += new System.EventHandler(this.btnRegistrationByEmail_Click);
|
||||
//
|
||||
// FormMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(711, 535);
|
||||
this.Controls.Add(this.btnRegistrationByEmail);
|
||||
this.Controls.Add(this.lProtectionDate);
|
||||
this.Controls.Add(this.label26);
|
||||
this.Controls.Add(this.lLaunchesLeft);
|
||||
this.Controls.Add(this.lLaunchesTotal);
|
||||
this.Controls.Add(this.lTrialDaysLeft);
|
||||
this.Controls.Add(this.lTrialDaysTotal);
|
||||
this.Controls.Add(this.label29);
|
||||
this.Controls.Add(this.label27);
|
||||
this.Controls.Add(this.label21);
|
||||
this.Controls.Add(this.label20);
|
||||
this.Controls.Add(this.btnRenew);
|
||||
this.Controls.Add(this.btnRegister);
|
||||
this.Controls.Add(this.tbRenewalCode);
|
||||
this.Controls.Add(this.tbLicenseCode);
|
||||
this.Controls.Add(this.lCurrentRegistrationDate);
|
||||
this.Controls.Add(this.label12);
|
||||
this.Controls.Add(this.lFirstRegistrationDate);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.lOrderDate);
|
||||
this.Controls.Add(this.lCurrentActivationDate);
|
||||
this.Controls.Add(this.label16);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.lCurrentPPVersion);
|
||||
this.Controls.Add(this.lCustomerEMail);
|
||||
this.Controls.Add(this.lCustomerName);
|
||||
this.Controls.Add(this.label25);
|
||||
this.Controls.Add(this.label13);
|
||||
this.Controls.Add(this.lIntelliProtectorVersion);
|
||||
this.Controls.Add(this.lSupportExpirationPPVersion);
|
||||
this.Controls.Add(this.lSupportExpirationDaysLeft);
|
||||
this.Controls.Add(this.lLicenseExpirationDaysLeft);
|
||||
this.Controls.Add(this.lSupportExpirationDate);
|
||||
this.Controls.Add(this.lLicenseExpirationDate);
|
||||
this.Controls.Add(this.lSupportExpirationDaysTotal);
|
||||
this.Controls.Add(this.lLicenseExpirationDaysTotal);
|
||||
this.Controls.Add(this.lBuyNowLink);
|
||||
this.Controls.Add(this.lRenewLicenseLink);
|
||||
this.Controls.Add(this.lLicenseCode);
|
||||
this.Controls.Add(this.lLicenseType);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.label14);
|
||||
this.Controls.Add(this.label35);
|
||||
this.Controls.Add(this.label31);
|
||||
this.Controls.Add(this.label15);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label19);
|
||||
this.Controls.Add(this.label24);
|
||||
this.Controls.Add(this.label18);
|
||||
this.Controls.Add(this.label23);
|
||||
this.Controls.Add(this.label39);
|
||||
this.Controls.Add(this.label11);
|
||||
this.Controls.Add(this.label37);
|
||||
this.Controls.Add(this.label17);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.lIsProtected);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.lTrialTimeUnitsLeft);
|
||||
this.Controls.Add(this.lTrialTimeUnitsTotal);
|
||||
this.Controls.Add(this.lIsRegistered);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.btnSortArray);
|
||||
this.Controls.Add(this.btnShowRegistation);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOk);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "FormMain";
|
||||
this.Text = "FormMain. Sample .NET";
|
||||
this.Load += new System.EventHandler(this.FormMain_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Timer timerUpdateUnits;
|
||||
private System.Windows.Forms.Button btnSortArray;
|
||||
private System.Windows.Forms.Button btnShowRegistation;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.Button btnOk;
|
||||
private System.Windows.Forms.Label lProtectionDate;
|
||||
private System.Windows.Forms.Label label26;
|
||||
private System.Windows.Forms.Label lLaunchesLeft;
|
||||
private System.Windows.Forms.Label lLaunchesTotal;
|
||||
private System.Windows.Forms.Label lTrialDaysLeft;
|
||||
private System.Windows.Forms.Label lTrialDaysTotal;
|
||||
private System.Windows.Forms.Label label29;
|
||||
private System.Windows.Forms.Label label27;
|
||||
private System.Windows.Forms.Label label21;
|
||||
private System.Windows.Forms.Label label20;
|
||||
private System.Windows.Forms.Button btnRenew;
|
||||
private System.Windows.Forms.Button btnRegister;
|
||||
private System.Windows.Forms.TextBox tbRenewalCode;
|
||||
private System.Windows.Forms.TextBox tbLicenseCode;
|
||||
private System.Windows.Forms.Label lCurrentRegistrationDate;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.Label lFirstRegistrationDate;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.Label lOrderDate;
|
||||
private System.Windows.Forms.Label lCurrentActivationDate;
|
||||
private System.Windows.Forms.Label label16;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label lCurrentPPVersion;
|
||||
private System.Windows.Forms.Label lCustomerEMail;
|
||||
private System.Windows.Forms.Label lCustomerName;
|
||||
private System.Windows.Forms.Label label25;
|
||||
private System.Windows.Forms.Label label13;
|
||||
private System.Windows.Forms.Label lIntelliProtectorVersion;
|
||||
private System.Windows.Forms.Label lSupportExpirationPPVersion;
|
||||
private System.Windows.Forms.Label lSupportExpirationDaysLeft;
|
||||
private System.Windows.Forms.Label lLicenseExpirationDaysLeft;
|
||||
private System.Windows.Forms.Label lSupportExpirationDate;
|
||||
private System.Windows.Forms.Label lLicenseExpirationDate;
|
||||
private System.Windows.Forms.Label lSupportExpirationDaysTotal;
|
||||
private System.Windows.Forms.Label lLicenseExpirationDaysTotal;
|
||||
private System.Windows.Forms.Label lBuyNowLink;
|
||||
private System.Windows.Forms.Label lRenewLicenseLink;
|
||||
private System.Windows.Forms.Label lLicenseCode;
|
||||
private System.Windows.Forms.Label lLicenseType;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.Label label14;
|
||||
private System.Windows.Forms.Label label35;
|
||||
private System.Windows.Forms.Label label31;
|
||||
private System.Windows.Forms.Label label15;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label19;
|
||||
private System.Windows.Forms.Label label24;
|
||||
private System.Windows.Forms.Label label18;
|
||||
private System.Windows.Forms.Label label23;
|
||||
private System.Windows.Forms.Label label39;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.Label label37;
|
||||
private System.Windows.Forms.Label label17;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label lIsProtected;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label lTrialTimeUnitsLeft;
|
||||
private System.Windows.Forms.Label lTrialTimeUnitsTotal;
|
||||
private System.Windows.Forms.Label lIsRegistered;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button btnRegistrationByEmail;
|
||||
}
|
||||
}
|
||||
|
||||
202
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/FormMain.cs
vendored
Normal file
202
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/FormMain.cs
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using IntelliProtectorService;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// == How to test this example ==
|
||||
// 1. Build C# project (VS2005SampleNET)
|
||||
// 2. Protect the VS2005SampleNET.exe with IntelliProtector
|
||||
// 3. Start VS2005SampleNET.exe
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
public partial class FormMain : Form
|
||||
{
|
||||
public FormMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void btnSortArray_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SortArray();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
[IntelliProtectorService.attributes.Encrypt]
|
||||
private void SortArray()
|
||||
{
|
||||
int[] array = new int[] { 10, 2, 3, 101, 3, 33, 7, 1 };
|
||||
Array.Sort(array);
|
||||
MessageBox.Show("Array is sorted");
|
||||
}
|
||||
|
||||
private void FormMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
UpdateControls();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateControls()
|
||||
{
|
||||
lIsProtected.Text = IntelliProtector.IsSoftwareProtected() ? "yes" : "no";
|
||||
lIsRegistered.Text = IntelliProtector.IsSoftwareRegistered() ? "yes" : "no";
|
||||
lTrialTimeUnitsTotal.Text = string.Format("{0} mins | {1} hours | {2} days | {3} weeks | {4} months"
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudMinutes)
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudHours)
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudDays)
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudWeeks)
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudMonths)
|
||||
);
|
||||
lLicenseType.Text = IntelliProtector.GetLicenseType().ToString();
|
||||
|
||||
int iDays = IntelliProtector.GetTrialDaysCount();
|
||||
lTrialDaysTotal.Text = iDays.ToString();
|
||||
|
||||
iDays = IntelliProtector.GetTrialDaysLeftCount();
|
||||
lTrialDaysLeft.Text = iDays.ToString();
|
||||
|
||||
iDays = IntelliProtector.GetLicenseExpirationDaysCount();
|
||||
lLicenseExpirationDaysTotal.Text = iDays.ToString();
|
||||
|
||||
iDays = IntelliProtector.GetLicenseExpirationDaysLeftCount();
|
||||
lLicenseExpirationDaysLeft.Text = iDays.ToString();
|
||||
|
||||
timerUpdateUnits_Tick(null, null);
|
||||
|
||||
lLaunchesTotal.Text = IntelliProtector.GetTrialLaunchesCount().ToString();
|
||||
lLaunchesLeft.Text = IntelliProtector.GetTrialLaunchesLeftCount().ToString();
|
||||
|
||||
const int ciMaxBufferLen = 256;
|
||||
StringBuilder stbBuffer = new StringBuilder(ciMaxBufferLen);
|
||||
|
||||
lBuyNowLink.Text = IntelliProtector.GetBuyNowLink();
|
||||
lRenewLicenseLink.Text = IntelliProtector.GetRenewalPurchaseLink();
|
||||
lCurrentPPVersion.Text = IntelliProtector.GetCurrentProductVersion();
|
||||
lSupportExpirationPPVersion.Text = IntelliProtector.GetSupportExpirationProductVersion();
|
||||
lLicenseCode.Text = IntelliProtector.GetLicenseCode();
|
||||
lCustomerName.Text = IntelliProtector.GetCustomerName();
|
||||
lCustomerEMail.Text = IntelliProtector.GetCustomerEMail();
|
||||
|
||||
lLicenseExpirationDaysTotal.Text = IntelliProtector.GetLicenseExpirationDaysCount().ToString();
|
||||
lLicenseExpirationDaysLeft.Text = IntelliProtector.GetLicenseExpirationDaysLeftCount().ToString();
|
||||
|
||||
lSupportExpirationDaysTotal.Text = IntelliProtector.GetSupportExpirationDaysCount().ToString();
|
||||
lSupportExpirationDaysLeft.Text = IntelliProtector.GetSupportExpirationDaysLeftCount().ToString();
|
||||
|
||||
DateTime dtOrder = IntelliProtector.GetOrderDate();
|
||||
ShowDate(lOrderDate, dtOrder);
|
||||
|
||||
DateTime dtCurrentActivationDate = IntelliProtector.GetCurrentActivationDate();
|
||||
ShowDate(lCurrentActivationDate, dtCurrentActivationDate);
|
||||
|
||||
DateTime dtFirstRegistrationDate = IntelliProtector.GetFirstRegistrationDate();
|
||||
ShowDate(lFirstRegistrationDate, dtFirstRegistrationDate);
|
||||
|
||||
DateTime dtCurrentRegistrationDate = IntelliProtector.GetCurrentRegistrationDate();
|
||||
ShowDate(lCurrentRegistrationDate, dtCurrentRegistrationDate);
|
||||
|
||||
DateTime dtProtectionDate = IntelliProtector.GetProtectionDate();
|
||||
ShowDate(lProtectionDate, dtProtectionDate);
|
||||
|
||||
DateTime dtLicenseExpirationDate = IntelliProtector.GetLicenseExpirationDate();
|
||||
ShowDate(lLicenseExpirationDate, dtLicenseExpirationDate);
|
||||
|
||||
DateTime dtSupportExpirationDate = IntelliProtector.GetSupportExpirationDate();
|
||||
ShowDate(lSupportExpirationDate, dtSupportExpirationDate);
|
||||
|
||||
lIntelliProtectorVersion.Text = IntelliProtector.GetIntelliProtectorVersion();
|
||||
}
|
||||
|
||||
private static void ShowDate(Control label, DateTime dt)
|
||||
{
|
||||
label.Text = (dt != DateTime.MinValue) ? string.Format("{0}.{1}.{2} {3}:{4}", dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute) : "Not applicable";
|
||||
}
|
||||
|
||||
private void timerUpdateUnits_Tick(object sender, EventArgs e)
|
||||
{
|
||||
lTrialTimeUnitsLeft.Text = string.Format("{0} mins | {1} hours | {2} days | {3} weeks | {4} months"
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudMinutes)
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudHours)
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudDays)
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudWeeks)
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudMonths)
|
||||
);
|
||||
}
|
||||
|
||||
private void btnShowRegistation_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
IntelliProtector.ShowRegistrationWindow();
|
||||
UpdateControls();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRegister_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
IntelliProtector.RegisterSoftware(tbLicenseCode.Text);
|
||||
UpdateControls();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRenew_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
IntelliProtector.RenewLicenseCode(tbRenewalCode.Text);
|
||||
UpdateControls();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRegistrationByEmail_Click(object sender, EventArgs e)
|
||||
{
|
||||
using(FormRegistrationByEmail regByEmail = new FormRegistrationByEmail("VS2005 CS sample.dat"))
|
||||
regByEmail.ShowDialog();
|
||||
|
||||
UpdateControls();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
123
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/FormMain.resx
vendored
Normal file
123
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/FormMain.resx
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="timerUpdateUnits.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
141
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/FormRegistrationByEmail.Designer.cs
generated
vendored
Normal file
141
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/FormRegistrationByEmail.Designer.cs
generated
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
partial class FormRegistrationByEmail
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.tbLicenseCode = new System.Windows.Forms.TextBox();
|
||||
this.btnSaveCertificate = new System.Windows.Forms.Button();
|
||||
this.btnUseCertificate = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.btnClose = new System.Windows.Forms.Button();
|
||||
this.lRegistrationStatus = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(74, 13);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "License code:";
|
||||
//
|
||||
// tbLicenseCode
|
||||
//
|
||||
this.tbLicenseCode.Location = new System.Drawing.Point(92, 6);
|
||||
this.tbLicenseCode.Name = "tbLicenseCode";
|
||||
this.tbLicenseCode.Size = new System.Drawing.Size(347, 20);
|
||||
this.tbLicenseCode.TabIndex = 1;
|
||||
//
|
||||
// btnSaveCertificate
|
||||
//
|
||||
this.btnSaveCertificate.Location = new System.Drawing.Point(127, 47);
|
||||
this.btnSaveCertificate.Name = "btnSaveCertificate";
|
||||
this.btnSaveCertificate.Size = new System.Drawing.Size(197, 23);
|
||||
this.btnSaveCertificate.TabIndex = 2;
|
||||
this.btnSaveCertificate.Text = "1. Save request certificate";
|
||||
this.btnSaveCertificate.UseVisualStyleBackColor = true;
|
||||
this.btnSaveCertificate.Click += new System.EventHandler(this.btnSaveCertificate_Click);
|
||||
//
|
||||
// btnUseCertificate
|
||||
//
|
||||
this.btnUseCertificate.Location = new System.Drawing.Point(127, 76);
|
||||
this.btnUseCertificate.Name = "btnUseCertificate";
|
||||
this.btnUseCertificate.Size = new System.Drawing.Size(197, 23);
|
||||
this.btnUseCertificate.TabIndex = 2;
|
||||
this.btnUseCertificate.Text = "2. Use response certificate";
|
||||
this.btnUseCertificate.UseVisualStyleBackColor = true;
|
||||
this.btnUseCertificate.Click += new System.EventHandler(this.btnUseCertificate_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.lRegistrationStatus);
|
||||
this.groupBox1.Location = new System.Drawing.Point(12, 121);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(427, 73);
|
||||
this.groupBox1.TabIndex = 3;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Registration status";
|
||||
//
|
||||
// btnClose
|
||||
//
|
||||
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnClose.Location = new System.Drawing.Point(181, 219);
|
||||
this.btnClose.Name = "btnClose";
|
||||
this.btnClose.Size = new System.Drawing.Size(89, 23);
|
||||
this.btnClose.TabIndex = 4;
|
||||
this.btnClose.Text = "Close";
|
||||
this.btnClose.UseVisualStyleBackColor = true;
|
||||
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
||||
//
|
||||
// lRegistrationStatus
|
||||
//
|
||||
this.lRegistrationStatus.Location = new System.Drawing.Point(130, 27);
|
||||
this.lRegistrationStatus.Name = "lRegistrationStatus";
|
||||
this.lRegistrationStatus.Size = new System.Drawing.Size(166, 25);
|
||||
this.lRegistrationStatus.TabIndex = 0;
|
||||
this.lRegistrationStatus.Text = "status";
|
||||
this.lRegistrationStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// FormRegistrationByEmail
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(451, 254);
|
||||
this.Controls.Add(this.btnClose);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.btnUseCertificate);
|
||||
this.Controls.Add(this.btnSaveCertificate);
|
||||
this.Controls.Add(this.tbLicenseCode);
|
||||
this.Controls.Add(this.label1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FormRegistrationByEmail";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Registration by e-mail";
|
||||
this.Load += new System.EventHandler(this.FormRegistrationByEmail_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox tbLicenseCode;
|
||||
private System.Windows.Forms.Button btnSaveCertificate;
|
||||
private System.Windows.Forms.Button btnUseCertificate;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Label lRegistrationStatus;
|
||||
private System.Windows.Forms.Button btnClose;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using IntelliProtectorService;
|
||||
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
public partial class FormRegistrationByEmail : Form
|
||||
{
|
||||
private readonly string _certificateName;
|
||||
|
||||
public FormRegistrationByEmail(string certificateName)
|
||||
{
|
||||
_certificateName = certificateName;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnSaveCertificate_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(tbLicenseCode.Text))
|
||||
{
|
||||
MessageBox.Show(@"Please specify the license code", @"License is empty");
|
||||
return;
|
||||
}
|
||||
|
||||
using(SaveFileDialog saveFileDialog = new SaveFileDialog())
|
||||
{
|
||||
saveFileDialog.FileName = _certificateName;
|
||||
saveFileDialog.OverwritePrompt = true;
|
||||
saveFileDialog.InitialDirectory = Application.StartupPath;
|
||||
saveFileDialog.Filter = @"Data Files (*.dat)|*.dat|All Files (*.*)|*.*";
|
||||
if (saveFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
|
||||
bool result = IntelliProtector.CreateRegistrationRequestCertificate(saveFileDialog.FileName, tbLicenseCode.Text);
|
||||
if (result == false)
|
||||
MessageBox.Show(@"Error, certificate is not saved!");
|
||||
}
|
||||
}
|
||||
|
||||
private void btnUseCertificate_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (OpenFileDialog openFileDialog = new OpenFileDialog())
|
||||
{
|
||||
openFileDialog.InitialDirectory = Application.StartupPath;
|
||||
openFileDialog.Filter = @"Data Files (*.dat)|*.dat|All Files (*.*)|*.*";
|
||||
if (openFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
|
||||
bool result = IntelliProtector.UseRegistrationResponseCertificate(openFileDialog.FileName);
|
||||
if (result == false)
|
||||
MessageBox.Show(@"Error, certificate is not used!");
|
||||
}
|
||||
|
||||
UpdateRegistrationStatus();
|
||||
}
|
||||
|
||||
void UpdateRegistrationStatus()
|
||||
{
|
||||
lRegistrationStatus.Text = IntelliProtector.IsSoftwareRegistered() ? @"registered" : @"not registered";
|
||||
}
|
||||
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void FormRegistrationByEmail_Load(object sender, EventArgs e)
|
||||
{
|
||||
UpdateRegistrationStatus();
|
||||
}
|
||||
}
|
||||
}
|
||||
930
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/IntelliProtector.cs
vendored
Normal file
930
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/IntelliProtector.cs
vendored
Normal file
@@ -0,0 +1,930 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright 2010. IntelliProtector.com
|
||||
// Web site: http://intelliprotector.com
|
||||
// Version: v2.5
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
||||
namespace netprotector.api
|
||||
{
|
||||
internal delegate void dVoid_NoParams();
|
||||
internal delegate void dVoid_BoolParam(out bool b1);
|
||||
internal delegate void dVoid_IntParam(out int i1);
|
||||
internal delegate void dVoid_2IntParam(out int i1, int i2);
|
||||
internal delegate void dVoid_5IntParams(out int i1, out int i2, out int i3, out int i4, out int i5);
|
||||
internal delegate void dVoid_StringBuilderParam([MarshalAs(UnmanagedType.LPWStr)] StringBuilder s1, int iMaxLength);
|
||||
internal delegate void dBool_StringParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1, int iMaxLength);
|
||||
internal delegate void dBool_StringOnlyParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1);
|
||||
internal delegate void dBool_StringStringParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1, [MarshalAs(UnmanagedType.LPWStr)]String s2);
|
||||
}
|
||||
|
||||
namespace IntelliProtectorService.attributes
|
||||
{
|
||||
internal class Encrypt : Attribute { }
|
||||
internal class GetBuyNowLinkAttribute : Attribute { }
|
||||
internal class IsSoftwareProtectedAttribute : Attribute { }
|
||||
internal class IsSoftwareRegisteredAttribute : Attribute { }
|
||||
internal class GetTrialDaysCountAttribute : Attribute { }
|
||||
internal class GetTrialUnitsCountAttribute : Attribute { }
|
||||
internal class GetTrialDaysLeftCountAttribute : Attribute { }
|
||||
internal class GetTrialUnitsLeftCountAttribute : Attribute { }
|
||||
internal class GetTrialLaunchesCountAttribute : Attribute { }
|
||||
internal class GetTrialLaunchesLeftCountAttribute : Attribute { }
|
||||
internal class ShowRegistrationWindowAttribute : Attribute { }
|
||||
internal class IsTrialElapsedAttribute : Attribute { }
|
||||
internal class GetRenewalPurchaseLinkAttribute : Attribute { }
|
||||
internal class GetLicenseTypeAttribute : Attribute { }
|
||||
internal class GetLicenseExpirationDaysCountAttribute : Attribute { }
|
||||
internal class GetLicenseExpirationDaysLeftCountAttribute : Attribute { }
|
||||
internal class GetSupportExpirationDaysCountAttribute : Attribute { }
|
||||
internal class GetSupportExpirationDaysLeftCountAttribute : Attribute { }
|
||||
internal class GetCurrentProductVersionAttribute : Attribute { }
|
||||
internal class GetCustomerNameAttribute : Attribute { }
|
||||
internal class GetCustomerEMailAttribute : Attribute { }
|
||||
internal class GetLicenseCodeAttribute : Attribute { }
|
||||
internal class RegisterSoftwareAttribute : Attribute { }
|
||||
internal class RenewLicenseCodeAttribute : Attribute { }
|
||||
internal class GetCurrentActivationDateAttribute : Attribute { }
|
||||
internal class GetCurrentRegistrationDateAttribute : Attribute { }
|
||||
internal class GetFirstRegistrationDateAttribute : Attribute { }
|
||||
internal class GetOrderDateAttribute : Attribute { }
|
||||
internal class GetLicenseExpirationDateAttribute : Attribute { }
|
||||
internal class GetProtectionDateAttribute : Attribute { }
|
||||
internal class GetSupportExpirationDateAttribute : Attribute { }
|
||||
internal class GetSupportExpirationProductVersionAttribute : Attribute { }
|
||||
internal class GetIntelliProtectorVersionAttribute : Attribute { }
|
||||
internal class CreateRegistrationRequestCertificateAttribute : Attribute { }
|
||||
internal class UseRegistrationResponseCertificateAttribute : Attribute { }
|
||||
internal class SystemFunction1Attribute : Attribute { }
|
||||
}
|
||||
|
||||
namespace IntelliProtectorService
|
||||
{
|
||||
internal class IntelliProtector
|
||||
{
|
||||
public static double Version_2_5()
|
||||
{
|
||||
return 2.5f;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
public static bool IsInDebugMode()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
public enum enUnitDimension
|
||||
{
|
||||
eudMinutes,
|
||||
eudHours,
|
||||
eudDays,
|
||||
eudWeeks,
|
||||
eudMonths
|
||||
};
|
||||
|
||||
private class Init32
|
||||
{
|
||||
[DllImport("JitHookCore.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "Init")]
|
||||
public static extern void Init();
|
||||
};
|
||||
|
||||
private class Init64
|
||||
{
|
||||
[DllImport("JitHookCoreX64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "Init")]
|
||||
public static extern void Init();
|
||||
};
|
||||
|
||||
public static bool Init()
|
||||
{
|
||||
try
|
||||
{
|
||||
bool tryLoadX64 = false;
|
||||
try
|
||||
{
|
||||
Init32.Init();
|
||||
}
|
||||
catch (BadImageFormatException)
|
||||
{
|
||||
tryLoadX64 = true;
|
||||
}
|
||||
|
||||
if (tryLoadX64)
|
||||
{
|
||||
try
|
||||
{
|
||||
Init64.Init();
|
||||
}
|
||||
catch (BadImageFormatException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (System.Exception)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
#region GetBuyNowLink
|
||||
[attributes.GetBuyNowLinkAttribute]
|
||||
public static String GetBuyNowLink()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetBuyNowLinkTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetBuyNowLinkTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region IsSoftwareProtected
|
||||
[attributes.IsSoftwareProtected]
|
||||
public static bool IsSoftwareProtected()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { false };
|
||||
Type tp = typeof(netprotector.api.dVoid_BoolParam);
|
||||
|
||||
IsSoftwareProtectedTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
|
||||
[attributes.Encrypt]
|
||||
protected static void IsSoftwareProtectedTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(bool))
|
||||
return;
|
||||
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region IsSoftwareRegistered
|
||||
[attributes.IsSoftwareRegistered]
|
||||
public static bool IsSoftwareRegistered()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { false };
|
||||
Type tp = typeof(netprotector.api.dVoid_BoolParam);
|
||||
|
||||
IsSoftwareRegisteredTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
|
||||
[attributes.Encrypt]
|
||||
protected static void IsSoftwareRegisteredTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(bool))
|
||||
return;
|
||||
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialDaysCount
|
||||
[attributes.GetTrialDaysCount]
|
||||
public static int GetTrialDaysCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
|
||||
GetTrialDaysCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
|
||||
[attributes.Encrypt]
|
||||
protected static void GetTrialDaysCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialUnitsCount
|
||||
[attributes.GetTrialUnitsCount]
|
||||
public static int GetTrialUnitsCount(int dimensions)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0, dimensions };
|
||||
Type tp = typeof(netprotector.api.dVoid_2IntParam);
|
||||
GetTrialUnitsCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialUnitsCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) && obj[1].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialDaysLeftCount
|
||||
[attributes.GetTrialDaysLeftCount]
|
||||
public static int GetTrialDaysLeftCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetTrialDaysLeftCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialDaysLeftCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialUnitsLeftCount
|
||||
[attributes.GetTrialUnitsLeftCount]
|
||||
public static int GetTrialUnitsLeftCount(int dimension)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0, dimension };
|
||||
Type tp = typeof(netprotector.api.dVoid_2IntParam);
|
||||
GetTrialUnitsLeftCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialUnitsLeftCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) && obj[1].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialLaunchesCount
|
||||
[attributes.GetTrialLaunchesCount]
|
||||
public static int GetTrialLaunchesCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetTrialLaunchesCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialLaunchesCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialLaunchesLeftCount
|
||||
[attributes.GetTrialLaunchesLeftCount]
|
||||
public static int GetTrialLaunchesLeftCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetTrialLaunchesLeftCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialLaunchesLeftCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region ShowRegistrationWindow
|
||||
[attributes.ShowRegistrationWindow]
|
||||
public static void ShowRegistrationWindow()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
Type tp = typeof(netprotector.api.dVoid_NoParams);
|
||||
ShowRegistrationWindowTest(address, null, tp);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void ShowRegistrationWindowTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
#region IsTrialElapsed
|
||||
[attributes.IsTrialElapsed]
|
||||
public static bool IsTrialElapsed()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { false };
|
||||
Type tp = typeof(netprotector.api.dVoid_BoolParam);
|
||||
|
||||
IsTrialElapsedTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
|
||||
[attributes.Encrypt]
|
||||
protected static void IsTrialElapsedTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(bool))
|
||||
return;
|
||||
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region GetRenewalPurchaseLink
|
||||
[attributes.GetRenewalPurchaseLink]
|
||||
public static String GetRenewalPurchaseLink()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetRenewalPurchaseLinkTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetRenewalPurchaseLinkTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseType
|
||||
[attributes.GetLicenseType]
|
||||
public static int GetLicenseType()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetLicenseTypeTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetLicenseTypeTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseExpirationDaysCount
|
||||
[attributes.GetLicenseExpirationDaysCount]
|
||||
public static int GetLicenseExpirationDaysCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetLicenseExpirationDaysCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetLicenseExpirationDaysCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseExpirationDaysLeftCount
|
||||
[attributes.GetLicenseExpirationDaysLeftCount]
|
||||
public static int GetLicenseExpirationDaysLeftCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetLicenseExpirationDaysLeftTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetLicenseExpirationDaysLeftTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetSupportExpirationDaysCount
|
||||
[attributes.GetSupportExpirationDaysCount]
|
||||
public static int GetSupportExpirationDaysCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetSupportExpirationDaysCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetSupportExpirationDaysCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetSupportExpirationDaysLeftCount
|
||||
[attributes.GetSupportExpirationDaysLeftCount]
|
||||
public static int GetSupportExpirationDaysLeftCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetSupportExpirationDaysLeftCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetSupportExpirationDaysLeftCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetCurrentProductVersion
|
||||
[attributes.GetCurrentProductVersion]
|
||||
public static String GetCurrentProductVersion()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetCurrentProductVersionTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCurrentProductVersionTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetCustomerName
|
||||
[attributes.GetCustomerName]
|
||||
public static String GetCustomerName()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetCustomerNameTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCustomerNameTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetCustomerEMail
|
||||
[attributes.GetCustomerEMail]
|
||||
public static String GetCustomerEMail()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetCustomerEMailTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCustomerEMailTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseCode
|
||||
[attributes.GetLicenseCode]
|
||||
public static String GetLicenseCode()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetLicenseCodeTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetLicenseCodeTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region RegisterSoftware
|
||||
[attributes.RegisterSoftware]
|
||||
public static bool RegisterSoftware(string licenseKey)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
bool res = false;
|
||||
object[] obj = new object[] { res, licenseKey, licenseKey.Length };
|
||||
Type tp = typeof(netprotector.api.dBool_StringParam);
|
||||
|
||||
RegisterSoftwareTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void RegisterSoftwareTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region RenewLicenseCode
|
||||
[attributes.RenewLicenseCode]
|
||||
public static bool RenewLicenseCode(string renewalCode)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { false, renewalCode, renewalCode.Length };
|
||||
Type tp = typeof(netprotector.api.dBool_StringParam);
|
||||
|
||||
RenewLicenseCodeTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void RenewLicenseCodeTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region GetCurrentActivationDate
|
||||
[attributes.GetCurrentActivationDate]
|
||||
public static DateTime GetCurrentActivationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetCurrentActivationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCurrentActivationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetCurrentRegistrationDate
|
||||
[attributes.GetCurrentRegistrationDate]
|
||||
public static DateTime GetCurrentRegistrationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetCurrentRegistrationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCurrentRegistrationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetFirstRegistrationDate
|
||||
[attributes.GetFirstRegistrationDate]
|
||||
public static DateTime GetFirstRegistrationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetFirstRegistrationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetFirstRegistrationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetOrderDate
|
||||
[attributes.GetOrderDate]
|
||||
public static DateTime GetOrderDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetOrderDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetOrderDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseExpirationDate
|
||||
[attributes.GetLicenseExpirationDate]
|
||||
public static DateTime GetLicenseExpirationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetLicenseExpirationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetLicenseExpirationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetProtectionDate
|
||||
[attributes.GetProtectionDate]
|
||||
public static DateTime GetProtectionDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetProtectionDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetProtectionDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetSupportExpirationDate
|
||||
[attributes.GetSupportExpirationDate]
|
||||
public static DateTime GetSupportExpirationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetSupportExpirationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetSupportExpirationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetSupportExpirationProductVersion
|
||||
[attributes.GetSupportExpirationProductVersion]
|
||||
public static String GetSupportExpirationProductVersion()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetSupportExpirationProductVersionTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetSupportExpirationProductVersionTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetIntelliProtectorVersion
|
||||
[attributes.GetIntelliProtectorVersion]
|
||||
public static String GetIntelliProtectorVersion()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetIntelliProtectorVersionTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetIntelliProtectorVersionTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region CreateRegistrationRequestCertificate
|
||||
[attributes.CreateRegistrationRequestCertificate]
|
||||
public static bool CreateRegistrationRequestCertificate(string path, string licenseCode)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
bool res = false;
|
||||
object[] obj = new object[] { res, path, licenseCode };
|
||||
Type tp = typeof(netprotector.api.dBool_StringStringParam);
|
||||
|
||||
CreateRegistrationRequestCertificateTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void CreateRegistrationRequestCertificateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
obj[0] = true;
|
||||
}
|
||||
#endregion
|
||||
#region UseRegistrationResponseCertificate
|
||||
[attributes.UseRegistrationResponseCertificate]
|
||||
public static bool UseRegistrationResponseCertificate(string path)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
bool res = false;
|
||||
object[] obj = new object[] { res, path };
|
||||
Type tp = typeof(netprotector.api.dBool_StringOnlyParam);
|
||||
|
||||
UseRegistrationResponseCertificateTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void UseRegistrationResponseCertificateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
obj[0] = true;
|
||||
}
|
||||
#endregion
|
||||
#region SystemFunction1
|
||||
[attributes.SystemFunction1]
|
||||
protected static void SystemFunction1(UInt64 address, object[] parameters, Type delegateType)
|
||||
{
|
||||
Delegate delegateFunc = Marshal.GetDelegateForFunctionPointer((IntPtr)address, delegateType);
|
||||
delegateFunc.DynamicInvoke(parameters);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
26
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/Program.cs
vendored
Normal file
26
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/Program.cs
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using IntelliProtectorService;
|
||||
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
if (!IntelliProtector.Init())
|
||||
{
|
||||
MessageBox.Show("Cannot load protector module");
|
||||
return;
|
||||
}
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new FormMain());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("VS2005SampleNET")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("IntelliProtector.com")]
|
||||
[assembly: AssemblyProduct("VS2005SampleNET")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2010")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("91fab80e-617f-4ec4-9780-23a809cce5b8")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.5.0.0")]
|
||||
[assembly: AssemblyFileVersion("2.5.0.0")]
|
||||
71
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/Properties/Resources.Designer.cs
generated
vendored
Normal file
71
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/Properties/Resources.Designer.cs
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace VS2005SampleNET.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VS2005SampleNET.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
30
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/Properties/Settings.Designer.cs
generated
vendored
Normal file
30
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/Properties/Settings.Designer.cs
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace VS2005SampleNET.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,103 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>VS2005SampleNET</RootNamespace>
|
||||
<AssemblyName>VS2005SampleNET</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FormMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormMain.Designer.cs">
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormRegistrationByEmail.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormRegistrationByEmail.Designer.cs">
|
||||
<DependentUpon>FormRegistrationByEmail.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="IntelliProtector.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FormMain.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,5 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VS2005SampleNET", "VS2005SampleNET.csproj", "{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Debug|x86.Build.0 = Debug|x86
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Release|x86.ActiveCfg = Release|x86
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/VS2005SampleNET.suo
vendored
Normal file
BIN
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Backup/VS2005SampleNET.suo
vendored
Normal file
Binary file not shown.
873
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/FormMain.Designer.cs
generated
vendored
Normal file
873
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/FormMain.Designer.cs
generated
vendored
Normal file
@@ -0,0 +1,873 @@
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
partial class FormMain
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.timerUpdateUnits = new System.Windows.Forms.Timer(this.components);
|
||||
this.btnSortArray = new System.Windows.Forms.Button();
|
||||
this.btnShowRegistation = new System.Windows.Forms.Button();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.btnOk = new System.Windows.Forms.Button();
|
||||
this.lProtectionDate = new System.Windows.Forms.Label();
|
||||
this.label26 = new System.Windows.Forms.Label();
|
||||
this.lLaunchesLeft = new System.Windows.Forms.Label();
|
||||
this.lLaunchesTotal = new System.Windows.Forms.Label();
|
||||
this.lTrialDaysLeft = new System.Windows.Forms.Label();
|
||||
this.lTrialDaysTotal = new System.Windows.Forms.Label();
|
||||
this.label29 = new System.Windows.Forms.Label();
|
||||
this.label27 = new System.Windows.Forms.Label();
|
||||
this.label21 = new System.Windows.Forms.Label();
|
||||
this.label20 = new System.Windows.Forms.Label();
|
||||
this.btnRenew = new System.Windows.Forms.Button();
|
||||
this.btnRegister = new System.Windows.Forms.Button();
|
||||
this.tbRenewalCode = new System.Windows.Forms.TextBox();
|
||||
this.tbLicenseCode = new System.Windows.Forms.TextBox();
|
||||
this.lCurrentRegistrationDate = new System.Windows.Forms.Label();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.lFirstRegistrationDate = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.lOrderDate = new System.Windows.Forms.Label();
|
||||
this.lCurrentActivationDate = new System.Windows.Forms.Label();
|
||||
this.label16 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.lCurrentPPVersion = new System.Windows.Forms.Label();
|
||||
this.lCustomerEMail = new System.Windows.Forms.Label();
|
||||
this.lCustomerName = new System.Windows.Forms.Label();
|
||||
this.label25 = new System.Windows.Forms.Label();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.lIntelliProtectorVersion = new System.Windows.Forms.Label();
|
||||
this.lSupportExpirationPPVersion = new System.Windows.Forms.Label();
|
||||
this.lSupportExpirationDaysLeft = new System.Windows.Forms.Label();
|
||||
this.lLicenseExpirationDaysLeft = new System.Windows.Forms.Label();
|
||||
this.lSupportExpirationDate = new System.Windows.Forms.Label();
|
||||
this.lLicenseExpirationDate = new System.Windows.Forms.Label();
|
||||
this.lSupportExpirationDaysTotal = new System.Windows.Forms.Label();
|
||||
this.lLicenseExpirationDaysTotal = new System.Windows.Forms.Label();
|
||||
this.lBuyNowLink = new System.Windows.Forms.Label();
|
||||
this.lRenewLicenseLink = new System.Windows.Forms.Label();
|
||||
this.lLicenseCode = new System.Windows.Forms.Label();
|
||||
this.lLicenseType = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.label35 = new System.Windows.Forms.Label();
|
||||
this.label31 = new System.Windows.Forms.Label();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label19 = new System.Windows.Forms.Label();
|
||||
this.label24 = new System.Windows.Forms.Label();
|
||||
this.label18 = new System.Windows.Forms.Label();
|
||||
this.label23 = new System.Windows.Forms.Label();
|
||||
this.label39 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.label37 = new System.Windows.Forms.Label();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.lIsProtected = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.lTrialTimeUnitsLeft = new System.Windows.Forms.Label();
|
||||
this.lTrialTimeUnitsTotal = new System.Windows.Forms.Label();
|
||||
this.lIsRegistered = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.btnRegistrationByEmail = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(470, 513);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(229, 13);
|
||||
this.label1.TabIndex = 5;
|
||||
this.label1.Text = "IntelliProtector sample. Visual Studio 2005.NET";
|
||||
//
|
||||
// timerUpdateUnits
|
||||
//
|
||||
this.timerUpdateUnits.Enabled = true;
|
||||
this.timerUpdateUnits.Interval = 30000;
|
||||
this.timerUpdateUnits.Tick += new System.EventHandler(this.timerUpdateUnits_Tick);
|
||||
//
|
||||
// btnSortArray
|
||||
//
|
||||
this.btnSortArray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSortArray.Location = new System.Drawing.Point(547, 119);
|
||||
this.btnSortArray.Name = "btnSortArray";
|
||||
this.btnSortArray.Size = new System.Drawing.Size(153, 23);
|
||||
this.btnSortArray.TabIndex = 73;
|
||||
this.btnSortArray.Text = "Sort array (encrypted call)";
|
||||
this.btnSortArray.UseVisualStyleBackColor = true;
|
||||
this.btnSortArray.Click += new System.EventHandler(this.btnSortArray_Click);
|
||||
//
|
||||
// btnShowRegistation
|
||||
//
|
||||
this.btnShowRegistation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnShowRegistation.Location = new System.Drawing.Point(547, 89);
|
||||
this.btnShowRegistation.Name = "btnShowRegistation";
|
||||
this.btnShowRegistation.Size = new System.Drawing.Size(153, 23);
|
||||
this.btnShowRegistation.TabIndex = 72;
|
||||
this.btnShowRegistation.Text = "Show Registration Window";
|
||||
this.btnShowRegistation.UseVisualStyleBackColor = true;
|
||||
this.btnShowRegistation.Click += new System.EventHandler(this.btnShowRegistation_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnCancel.Location = new System.Drawing.Point(624, 41);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnCancel.TabIndex = 71;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.UseVisualStyleBackColor = true;
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// btnOk
|
||||
//
|
||||
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOk.Location = new System.Drawing.Point(624, 12);
|
||||
this.btnOk.Name = "btnOk";
|
||||
this.btnOk.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnOk.TabIndex = 70;
|
||||
this.btnOk.Text = "Ok";
|
||||
this.btnOk.UseVisualStyleBackColor = true;
|
||||
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
|
||||
//
|
||||
// lProtectionDate
|
||||
//
|
||||
this.lProtectionDate.Location = new System.Drawing.Point(141, 146);
|
||||
this.lProtectionDate.Name = "lProtectionDate";
|
||||
this.lProtectionDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lProtectionDate.TabIndex = 135;
|
||||
this.lProtectionDate.Text = "date";
|
||||
//
|
||||
// label26
|
||||
//
|
||||
this.label26.AutoSize = true;
|
||||
this.label26.Location = new System.Drawing.Point(12, 146);
|
||||
this.label26.Name = "label26";
|
||||
this.label26.Size = new System.Drawing.Size(82, 13);
|
||||
this.label26.TabIndex = 134;
|
||||
this.label26.Text = "Protection date:";
|
||||
//
|
||||
// lLaunchesLeft
|
||||
//
|
||||
this.lLaunchesLeft.AutoSize = true;
|
||||
this.lLaunchesLeft.Location = new System.Drawing.Point(119, 269);
|
||||
this.lLaunchesLeft.Name = "lLaunchesLeft";
|
||||
this.lLaunchesLeft.Size = new System.Drawing.Size(13, 13);
|
||||
this.lLaunchesLeft.TabIndex = 131;
|
||||
this.lLaunchesLeft.Text = "0";
|
||||
//
|
||||
// lLaunchesTotal
|
||||
//
|
||||
this.lLaunchesTotal.AutoSize = true;
|
||||
this.lLaunchesTotal.Location = new System.Drawing.Point(119, 251);
|
||||
this.lLaunchesTotal.Name = "lLaunchesTotal";
|
||||
this.lLaunchesTotal.Size = new System.Drawing.Size(13, 13);
|
||||
this.lLaunchesTotal.TabIndex = 130;
|
||||
this.lLaunchesTotal.Text = "0";
|
||||
//
|
||||
// lTrialDaysLeft
|
||||
//
|
||||
this.lTrialDaysLeft.AutoSize = true;
|
||||
this.lTrialDaysLeft.Location = new System.Drawing.Point(119, 227);
|
||||
this.lTrialDaysLeft.Name = "lTrialDaysLeft";
|
||||
this.lTrialDaysLeft.Size = new System.Drawing.Size(13, 13);
|
||||
this.lTrialDaysLeft.TabIndex = 133;
|
||||
this.lTrialDaysLeft.Text = "0";
|
||||
//
|
||||
// lTrialDaysTotal
|
||||
//
|
||||
this.lTrialDaysTotal.AutoSize = true;
|
||||
this.lTrialDaysTotal.Location = new System.Drawing.Point(119, 191);
|
||||
this.lTrialDaysTotal.Name = "lTrialDaysTotal";
|
||||
this.lTrialDaysTotal.Size = new System.Drawing.Size(13, 13);
|
||||
this.lTrialDaysTotal.TabIndex = 132;
|
||||
this.lTrialDaysTotal.Text = "0";
|
||||
//
|
||||
// label29
|
||||
//
|
||||
this.label29.AutoSize = true;
|
||||
this.label29.Location = new System.Drawing.Point(12, 269);
|
||||
this.label29.Name = "label29";
|
||||
this.label29.Size = new System.Drawing.Size(93, 13);
|
||||
this.label29.TabIndex = 127;
|
||||
this.label29.Text = "Trial launches left:";
|
||||
//
|
||||
// label27
|
||||
//
|
||||
this.label27.AutoSize = true;
|
||||
this.label27.Location = new System.Drawing.Point(12, 251);
|
||||
this.label27.Name = "label27";
|
||||
this.label27.Size = new System.Drawing.Size(99, 13);
|
||||
this.label27.TabIndex = 126;
|
||||
this.label27.Text = "Trial launches total:";
|
||||
//
|
||||
// label21
|
||||
//
|
||||
this.label21.AutoSize = true;
|
||||
this.label21.Location = new System.Drawing.Point(12, 227);
|
||||
this.label21.Name = "label21";
|
||||
this.label21.Size = new System.Drawing.Size(72, 13);
|
||||
this.label21.TabIndex = 129;
|
||||
this.label21.Text = "Trial days left:";
|
||||
//
|
||||
// label20
|
||||
//
|
||||
this.label20.AutoSize = true;
|
||||
this.label20.Location = new System.Drawing.Point(12, 191);
|
||||
this.label20.Name = "label20";
|
||||
this.label20.Size = new System.Drawing.Size(78, 13);
|
||||
this.label20.TabIndex = 128;
|
||||
this.label20.Text = "Trial days total:";
|
||||
//
|
||||
// btnRenew
|
||||
//
|
||||
this.btnRenew.Location = new System.Drawing.Point(416, 451);
|
||||
this.btnRenew.Name = "btnRenew";
|
||||
this.btnRenew.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnRenew.TabIndex = 117;
|
||||
this.btnRenew.Text = "Renew";
|
||||
this.btnRenew.UseVisualStyleBackColor = true;
|
||||
this.btnRenew.Click += new System.EventHandler(this.btnRenew_Click);
|
||||
//
|
||||
// btnRegister
|
||||
//
|
||||
this.btnRegister.Location = new System.Drawing.Point(417, 425);
|
||||
this.btnRegister.Name = "btnRegister";
|
||||
this.btnRegister.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnRegister.TabIndex = 116;
|
||||
this.btnRegister.Text = "Register";
|
||||
this.btnRegister.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tbRenewalCode
|
||||
//
|
||||
this.tbRenewalCode.Location = new System.Drawing.Point(109, 451);
|
||||
this.tbRenewalCode.Name = "tbRenewalCode";
|
||||
this.tbRenewalCode.Size = new System.Drawing.Size(301, 20);
|
||||
this.tbRenewalCode.TabIndex = 115;
|
||||
//
|
||||
// tbLicenseCode
|
||||
//
|
||||
this.tbLicenseCode.Location = new System.Drawing.Point(110, 425);
|
||||
this.tbLicenseCode.Name = "tbLicenseCode";
|
||||
this.tbLicenseCode.Size = new System.Drawing.Size(301, 20);
|
||||
this.tbLicenseCode.TabIndex = 114;
|
||||
//
|
||||
// lCurrentRegistrationDate
|
||||
//
|
||||
this.lCurrentRegistrationDate.Location = new System.Drawing.Point(141, 128);
|
||||
this.lCurrentRegistrationDate.Name = "lCurrentRegistrationDate";
|
||||
this.lCurrentRegistrationDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lCurrentRegistrationDate.TabIndex = 93;
|
||||
this.lCurrentRegistrationDate.Text = "date";
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(12, 128);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(122, 13);
|
||||
this.label12.TabIndex = 92;
|
||||
this.label12.Text = "Current registration date:";
|
||||
//
|
||||
// lFirstRegistrationDate
|
||||
//
|
||||
this.lFirstRegistrationDate.Location = new System.Drawing.Point(141, 109);
|
||||
this.lFirstRegistrationDate.Name = "lFirstRegistrationDate";
|
||||
this.lFirstRegistrationDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lFirstRegistrationDate.TabIndex = 91;
|
||||
this.lFirstRegistrationDate.Text = "date";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(12, 109);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(107, 13);
|
||||
this.label10.TabIndex = 90;
|
||||
this.label10.Text = "First registration date:";
|
||||
//
|
||||
// lOrderDate
|
||||
//
|
||||
this.lOrderDate.Location = new System.Drawing.Point(141, 71);
|
||||
this.lOrderDate.Name = "lOrderDate";
|
||||
this.lOrderDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lOrderDate.TabIndex = 88;
|
||||
this.lOrderDate.Text = "date";
|
||||
//
|
||||
// lCurrentActivationDate
|
||||
//
|
||||
this.lCurrentActivationDate.Location = new System.Drawing.Point(141, 90);
|
||||
this.lCurrentActivationDate.Name = "lCurrentActivationDate";
|
||||
this.lCurrentActivationDate.Size = new System.Drawing.Size(179, 13);
|
||||
this.lCurrentActivationDate.TabIndex = 89;
|
||||
this.lCurrentActivationDate.Text = "date";
|
||||
//
|
||||
// label16
|
||||
//
|
||||
this.label16.AutoSize = true;
|
||||
this.label16.Location = new System.Drawing.Point(12, 71);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new System.Drawing.Size(60, 13);
|
||||
this.label16.TabIndex = 86;
|
||||
this.label16.Text = "Order date:";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(12, 90);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(117, 13);
|
||||
this.label7.TabIndex = 87;
|
||||
this.label7.Text = "Current activation date:";
|
||||
//
|
||||
// lCurrentPPVersion
|
||||
//
|
||||
this.lCurrentPPVersion.Location = new System.Drawing.Point(341, 43);
|
||||
this.lCurrentPPVersion.Name = "lCurrentPPVersion";
|
||||
this.lCurrentPPVersion.Size = new System.Drawing.Size(131, 13);
|
||||
this.lCurrentPPVersion.TabIndex = 84;
|
||||
this.lCurrentPPVersion.Text = "1.0";
|
||||
//
|
||||
// lCustomerEMail
|
||||
//
|
||||
this.lCustomerEMail.Location = new System.Drawing.Point(341, 26);
|
||||
this.lCustomerEMail.Name = "lCustomerEMail";
|
||||
this.lCustomerEMail.Size = new System.Drawing.Size(209, 13);
|
||||
this.lCustomerEMail.TabIndex = 85;
|
||||
this.lCustomerEMail.Text = "customer e-mail";
|
||||
//
|
||||
// lCustomerName
|
||||
//
|
||||
this.lCustomerName.Location = new System.Drawing.Point(341, 9);
|
||||
this.lCustomerName.Name = "lCustomerName";
|
||||
this.lCustomerName.Size = new System.Drawing.Size(209, 13);
|
||||
this.lCustomerName.TabIndex = 83;
|
||||
this.lCustomerName.Text = "customer name";
|
||||
//
|
||||
// label25
|
||||
//
|
||||
this.label25.AutoSize = true;
|
||||
this.label25.Location = new System.Drawing.Point(250, 43);
|
||||
this.label25.Name = "label25";
|
||||
this.label25.Size = new System.Drawing.Size(84, 13);
|
||||
this.label25.TabIndex = 81;
|
||||
this.label25.Text = "Product version:";
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(250, 26);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(84, 13);
|
||||
this.label13.TabIndex = 82;
|
||||
this.label13.Text = "Customer e-mail:";
|
||||
//
|
||||
// lIntelliProtectorVersion
|
||||
//
|
||||
this.lIntelliProtectorVersion.AutoSize = true;
|
||||
this.lIntelliProtectorVersion.Location = new System.Drawing.Point(129, 485);
|
||||
this.lIntelliProtectorVersion.Name = "lIntelliProtectorVersion";
|
||||
this.lIntelliProtectorVersion.Size = new System.Drawing.Size(41, 13);
|
||||
this.lIntelliProtectorVersion.TabIndex = 125;
|
||||
this.lIntelliProtectorVersion.Text = "version";
|
||||
//
|
||||
// lSupportExpirationPPVersion
|
||||
//
|
||||
this.lSupportExpirationPPVersion.AutoSize = true;
|
||||
this.lSupportExpirationPPVersion.Location = new System.Drawing.Point(481, 309);
|
||||
this.lSupportExpirationPPVersion.Name = "lSupportExpirationPPVersion";
|
||||
this.lSupportExpirationPPVersion.Size = new System.Drawing.Size(22, 13);
|
||||
this.lSupportExpirationPPVersion.TabIndex = 111;
|
||||
this.lSupportExpirationPPVersion.Text = "1.5";
|
||||
//
|
||||
// lSupportExpirationDaysLeft
|
||||
//
|
||||
this.lSupportExpirationDaysLeft.AutoSize = true;
|
||||
this.lSupportExpirationDaysLeft.Location = new System.Drawing.Point(481, 344);
|
||||
this.lSupportExpirationDaysLeft.Name = "lSupportExpirationDaysLeft";
|
||||
this.lSupportExpirationDaysLeft.Size = new System.Drawing.Size(13, 13);
|
||||
this.lSupportExpirationDaysLeft.TabIndex = 110;
|
||||
this.lSupportExpirationDaysLeft.Text = "0";
|
||||
//
|
||||
// lLicenseExpirationDaysLeft
|
||||
//
|
||||
this.lLicenseExpirationDaysLeft.AutoSize = true;
|
||||
this.lLicenseExpirationDaysLeft.Location = new System.Drawing.Point(157, 326);
|
||||
this.lLicenseExpirationDaysLeft.Name = "lLicenseExpirationDaysLeft";
|
||||
this.lLicenseExpirationDaysLeft.Size = new System.Drawing.Size(13, 13);
|
||||
this.lLicenseExpirationDaysLeft.TabIndex = 109;
|
||||
this.lLicenseExpirationDaysLeft.Text = "0";
|
||||
//
|
||||
// lSupportExpirationDate
|
||||
//
|
||||
this.lSupportExpirationDate.AutoSize = true;
|
||||
this.lSupportExpirationDate.Location = new System.Drawing.Point(481, 292);
|
||||
this.lSupportExpirationDate.Name = "lSupportExpirationDate";
|
||||
this.lSupportExpirationDate.Size = new System.Drawing.Size(28, 13);
|
||||
this.lSupportExpirationDate.TabIndex = 102;
|
||||
this.lSupportExpirationDate.Text = "date";
|
||||
//
|
||||
// lLicenseExpirationDate
|
||||
//
|
||||
this.lLicenseExpirationDate.AutoSize = true;
|
||||
this.lLicenseExpirationDate.Location = new System.Drawing.Point(157, 292);
|
||||
this.lLicenseExpirationDate.Name = "lLicenseExpirationDate";
|
||||
this.lLicenseExpirationDate.Size = new System.Drawing.Size(28, 13);
|
||||
this.lLicenseExpirationDate.TabIndex = 104;
|
||||
this.lLicenseExpirationDate.Text = "date";
|
||||
//
|
||||
// lSupportExpirationDaysTotal
|
||||
//
|
||||
this.lSupportExpirationDaysTotal.AutoSize = true;
|
||||
this.lSupportExpirationDaysTotal.Location = new System.Drawing.Point(481, 327);
|
||||
this.lSupportExpirationDaysTotal.Name = "lSupportExpirationDaysTotal";
|
||||
this.lSupportExpirationDaysTotal.Size = new System.Drawing.Size(13, 13);
|
||||
this.lSupportExpirationDaysTotal.TabIndex = 103;
|
||||
this.lSupportExpirationDaysTotal.Text = "0";
|
||||
//
|
||||
// lLicenseExpirationDaysTotal
|
||||
//
|
||||
this.lLicenseExpirationDaysTotal.AutoSize = true;
|
||||
this.lLicenseExpirationDaysTotal.Location = new System.Drawing.Point(157, 309);
|
||||
this.lLicenseExpirationDaysTotal.Name = "lLicenseExpirationDaysTotal";
|
||||
this.lLicenseExpirationDaysTotal.Size = new System.Drawing.Size(13, 13);
|
||||
this.lLicenseExpirationDaysTotal.TabIndex = 105;
|
||||
this.lLicenseExpirationDaysTotal.Text = "0";
|
||||
//
|
||||
// lBuyNowLink
|
||||
//
|
||||
this.lBuyNowLink.Location = new System.Drawing.Point(129, 368);
|
||||
this.lBuyNowLink.Name = "lBuyNowLink";
|
||||
this.lBuyNowLink.Size = new System.Drawing.Size(350, 13);
|
||||
this.lBuyNowLink.TabIndex = 121;
|
||||
this.lBuyNowLink.Text = "http://www.mysite.com/purchase1.html";
|
||||
//
|
||||
// lRenewLicenseLink
|
||||
//
|
||||
this.lRenewLicenseLink.Location = new System.Drawing.Point(129, 384);
|
||||
this.lRenewLicenseLink.Name = "lRenewLicenseLink";
|
||||
this.lRenewLicenseLink.Size = new System.Drawing.Size(350, 13);
|
||||
this.lRenewLicenseLink.TabIndex = 123;
|
||||
this.lRenewLicenseLink.Text = "http://www.mysite.com/purchase2.html";
|
||||
//
|
||||
// lLicenseCode
|
||||
//
|
||||
this.lLicenseCode.Location = new System.Drawing.Point(129, 400);
|
||||
this.lLicenseCode.Name = "lLicenseCode";
|
||||
this.lLicenseCode.Size = new System.Drawing.Size(301, 13);
|
||||
this.lLicenseCode.TabIndex = 122;
|
||||
this.lLicenseCode.Text = "license code";
|
||||
//
|
||||
// lLicenseType
|
||||
//
|
||||
this.lLicenseType.AutoSize = true;
|
||||
this.lLicenseType.Location = new System.Drawing.Point(141, 43);
|
||||
this.lLicenseType.Name = "lLicenseType";
|
||||
this.lLicenseType.Size = new System.Drawing.Size(16, 13);
|
||||
this.lLicenseType.TabIndex = 79;
|
||||
this.lLicenseType.Text = "-1";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(250, 9);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(83, 13);
|
||||
this.label9.TabIndex = 80;
|
||||
this.label9.Text = "Customer name:";
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(12, 485);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(114, 13);
|
||||
this.label14.TabIndex = 124;
|
||||
this.label14.Text = "IntelliProtector version:";
|
||||
//
|
||||
// label35
|
||||
//
|
||||
this.label35.AutoSize = true;
|
||||
this.label35.Location = new System.Drawing.Point(336, 309);
|
||||
this.label35.Name = "label35";
|
||||
this.label35.Size = new System.Drawing.Size(132, 13);
|
||||
this.label35.TabIndex = 108;
|
||||
this.label35.Text = "Support expiration version:";
|
||||
//
|
||||
// label31
|
||||
//
|
||||
this.label31.AutoSize = true;
|
||||
this.label31.Location = new System.Drawing.Point(336, 344);
|
||||
this.label31.Name = "label31";
|
||||
this.label31.Size = new System.Drawing.Size(137, 13);
|
||||
this.label31.TabIndex = 107;
|
||||
this.label31.Text = "Support expiration days left:";
|
||||
//
|
||||
// label15
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new System.Drawing.Point(12, 326);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(137, 13);
|
||||
this.label15.TabIndex = 106;
|
||||
this.label15.Text = "License expiration days left:";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(11, 454);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(79, 13);
|
||||
this.label5.TabIndex = 112;
|
||||
this.label5.Text = "Renewal code:";
|
||||
//
|
||||
// label19
|
||||
//
|
||||
this.label19.AutoSize = true;
|
||||
this.label19.Location = new System.Drawing.Point(12, 428);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new System.Drawing.Size(74, 13);
|
||||
this.label19.TabIndex = 113;
|
||||
this.label19.Text = "License code:";
|
||||
//
|
||||
// label24
|
||||
//
|
||||
this.label24.AutoSize = true;
|
||||
this.label24.Location = new System.Drawing.Point(336, 292);
|
||||
this.label24.Name = "label24";
|
||||
this.label24.Size = new System.Drawing.Size(119, 13);
|
||||
this.label24.TabIndex = 99;
|
||||
this.label24.Text = "Support expiration date:";
|
||||
//
|
||||
// label18
|
||||
//
|
||||
this.label18.AutoSize = true;
|
||||
this.label18.Location = new System.Drawing.Point(12, 292);
|
||||
this.label18.Name = "label18";
|
||||
this.label18.Size = new System.Drawing.Size(119, 13);
|
||||
this.label18.TabIndex = 98;
|
||||
this.label18.Text = "License expiration date:";
|
||||
//
|
||||
// label23
|
||||
//
|
||||
this.label23.AutoSize = true;
|
||||
this.label23.Location = new System.Drawing.Point(336, 327);
|
||||
this.label23.Name = "label23";
|
||||
this.label23.Size = new System.Drawing.Size(143, 13);
|
||||
this.label23.TabIndex = 101;
|
||||
this.label23.Text = "Support expiration days total:";
|
||||
//
|
||||
// label39
|
||||
//
|
||||
this.label39.AutoSize = true;
|
||||
this.label39.Location = new System.Drawing.Point(9, 368);
|
||||
this.label39.Name = "label39";
|
||||
this.label39.Size = new System.Drawing.Size(110, 13);
|
||||
this.label39.TabIndex = 120;
|
||||
this.label39.Text = "Purchase license link:";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(12, 309);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(143, 13);
|
||||
this.label11.TabIndex = 100;
|
||||
this.label11.Text = "License expiration days total:";
|
||||
//
|
||||
// label37
|
||||
//
|
||||
this.label37.AutoSize = true;
|
||||
this.label37.Location = new System.Drawing.Point(9, 384);
|
||||
this.label37.Name = "label37";
|
||||
this.label37.Size = new System.Drawing.Size(114, 13);
|
||||
this.label37.TabIndex = 118;
|
||||
this.label37.Text = "Purchase renewal link:";
|
||||
//
|
||||
// label17
|
||||
//
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(9, 400);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(74, 13);
|
||||
this.label17.TabIndex = 119;
|
||||
this.label17.Text = "License code:";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(12, 43);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(70, 13);
|
||||
this.label8.TabIndex = 78;
|
||||
this.label8.Text = "License type:";
|
||||
//
|
||||
// lIsProtected
|
||||
//
|
||||
this.lIsProtected.AutoSize = true;
|
||||
this.lIsProtected.Location = new System.Drawing.Point(141, 9);
|
||||
this.lIsProtected.Name = "lIsProtected";
|
||||
this.lIsProtected.Size = new System.Drawing.Size(19, 13);
|
||||
this.lIsProtected.TabIndex = 75;
|
||||
this.lIsProtected.Text = "no";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(12, 9);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(100, 13);
|
||||
this.label3.TabIndex = 74;
|
||||
this.label3.Text = "Software protected:";
|
||||
//
|
||||
// lTrialTimeUnitsLeft
|
||||
//
|
||||
this.lTrialTimeUnitsLeft.AutoSize = true;
|
||||
this.lTrialTimeUnitsLeft.Location = new System.Drawing.Point(119, 211);
|
||||
this.lTrialTimeUnitsLeft.Name = "lTrialTimeUnitsLeft";
|
||||
this.lTrialTimeUnitsLeft.Size = new System.Drawing.Size(208, 13);
|
||||
this.lTrialTimeUnitsLeft.TabIndex = 97;
|
||||
this.lTrialTimeUnitsLeft.Text = "* mins | * hours | * days | * weeks | * months";
|
||||
//
|
||||
// lTrialTimeUnitsTotal
|
||||
//
|
||||
this.lTrialTimeUnitsTotal.AutoSize = true;
|
||||
this.lTrialTimeUnitsTotal.Location = new System.Drawing.Point(119, 175);
|
||||
this.lTrialTimeUnitsTotal.Name = "lTrialTimeUnitsTotal";
|
||||
this.lTrialTimeUnitsTotal.Size = new System.Drawing.Size(208, 13);
|
||||
this.lTrialTimeUnitsTotal.TabIndex = 95;
|
||||
this.lTrialTimeUnitsTotal.Text = "* mins | * hours | * days | * weeks | * months";
|
||||
//
|
||||
// lIsRegistered
|
||||
//
|
||||
this.lIsRegistered.AutoSize = true;
|
||||
this.lIsRegistered.Location = new System.Drawing.Point(141, 26);
|
||||
this.lIsRegistered.Name = "lIsRegistered";
|
||||
this.lIsRegistered.Size = new System.Drawing.Size(19, 13);
|
||||
this.lIsRegistered.TabIndex = 77;
|
||||
this.lIsRegistered.Text = "no";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(12, 211);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(94, 13);
|
||||
this.label6.TabIndex = 96;
|
||||
this.label6.Text = "Trial time units left:";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 175);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(100, 13);
|
||||
this.label4.TabIndex = 94;
|
||||
this.label4.Text = "Trial time units total:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 26);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(101, 13);
|
||||
this.label2.TabIndex = 76;
|
||||
this.label2.Text = "Software registered:";
|
||||
//
|
||||
// btnRegistrationByEmail
|
||||
//
|
||||
this.btnRegistrationByEmail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnRegistrationByEmail.Location = new System.Drawing.Point(547, 148);
|
||||
this.btnRegistrationByEmail.Name = "btnRegistrationByEmail";
|
||||
this.btnRegistrationByEmail.Size = new System.Drawing.Size(153, 23);
|
||||
this.btnRegistrationByEmail.TabIndex = 136;
|
||||
this.btnRegistrationByEmail.Text = "Registration By Email";
|
||||
this.btnRegistrationByEmail.UseVisualStyleBackColor = true;
|
||||
this.btnRegistrationByEmail.Click += new System.EventHandler(this.btnRegistrationByEmail_Click);
|
||||
//
|
||||
// FormMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(711, 535);
|
||||
this.Controls.Add(this.btnRegistrationByEmail);
|
||||
this.Controls.Add(this.lProtectionDate);
|
||||
this.Controls.Add(this.label26);
|
||||
this.Controls.Add(this.lLaunchesLeft);
|
||||
this.Controls.Add(this.lLaunchesTotal);
|
||||
this.Controls.Add(this.lTrialDaysLeft);
|
||||
this.Controls.Add(this.lTrialDaysTotal);
|
||||
this.Controls.Add(this.label29);
|
||||
this.Controls.Add(this.label27);
|
||||
this.Controls.Add(this.label21);
|
||||
this.Controls.Add(this.label20);
|
||||
this.Controls.Add(this.btnRenew);
|
||||
this.Controls.Add(this.btnRegister);
|
||||
this.Controls.Add(this.tbRenewalCode);
|
||||
this.Controls.Add(this.tbLicenseCode);
|
||||
this.Controls.Add(this.lCurrentRegistrationDate);
|
||||
this.Controls.Add(this.label12);
|
||||
this.Controls.Add(this.lFirstRegistrationDate);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.lOrderDate);
|
||||
this.Controls.Add(this.lCurrentActivationDate);
|
||||
this.Controls.Add(this.label16);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.lCurrentPPVersion);
|
||||
this.Controls.Add(this.lCustomerEMail);
|
||||
this.Controls.Add(this.lCustomerName);
|
||||
this.Controls.Add(this.label25);
|
||||
this.Controls.Add(this.label13);
|
||||
this.Controls.Add(this.lIntelliProtectorVersion);
|
||||
this.Controls.Add(this.lSupportExpirationPPVersion);
|
||||
this.Controls.Add(this.lSupportExpirationDaysLeft);
|
||||
this.Controls.Add(this.lLicenseExpirationDaysLeft);
|
||||
this.Controls.Add(this.lSupportExpirationDate);
|
||||
this.Controls.Add(this.lLicenseExpirationDate);
|
||||
this.Controls.Add(this.lSupportExpirationDaysTotal);
|
||||
this.Controls.Add(this.lLicenseExpirationDaysTotal);
|
||||
this.Controls.Add(this.lBuyNowLink);
|
||||
this.Controls.Add(this.lRenewLicenseLink);
|
||||
this.Controls.Add(this.lLicenseCode);
|
||||
this.Controls.Add(this.lLicenseType);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.label14);
|
||||
this.Controls.Add(this.label35);
|
||||
this.Controls.Add(this.label31);
|
||||
this.Controls.Add(this.label15);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label19);
|
||||
this.Controls.Add(this.label24);
|
||||
this.Controls.Add(this.label18);
|
||||
this.Controls.Add(this.label23);
|
||||
this.Controls.Add(this.label39);
|
||||
this.Controls.Add(this.label11);
|
||||
this.Controls.Add(this.label37);
|
||||
this.Controls.Add(this.label17);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.lIsProtected);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.lTrialTimeUnitsLeft);
|
||||
this.Controls.Add(this.lTrialTimeUnitsTotal);
|
||||
this.Controls.Add(this.lIsRegistered);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.btnSortArray);
|
||||
this.Controls.Add(this.btnShowRegistation);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOk);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "FormMain";
|
||||
this.Text = "FormMain. Sample .NET";
|
||||
this.Load += new System.EventHandler(this.FormMain_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Timer timerUpdateUnits;
|
||||
private System.Windows.Forms.Button btnSortArray;
|
||||
private System.Windows.Forms.Button btnShowRegistation;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.Button btnOk;
|
||||
private System.Windows.Forms.Label lProtectionDate;
|
||||
private System.Windows.Forms.Label label26;
|
||||
private System.Windows.Forms.Label lLaunchesLeft;
|
||||
private System.Windows.Forms.Label lLaunchesTotal;
|
||||
private System.Windows.Forms.Label lTrialDaysLeft;
|
||||
private System.Windows.Forms.Label lTrialDaysTotal;
|
||||
private System.Windows.Forms.Label label29;
|
||||
private System.Windows.Forms.Label label27;
|
||||
private System.Windows.Forms.Label label21;
|
||||
private System.Windows.Forms.Label label20;
|
||||
private System.Windows.Forms.Button btnRenew;
|
||||
private System.Windows.Forms.Button btnRegister;
|
||||
private System.Windows.Forms.TextBox tbRenewalCode;
|
||||
private System.Windows.Forms.TextBox tbLicenseCode;
|
||||
private System.Windows.Forms.Label lCurrentRegistrationDate;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.Label lFirstRegistrationDate;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.Label lOrderDate;
|
||||
private System.Windows.Forms.Label lCurrentActivationDate;
|
||||
private System.Windows.Forms.Label label16;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label lCurrentPPVersion;
|
||||
private System.Windows.Forms.Label lCustomerEMail;
|
||||
private System.Windows.Forms.Label lCustomerName;
|
||||
private System.Windows.Forms.Label label25;
|
||||
private System.Windows.Forms.Label label13;
|
||||
private System.Windows.Forms.Label lIntelliProtectorVersion;
|
||||
private System.Windows.Forms.Label lSupportExpirationPPVersion;
|
||||
private System.Windows.Forms.Label lSupportExpirationDaysLeft;
|
||||
private System.Windows.Forms.Label lLicenseExpirationDaysLeft;
|
||||
private System.Windows.Forms.Label lSupportExpirationDate;
|
||||
private System.Windows.Forms.Label lLicenseExpirationDate;
|
||||
private System.Windows.Forms.Label lSupportExpirationDaysTotal;
|
||||
private System.Windows.Forms.Label lLicenseExpirationDaysTotal;
|
||||
private System.Windows.Forms.Label lBuyNowLink;
|
||||
private System.Windows.Forms.Label lRenewLicenseLink;
|
||||
private System.Windows.Forms.Label lLicenseCode;
|
||||
private System.Windows.Forms.Label lLicenseType;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.Label label14;
|
||||
private System.Windows.Forms.Label label35;
|
||||
private System.Windows.Forms.Label label31;
|
||||
private System.Windows.Forms.Label label15;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label19;
|
||||
private System.Windows.Forms.Label label24;
|
||||
private System.Windows.Forms.Label label18;
|
||||
private System.Windows.Forms.Label label23;
|
||||
private System.Windows.Forms.Label label39;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.Label label37;
|
||||
private System.Windows.Forms.Label label17;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label lIsProtected;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label lTrialTimeUnitsLeft;
|
||||
private System.Windows.Forms.Label lTrialTimeUnitsTotal;
|
||||
private System.Windows.Forms.Label lIsRegistered;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button btnRegistrationByEmail;
|
||||
}
|
||||
}
|
||||
|
||||
202
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/FormMain.cs
vendored
Normal file
202
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/FormMain.cs
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using IntelliProtectorService;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// == How to test this example ==
|
||||
// 1. Build C# project (VS2005SampleNET)
|
||||
// 2. Protect the VS2005SampleNET.exe with IntelliProtector
|
||||
// 3. Start VS2005SampleNET.exe
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
public partial class FormMain : Form
|
||||
{
|
||||
public FormMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void btnSortArray_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SortArray();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
[IntelliProtectorService.attributes.Encrypt]
|
||||
private void SortArray()
|
||||
{
|
||||
int[] array = new int[] { 10, 2, 3, 101, 3, 33, 7, 1 };
|
||||
Array.Sort(array);
|
||||
MessageBox.Show("Array is sorted");
|
||||
}
|
||||
|
||||
private void FormMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
UpdateControls();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateControls()
|
||||
{
|
||||
lIsProtected.Text = IntelliProtector.IsSoftwareProtected() ? "yes" : "no";
|
||||
lIsRegistered.Text = IntelliProtector.IsSoftwareRegistered() ? "yes" : "no";
|
||||
lTrialTimeUnitsTotal.Text = string.Format("{0} mins | {1} hours | {2} days | {3} weeks | {4} months"
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudMinutes)
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudHours)
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudDays)
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudWeeks)
|
||||
, IntelliProtector.GetTrialUnitsCount((int)IntelliProtector.enUnitDimension.eudMonths)
|
||||
);
|
||||
lLicenseType.Text = IntelliProtector.GetLicenseType().ToString();
|
||||
|
||||
int iDays = IntelliProtector.GetTrialDaysCount();
|
||||
lTrialDaysTotal.Text = iDays.ToString();
|
||||
|
||||
iDays = IntelliProtector.GetTrialDaysLeftCount();
|
||||
lTrialDaysLeft.Text = iDays.ToString();
|
||||
|
||||
iDays = IntelliProtector.GetLicenseExpirationDaysCount();
|
||||
lLicenseExpirationDaysTotal.Text = iDays.ToString();
|
||||
|
||||
iDays = IntelliProtector.GetLicenseExpirationDaysLeftCount();
|
||||
lLicenseExpirationDaysLeft.Text = iDays.ToString();
|
||||
|
||||
timerUpdateUnits_Tick(null, null);
|
||||
|
||||
lLaunchesTotal.Text = IntelliProtector.GetTrialLaunchesCount().ToString();
|
||||
lLaunchesLeft.Text = IntelliProtector.GetTrialLaunchesLeftCount().ToString();
|
||||
|
||||
const int ciMaxBufferLen = 256;
|
||||
StringBuilder stbBuffer = new StringBuilder(ciMaxBufferLen);
|
||||
|
||||
lBuyNowLink.Text = IntelliProtector.GetBuyNowLink();
|
||||
lRenewLicenseLink.Text = IntelliProtector.GetRenewalPurchaseLink();
|
||||
lCurrentPPVersion.Text = IntelliProtector.GetCurrentProductVersion();
|
||||
lSupportExpirationPPVersion.Text = IntelliProtector.GetSupportExpirationProductVersion();
|
||||
lLicenseCode.Text = IntelliProtector.GetLicenseCode();
|
||||
lCustomerName.Text = IntelliProtector.GetCustomerName();
|
||||
lCustomerEMail.Text = IntelliProtector.GetCustomerEMail();
|
||||
|
||||
lLicenseExpirationDaysTotal.Text = IntelliProtector.GetLicenseExpirationDaysCount().ToString();
|
||||
lLicenseExpirationDaysLeft.Text = IntelliProtector.GetLicenseExpirationDaysLeftCount().ToString();
|
||||
|
||||
lSupportExpirationDaysTotal.Text = IntelliProtector.GetSupportExpirationDaysCount().ToString();
|
||||
lSupportExpirationDaysLeft.Text = IntelliProtector.GetSupportExpirationDaysLeftCount().ToString();
|
||||
|
||||
DateTime dtOrder = IntelliProtector.GetOrderDate();
|
||||
ShowDate(lOrderDate, dtOrder);
|
||||
|
||||
DateTime dtCurrentActivationDate = IntelliProtector.GetCurrentActivationDate();
|
||||
ShowDate(lCurrentActivationDate, dtCurrentActivationDate);
|
||||
|
||||
DateTime dtFirstRegistrationDate = IntelliProtector.GetFirstRegistrationDate();
|
||||
ShowDate(lFirstRegistrationDate, dtFirstRegistrationDate);
|
||||
|
||||
DateTime dtCurrentRegistrationDate = IntelliProtector.GetCurrentRegistrationDate();
|
||||
ShowDate(lCurrentRegistrationDate, dtCurrentRegistrationDate);
|
||||
|
||||
DateTime dtProtectionDate = IntelliProtector.GetProtectionDate();
|
||||
ShowDate(lProtectionDate, dtProtectionDate);
|
||||
|
||||
DateTime dtLicenseExpirationDate = IntelliProtector.GetLicenseExpirationDate();
|
||||
ShowDate(lLicenseExpirationDate, dtLicenseExpirationDate);
|
||||
|
||||
DateTime dtSupportExpirationDate = IntelliProtector.GetSupportExpirationDate();
|
||||
ShowDate(lSupportExpirationDate, dtSupportExpirationDate);
|
||||
|
||||
lIntelliProtectorVersion.Text = IntelliProtector.GetIntelliProtectorVersion();
|
||||
}
|
||||
|
||||
private static void ShowDate(Control label, DateTime dt)
|
||||
{
|
||||
label.Text = (dt != DateTime.MinValue) ? string.Format("{0}.{1}.{2} {3}:{4}", dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute) : "Not applicable";
|
||||
}
|
||||
|
||||
private void timerUpdateUnits_Tick(object sender, EventArgs e)
|
||||
{
|
||||
lTrialTimeUnitsLeft.Text = string.Format("{0} mins | {1} hours | {2} days | {3} weeks | {4} months"
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudMinutes)
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudHours)
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudDays)
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudWeeks)
|
||||
, IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtector.enUnitDimension.eudMonths)
|
||||
);
|
||||
}
|
||||
|
||||
private void btnShowRegistation_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
IntelliProtector.ShowRegistrationWindow();
|
||||
UpdateControls();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRegister_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
IntelliProtector.RegisterSoftware(tbLicenseCode.Text);
|
||||
UpdateControls();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRenew_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
IntelliProtector.RenewLicenseCode(tbRenewalCode.Text);
|
||||
UpdateControls();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRegistrationByEmail_Click(object sender, EventArgs e)
|
||||
{
|
||||
using(FormRegistrationByEmail regByEmail = new FormRegistrationByEmail("VS2005 CS sample.dat"))
|
||||
regByEmail.ShowDialog();
|
||||
|
||||
UpdateControls();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
123
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/FormMain.resx
vendored
Normal file
123
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/FormMain.resx
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="timerUpdateUnits.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
141
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/FormRegistrationByEmail.Designer.cs
generated
vendored
Normal file
141
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/FormRegistrationByEmail.Designer.cs
generated
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
partial class FormRegistrationByEmail
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.tbLicenseCode = new System.Windows.Forms.TextBox();
|
||||
this.btnSaveCertificate = new System.Windows.Forms.Button();
|
||||
this.btnUseCertificate = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.btnClose = new System.Windows.Forms.Button();
|
||||
this.lRegistrationStatus = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(74, 13);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "License code:";
|
||||
//
|
||||
// tbLicenseCode
|
||||
//
|
||||
this.tbLicenseCode.Location = new System.Drawing.Point(92, 6);
|
||||
this.tbLicenseCode.Name = "tbLicenseCode";
|
||||
this.tbLicenseCode.Size = new System.Drawing.Size(347, 20);
|
||||
this.tbLicenseCode.TabIndex = 1;
|
||||
//
|
||||
// btnSaveCertificate
|
||||
//
|
||||
this.btnSaveCertificate.Location = new System.Drawing.Point(127, 47);
|
||||
this.btnSaveCertificate.Name = "btnSaveCertificate";
|
||||
this.btnSaveCertificate.Size = new System.Drawing.Size(197, 23);
|
||||
this.btnSaveCertificate.TabIndex = 2;
|
||||
this.btnSaveCertificate.Text = "1. Save request certificate";
|
||||
this.btnSaveCertificate.UseVisualStyleBackColor = true;
|
||||
this.btnSaveCertificate.Click += new System.EventHandler(this.btnSaveCertificate_Click);
|
||||
//
|
||||
// btnUseCertificate
|
||||
//
|
||||
this.btnUseCertificate.Location = new System.Drawing.Point(127, 76);
|
||||
this.btnUseCertificate.Name = "btnUseCertificate";
|
||||
this.btnUseCertificate.Size = new System.Drawing.Size(197, 23);
|
||||
this.btnUseCertificate.TabIndex = 2;
|
||||
this.btnUseCertificate.Text = "2. Use response certificate";
|
||||
this.btnUseCertificate.UseVisualStyleBackColor = true;
|
||||
this.btnUseCertificate.Click += new System.EventHandler(this.btnUseCertificate_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.lRegistrationStatus);
|
||||
this.groupBox1.Location = new System.Drawing.Point(12, 121);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(427, 73);
|
||||
this.groupBox1.TabIndex = 3;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Registration status";
|
||||
//
|
||||
// btnClose
|
||||
//
|
||||
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnClose.Location = new System.Drawing.Point(181, 219);
|
||||
this.btnClose.Name = "btnClose";
|
||||
this.btnClose.Size = new System.Drawing.Size(89, 23);
|
||||
this.btnClose.TabIndex = 4;
|
||||
this.btnClose.Text = "Close";
|
||||
this.btnClose.UseVisualStyleBackColor = true;
|
||||
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
||||
//
|
||||
// lRegistrationStatus
|
||||
//
|
||||
this.lRegistrationStatus.Location = new System.Drawing.Point(130, 27);
|
||||
this.lRegistrationStatus.Name = "lRegistrationStatus";
|
||||
this.lRegistrationStatus.Size = new System.Drawing.Size(166, 25);
|
||||
this.lRegistrationStatus.TabIndex = 0;
|
||||
this.lRegistrationStatus.Text = "status";
|
||||
this.lRegistrationStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// FormRegistrationByEmail
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(451, 254);
|
||||
this.Controls.Add(this.btnClose);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.btnUseCertificate);
|
||||
this.Controls.Add(this.btnSaveCertificate);
|
||||
this.Controls.Add(this.tbLicenseCode);
|
||||
this.Controls.Add(this.label1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FormRegistrationByEmail";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Registration by e-mail";
|
||||
this.Load += new System.EventHandler(this.FormRegistrationByEmail_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox tbLicenseCode;
|
||||
private System.Windows.Forms.Button btnSaveCertificate;
|
||||
private System.Windows.Forms.Button btnUseCertificate;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Label lRegistrationStatus;
|
||||
private System.Windows.Forms.Button btnClose;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using IntelliProtectorService;
|
||||
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
public partial class FormRegistrationByEmail : Form
|
||||
{
|
||||
private readonly string _certificateName;
|
||||
|
||||
public FormRegistrationByEmail(string certificateName)
|
||||
{
|
||||
_certificateName = certificateName;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnSaveCertificate_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(tbLicenseCode.Text))
|
||||
{
|
||||
MessageBox.Show(@"Please specify the license code", @"License is empty");
|
||||
return;
|
||||
}
|
||||
|
||||
using(SaveFileDialog saveFileDialog = new SaveFileDialog())
|
||||
{
|
||||
saveFileDialog.FileName = _certificateName;
|
||||
saveFileDialog.OverwritePrompt = true;
|
||||
saveFileDialog.InitialDirectory = Application.StartupPath;
|
||||
saveFileDialog.Filter = @"Data Files (*.dat)|*.dat|All Files (*.*)|*.*";
|
||||
if (saveFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
|
||||
bool result = IntelliProtector.CreateRegistrationRequestCertificate(saveFileDialog.FileName, tbLicenseCode.Text);
|
||||
if (result == false)
|
||||
MessageBox.Show(@"Error, certificate is not saved!");
|
||||
}
|
||||
}
|
||||
|
||||
private void btnUseCertificate_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (OpenFileDialog openFileDialog = new OpenFileDialog())
|
||||
{
|
||||
openFileDialog.InitialDirectory = Application.StartupPath;
|
||||
openFileDialog.Filter = @"Data Files (*.dat)|*.dat|All Files (*.*)|*.*";
|
||||
if (openFileDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
|
||||
bool result = IntelliProtector.UseRegistrationResponseCertificate(openFileDialog.FileName);
|
||||
if (result == false)
|
||||
MessageBox.Show(@"Error, certificate is not used!");
|
||||
}
|
||||
|
||||
UpdateRegistrationStatus();
|
||||
}
|
||||
|
||||
void UpdateRegistrationStatus()
|
||||
{
|
||||
lRegistrationStatus.Text = IntelliProtector.IsSoftwareRegistered() ? @"registered" : @"not registered";
|
||||
}
|
||||
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void FormRegistrationByEmail_Load(object sender, EventArgs e)
|
||||
{
|
||||
UpdateRegistrationStatus();
|
||||
}
|
||||
}
|
||||
}
|
||||
930
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/IntelliProtector.cs
vendored
Normal file
930
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/IntelliProtector.cs
vendored
Normal file
@@ -0,0 +1,930 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright 2010. IntelliProtector.com
|
||||
// Web site: http://intelliprotector.com
|
||||
// Version: v2.5
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
||||
namespace netprotector.api
|
||||
{
|
||||
internal delegate void dVoid_NoParams();
|
||||
internal delegate void dVoid_BoolParam(out bool b1);
|
||||
internal delegate void dVoid_IntParam(out int i1);
|
||||
internal delegate void dVoid_2IntParam(out int i1, int i2);
|
||||
internal delegate void dVoid_5IntParams(out int i1, out int i2, out int i3, out int i4, out int i5);
|
||||
internal delegate void dVoid_StringBuilderParam([MarshalAs(UnmanagedType.LPWStr)] StringBuilder s1, int iMaxLength);
|
||||
internal delegate void dBool_StringParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1, int iMaxLength);
|
||||
internal delegate void dBool_StringOnlyParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1);
|
||||
internal delegate void dBool_StringStringParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1, [MarshalAs(UnmanagedType.LPWStr)]String s2);
|
||||
}
|
||||
|
||||
namespace IntelliProtectorService.attributes
|
||||
{
|
||||
internal class Encrypt : Attribute { }
|
||||
internal class GetBuyNowLinkAttribute : Attribute { }
|
||||
internal class IsSoftwareProtectedAttribute : Attribute { }
|
||||
internal class IsSoftwareRegisteredAttribute : Attribute { }
|
||||
internal class GetTrialDaysCountAttribute : Attribute { }
|
||||
internal class GetTrialUnitsCountAttribute : Attribute { }
|
||||
internal class GetTrialDaysLeftCountAttribute : Attribute { }
|
||||
internal class GetTrialUnitsLeftCountAttribute : Attribute { }
|
||||
internal class GetTrialLaunchesCountAttribute : Attribute { }
|
||||
internal class GetTrialLaunchesLeftCountAttribute : Attribute { }
|
||||
internal class ShowRegistrationWindowAttribute : Attribute { }
|
||||
internal class IsTrialElapsedAttribute : Attribute { }
|
||||
internal class GetRenewalPurchaseLinkAttribute : Attribute { }
|
||||
internal class GetLicenseTypeAttribute : Attribute { }
|
||||
internal class GetLicenseExpirationDaysCountAttribute : Attribute { }
|
||||
internal class GetLicenseExpirationDaysLeftCountAttribute : Attribute { }
|
||||
internal class GetSupportExpirationDaysCountAttribute : Attribute { }
|
||||
internal class GetSupportExpirationDaysLeftCountAttribute : Attribute { }
|
||||
internal class GetCurrentProductVersionAttribute : Attribute { }
|
||||
internal class GetCustomerNameAttribute : Attribute { }
|
||||
internal class GetCustomerEMailAttribute : Attribute { }
|
||||
internal class GetLicenseCodeAttribute : Attribute { }
|
||||
internal class RegisterSoftwareAttribute : Attribute { }
|
||||
internal class RenewLicenseCodeAttribute : Attribute { }
|
||||
internal class GetCurrentActivationDateAttribute : Attribute { }
|
||||
internal class GetCurrentRegistrationDateAttribute : Attribute { }
|
||||
internal class GetFirstRegistrationDateAttribute : Attribute { }
|
||||
internal class GetOrderDateAttribute : Attribute { }
|
||||
internal class GetLicenseExpirationDateAttribute : Attribute { }
|
||||
internal class GetProtectionDateAttribute : Attribute { }
|
||||
internal class GetSupportExpirationDateAttribute : Attribute { }
|
||||
internal class GetSupportExpirationProductVersionAttribute : Attribute { }
|
||||
internal class GetIntelliProtectorVersionAttribute : Attribute { }
|
||||
internal class CreateRegistrationRequestCertificateAttribute : Attribute { }
|
||||
internal class UseRegistrationResponseCertificateAttribute : Attribute { }
|
||||
internal class SystemFunction1Attribute : Attribute { }
|
||||
}
|
||||
|
||||
namespace IntelliProtectorService
|
||||
{
|
||||
internal class IntelliProtector
|
||||
{
|
||||
public static double Version_2_5()
|
||||
{
|
||||
return 2.5f;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
public static bool IsInDebugMode()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
public enum enUnitDimension
|
||||
{
|
||||
eudMinutes,
|
||||
eudHours,
|
||||
eudDays,
|
||||
eudWeeks,
|
||||
eudMonths
|
||||
};
|
||||
|
||||
private class Init32
|
||||
{
|
||||
[DllImport("JitHookCore.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "Init")]
|
||||
public static extern void Init();
|
||||
};
|
||||
|
||||
private class Init64
|
||||
{
|
||||
[DllImport("JitHookCoreX64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "Init")]
|
||||
public static extern void Init();
|
||||
};
|
||||
|
||||
public static bool Init()
|
||||
{
|
||||
try
|
||||
{
|
||||
bool tryLoadX64 = false;
|
||||
try
|
||||
{
|
||||
Init32.Init();
|
||||
}
|
||||
catch (BadImageFormatException)
|
||||
{
|
||||
tryLoadX64 = true;
|
||||
}
|
||||
|
||||
if (tryLoadX64)
|
||||
{
|
||||
try
|
||||
{
|
||||
Init64.Init();
|
||||
}
|
||||
catch (BadImageFormatException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (System.Exception)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
#region GetBuyNowLink
|
||||
[attributes.GetBuyNowLinkAttribute]
|
||||
public static String GetBuyNowLink()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetBuyNowLinkTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetBuyNowLinkTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region IsSoftwareProtected
|
||||
[attributes.IsSoftwareProtected]
|
||||
public static bool IsSoftwareProtected()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { false };
|
||||
Type tp = typeof(netprotector.api.dVoid_BoolParam);
|
||||
|
||||
IsSoftwareProtectedTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
|
||||
[attributes.Encrypt]
|
||||
protected static void IsSoftwareProtectedTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(bool))
|
||||
return;
|
||||
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region IsSoftwareRegistered
|
||||
[attributes.IsSoftwareRegistered]
|
||||
public static bool IsSoftwareRegistered()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { false };
|
||||
Type tp = typeof(netprotector.api.dVoid_BoolParam);
|
||||
|
||||
IsSoftwareRegisteredTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
|
||||
[attributes.Encrypt]
|
||||
protected static void IsSoftwareRegisteredTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(bool))
|
||||
return;
|
||||
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialDaysCount
|
||||
[attributes.GetTrialDaysCount]
|
||||
public static int GetTrialDaysCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
|
||||
GetTrialDaysCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
|
||||
[attributes.Encrypt]
|
||||
protected static void GetTrialDaysCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialUnitsCount
|
||||
[attributes.GetTrialUnitsCount]
|
||||
public static int GetTrialUnitsCount(int dimensions)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0, dimensions };
|
||||
Type tp = typeof(netprotector.api.dVoid_2IntParam);
|
||||
GetTrialUnitsCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialUnitsCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) && obj[1].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialDaysLeftCount
|
||||
[attributes.GetTrialDaysLeftCount]
|
||||
public static int GetTrialDaysLeftCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetTrialDaysLeftCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialDaysLeftCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialUnitsLeftCount
|
||||
[attributes.GetTrialUnitsLeftCount]
|
||||
public static int GetTrialUnitsLeftCount(int dimension)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0, dimension };
|
||||
Type tp = typeof(netprotector.api.dVoid_2IntParam);
|
||||
GetTrialUnitsLeftCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialUnitsLeftCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) && obj[1].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialLaunchesCount
|
||||
[attributes.GetTrialLaunchesCount]
|
||||
public static int GetTrialLaunchesCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetTrialLaunchesCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialLaunchesCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetTrialLaunchesLeftCount
|
||||
[attributes.GetTrialLaunchesLeftCount]
|
||||
public static int GetTrialLaunchesLeftCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetTrialLaunchesLeftCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetTrialLaunchesLeftCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region ShowRegistrationWindow
|
||||
[attributes.ShowRegistrationWindow]
|
||||
public static void ShowRegistrationWindow()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
Type tp = typeof(netprotector.api.dVoid_NoParams);
|
||||
ShowRegistrationWindowTest(address, null, tp);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void ShowRegistrationWindowTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
#region IsTrialElapsed
|
||||
[attributes.IsTrialElapsed]
|
||||
public static bool IsTrialElapsed()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { false };
|
||||
Type tp = typeof(netprotector.api.dVoid_BoolParam);
|
||||
|
||||
IsTrialElapsedTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
|
||||
[attributes.Encrypt]
|
||||
protected static void IsTrialElapsedTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(bool))
|
||||
return;
|
||||
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region GetRenewalPurchaseLink
|
||||
[attributes.GetRenewalPurchaseLink]
|
||||
public static String GetRenewalPurchaseLink()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetRenewalPurchaseLinkTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetRenewalPurchaseLinkTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseType
|
||||
[attributes.GetLicenseType]
|
||||
public static int GetLicenseType()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetLicenseTypeTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetLicenseTypeTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseExpirationDaysCount
|
||||
[attributes.GetLicenseExpirationDaysCount]
|
||||
public static int GetLicenseExpirationDaysCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetLicenseExpirationDaysCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetLicenseExpirationDaysCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseExpirationDaysLeftCount
|
||||
[attributes.GetLicenseExpirationDaysLeftCount]
|
||||
public static int GetLicenseExpirationDaysLeftCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetLicenseExpirationDaysLeftTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetLicenseExpirationDaysLeftTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetSupportExpirationDaysCount
|
||||
[attributes.GetSupportExpirationDaysCount]
|
||||
public static int GetSupportExpirationDaysCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetSupportExpirationDaysCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetSupportExpirationDaysCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetSupportExpirationDaysLeftCount
|
||||
[attributes.GetSupportExpirationDaysLeftCount]
|
||||
public static int GetSupportExpirationDaysLeftCount()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { (int)0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_IntParam);
|
||||
GetSupportExpirationDaysLeftCountTest(address, obj, tp);
|
||||
return (int)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
public static void GetSupportExpirationDaysLeftCountTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int))
|
||||
return;
|
||||
|
||||
obj[0] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetCurrentProductVersion
|
||||
[attributes.GetCurrentProductVersion]
|
||||
public static String GetCurrentProductVersion()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetCurrentProductVersionTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCurrentProductVersionTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetCustomerName
|
||||
[attributes.GetCustomerName]
|
||||
public static String GetCustomerName()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetCustomerNameTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCustomerNameTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetCustomerEMail
|
||||
[attributes.GetCustomerEMail]
|
||||
public static String GetCustomerEMail()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetCustomerEMailTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCustomerEMailTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseCode
|
||||
[attributes.GetLicenseCode]
|
||||
public static String GetLicenseCode()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetLicenseCodeTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetLicenseCodeTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region RegisterSoftware
|
||||
[attributes.RegisterSoftware]
|
||||
public static bool RegisterSoftware(string licenseKey)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
bool res = false;
|
||||
object[] obj = new object[] { res, licenseKey, licenseKey.Length };
|
||||
Type tp = typeof(netprotector.api.dBool_StringParam);
|
||||
|
||||
RegisterSoftwareTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void RegisterSoftwareTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region RenewLicenseCode
|
||||
[attributes.RenewLicenseCode]
|
||||
public static bool RenewLicenseCode(string renewalCode)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { false, renewalCode, renewalCode.Length };
|
||||
Type tp = typeof(netprotector.api.dBool_StringParam);
|
||||
|
||||
RenewLicenseCodeTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void RenewLicenseCodeTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
obj[0] = false;
|
||||
}
|
||||
#endregion
|
||||
#region GetCurrentActivationDate
|
||||
[attributes.GetCurrentActivationDate]
|
||||
public static DateTime GetCurrentActivationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetCurrentActivationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCurrentActivationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetCurrentRegistrationDate
|
||||
[attributes.GetCurrentRegistrationDate]
|
||||
public static DateTime GetCurrentRegistrationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetCurrentRegistrationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetCurrentRegistrationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetFirstRegistrationDate
|
||||
[attributes.GetFirstRegistrationDate]
|
||||
public static DateTime GetFirstRegistrationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetFirstRegistrationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetFirstRegistrationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetOrderDate
|
||||
[attributes.GetOrderDate]
|
||||
public static DateTime GetOrderDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetOrderDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetOrderDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetLicenseExpirationDate
|
||||
[attributes.GetLicenseExpirationDate]
|
||||
public static DateTime GetLicenseExpirationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetLicenseExpirationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetLicenseExpirationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetProtectionDate
|
||||
[attributes.GetProtectionDate]
|
||||
public static DateTime GetProtectionDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetProtectionDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetProtectionDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetSupportExpirationDate
|
||||
[attributes.GetSupportExpirationDate]
|
||||
public static DateTime GetSupportExpirationDate()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
object[] obj = new object[] { 0, 0, 0, 0, 0 };
|
||||
Type tp = typeof(netprotector.api.dVoid_5IntParams);
|
||||
|
||||
GetSupportExpirationDateTest(address, obj, tp);
|
||||
if ((int)obj[0] < 0)
|
||||
return DateTime.MinValue;
|
||||
|
||||
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetSupportExpirationDateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(int) ||
|
||||
obj[1].GetType() != typeof(int) ||
|
||||
obj[2].GetType() != typeof(int) ||
|
||||
obj[3].GetType() != typeof(int) ||
|
||||
obj[4].GetType() != typeof(int))
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
obj[2] = -1;
|
||||
obj[3] = -1;
|
||||
obj[4] = -1;
|
||||
}
|
||||
#endregion
|
||||
#region GetSupportExpirationProductVersion
|
||||
[attributes.GetSupportExpirationProductVersion]
|
||||
public static String GetSupportExpirationProductVersion()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetSupportExpirationProductVersionTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetSupportExpirationProductVersionTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region GetIntelliProtectorVersion
|
||||
[attributes.GetIntelliProtectorVersion]
|
||||
public static String GetIntelliProtectorVersion()
|
||||
{
|
||||
UInt64 address = 0;
|
||||
int ciMinLength = 0;
|
||||
int ciMaxLength = 1024;
|
||||
StringBuilder rValue = new StringBuilder(ciMaxLength);
|
||||
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
|
||||
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
|
||||
|
||||
GetIntelliProtectorVersionTest(address, obj, tp);
|
||||
return rValue.ToString();
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void GetIntelliProtectorVersionTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
if (obj[0].GetType() != typeof(StringBuilder))
|
||||
return;
|
||||
|
||||
string strLink = "";
|
||||
if ((int)obj[1] >= strLink.Length)
|
||||
((StringBuilder)obj[0]).Append(strLink);
|
||||
}
|
||||
#endregion
|
||||
#region CreateRegistrationRequestCertificate
|
||||
[attributes.CreateRegistrationRequestCertificate]
|
||||
public static bool CreateRegistrationRequestCertificate(string path, string licenseCode)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
bool res = false;
|
||||
object[] obj = new object[] { res, path, licenseCode };
|
||||
Type tp = typeof(netprotector.api.dBool_StringStringParam);
|
||||
|
||||
CreateRegistrationRequestCertificateTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void CreateRegistrationRequestCertificateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
obj[0] = true;
|
||||
}
|
||||
#endregion
|
||||
#region UseRegistrationResponseCertificate
|
||||
[attributes.UseRegistrationResponseCertificate]
|
||||
public static bool UseRegistrationResponseCertificate(string path)
|
||||
{
|
||||
UInt64 address = 0;
|
||||
bool res = false;
|
||||
object[] obj = new object[] { res, path };
|
||||
Type tp = typeof(netprotector.api.dBool_StringOnlyParam);
|
||||
|
||||
UseRegistrationResponseCertificateTest(address, obj, tp);
|
||||
return (bool)obj[0];
|
||||
}
|
||||
[attributes.Encrypt]
|
||||
protected static void UseRegistrationResponseCertificateTest(UInt64 address, object[] obj, Type delegateType)
|
||||
{
|
||||
obj[0] = true;
|
||||
}
|
||||
#endregion
|
||||
#region SystemFunction1
|
||||
[attributes.SystemFunction1]
|
||||
protected static void SystemFunction1(UInt64 address, object[] parameters, Type delegateType)
|
||||
{
|
||||
Delegate delegateFunc = Marshal.GetDelegateForFunctionPointer((IntPtr)address, delegateType);
|
||||
delegateFunc.DynamicInvoke(parameters);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
26
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Program.cs
vendored
Normal file
26
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Program.cs
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using IntelliProtectorService;
|
||||
|
||||
namespace VS2005SampleNET
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
if (!IntelliProtector.Init())
|
||||
{
|
||||
MessageBox.Show("Cannot load protector module");
|
||||
return;
|
||||
}
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new FormMain());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("VS2005SampleNET")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("IntelliProtector.com")]
|
||||
[assembly: AssemblyProduct("VS2005SampleNET")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2010")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("91fab80e-617f-4ec4-9780-23a809cce5b8")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.5.0.0")]
|
||||
[assembly: AssemblyFileVersion("2.5.0.0")]
|
||||
63
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Properties/Resources.Designer.cs
generated
vendored
Normal file
63
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Properties/Resources.Designer.cs
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.225
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace VS2005SampleNET.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VS2005SampleNET.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Properties/Resources.resx
vendored
Normal file
117
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Properties/Resources.resx
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
26
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Properties/Settings.Designer.cs
generated
vendored
Normal file
26
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/Properties/Settings.Designer.cs
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.225
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace VS2005SampleNET.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
29
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/UpgradeLog.XML
vendored
Normal file
29
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/UpgradeLog.XML
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/UpgradeReport.xslt'?><UpgradeLog>
|
||||
<Properties><Property Name="Solution" Value="VS2005SampleNET">
|
||||
</Property><Property Name="Solution File" Value="C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\VS2005SampleNET.sln">
|
||||
</Property><Property Name="User Options File" Value="C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\VS2005SampleNET.suo">
|
||||
</Property><Property Name="Date" Value="Monday, May 02, 2011">
|
||||
</Property><Property Name="Time" Value="1:56 AM">
|
||||
</Property></Properties><Event ErrorLevel="0" Project="" Source="VS2005SampleNET.sln" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\VS2005SampleNET.sln">
|
||||
</Event><Event ErrorLevel="0" Project="" Source="VS2005SampleNET.suo" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\VS2005SampleNET.suo">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="VS2005SampleNET.csproj" Description="Project file successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\VS2005SampleNET.csproj">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="VS2005SampleNET.csproj.user" Description="Project user file successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\VS2005SampleNET.csproj.user">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="FormMain.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\FormMain.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="FormMain.Designer.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\FormMain.Designer.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="FormRegistrationByEmail.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\FormRegistrationByEmail.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="FormRegistrationByEmail.Designer.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\FormRegistrationByEmail.Designer.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="IntelliProtector.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\IntelliProtector.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="Program.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\Program.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="Properties\AssemblyInfo.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\Properties\AssemblyInfo.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="Properties\Resources.Designer.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\Properties\Resources.Designer.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="Properties\Settings.Designer.cs" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\Properties\Settings.Designer.cs">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="Properties\Settings.settings" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\Properties\Settings.settings">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="FormMain.resx" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\FormMain.resx">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="Properties\Resources.resx" Description="File successfully backed up as C:\Users\Administrator\Downloads\VS2005SampleNET (src)\VS2005SampleNET (src)\Backup\Properties\Resources.resx">
|
||||
</Event><Event ErrorLevel="1" Project="VS2005SampleNET" Source="VS2005SampleNET.csproj" Description="Your project is targeting .NET Framework 2.0 or 3.0. If your project uses assemblies requiring a newer .NET Framework, your project will fail to build. You can change the .NET Framework version by clicking Properties on the project menu and then selecting a new version in the '.NET Framework' dropdown box. (In Visual Basic, this is located on the Compile tab by clicking the 'Advanced Compiler Options...' button.)">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="VS2005SampleNET.csproj" Description="Project converted successfully">
|
||||
</Event><Event ErrorLevel="3" Project="VS2005SampleNET" Source="VS2005SampleNET.csproj" Description="Converted">
|
||||
</Event><Event ErrorLevel="0" Project="" Source="VS2005SampleNET.sln" Description="Solution converted successfully">
|
||||
</Event><Event ErrorLevel="3" Project="" Source="VS2005SampleNET.sln" Description="Converted">
|
||||
</Event><Event ErrorLevel="0" Project="VS2005SampleNET" Source="VS2005SampleNET.csproj" Description="Scan complete: Upgrade not required for project files.">
|
||||
</Event></UpgradeLog>
|
||||
115
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/VS2005SampleNET.csproj
vendored
Normal file
115
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/VS2005SampleNET.csproj
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>VS2005SampleNET</RootNamespace>
|
||||
<AssemblyName>VS2005SampleNET</AssemblyName>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FormMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormMain.Designer.cs">
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormRegistrationByEmail.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormRegistrationByEmail.Designer.cs">
|
||||
<DependentUpon>FormRegistrationByEmail.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="IntelliProtector.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FormMain.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
26
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/VS2005SampleNET.sln
vendored
Normal file
26
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/VS2005SampleNET.sln
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VS2005SampleNET", "VS2005SampleNET.csproj", "{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Debug|x86.Build.0 = Debug|x86
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Release|x86.ActiveCfg = Release|x86
|
||||
{9B4852A9-36AE-4EDA-B727-4A86BF2487AB}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/VS2005SampleNET.suo
vendored
Normal file
BIN
ThirdParty/IntelliProtector/VS2005SampleNET (src)/VS2005SampleNET (src)/VS2005SampleNET.suo
vendored
Normal file
Binary file not shown.
@@ -0,0 +1,207 @@
|
||||
BODY
|
||||
{
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-LEFT: 0px;
|
||||
MARGIN-TOP: 0px
|
||||
}
|
||||
P
|
||||
{
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 70%;
|
||||
LINE-HEIGHT: 12pt;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 10px
|
||||
}
|
||||
.note
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
COLOR: #336699;
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-LEFT: 0px;
|
||||
MARGIN-TOP: 0px;
|
||||
PADDING-RIGHT: 10px
|
||||
}
|
||||
.infotable
|
||||
{
|
||||
BACKGROUND-COLOR: #f0f0e0;
|
||||
BORDER-BOTTOM: #ffffff 0px solid;
|
||||
BORDER-COLLAPSE: collapse;
|
||||
BORDER-LEFT: #ffffff 0px solid;
|
||||
BORDER-RIGHT: #ffffff 0px solid;
|
||||
BORDER-TOP: #ffffff 0px solid;
|
||||
FONT-SIZE: 70%;
|
||||
MARGIN-LEFT: 10px
|
||||
}
|
||||
.issuetable
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffe8;
|
||||
BORDER-COLLAPSE: collapse;
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-BOTTOM: 10px;
|
||||
MARGIN-LEFT: 13px;
|
||||
MARGIN-TOP: 0px
|
||||
}
|
||||
.issuetitle
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px;
|
||||
COLOR: #003366;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.header
|
||||
{
|
||||
BACKGROUND-COLOR: #cecf9c;
|
||||
BORDER-BOTTOM: #ffffff 1px solid;
|
||||
BORDER-LEFT: #ffffff 1px solid;
|
||||
BORDER-RIGHT: #ffffff 1px solid;
|
||||
BORDER-TOP: #ffffff 1px solid;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: bold
|
||||
}
|
||||
.issuehdr
|
||||
{
|
||||
BACKGROUND-COLOR: #E0EBF5;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px solid;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.issuenone
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: 0px;
|
||||
BORDER-LEFT: 0px;
|
||||
BORDER-RIGHT: 0px;
|
||||
BORDER-TOP: 0px;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.content
|
||||
{
|
||||
BACKGROUND-COLOR: #e7e7ce;
|
||||
BORDER-BOTTOM: #ffffff 1px solid;
|
||||
BORDER-LEFT: #ffffff 1px solid;
|
||||
BORDER-RIGHT: #ffffff 1px solid;
|
||||
BORDER-TOP: #ffffff 1px solid;
|
||||
PADDING-LEFT: 3px
|
||||
}
|
||||
.issuecontent
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px solid;
|
||||
PADDING-LEFT: 3px
|
||||
}
|
||||
A:link
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
A:visited
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
}
|
||||
A:active
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
}
|
||||
A:hover
|
||||
{
|
||||
COLOR: #cc3300;
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
H1
|
||||
{
|
||||
BACKGROUND-COLOR: #003366;
|
||||
BORDER-BOTTOM: #336699 6px solid;
|
||||
COLOR: #ffffff;
|
||||
FONT-SIZE: 130%;
|
||||
FONT-WEIGHT: normal;
|
||||
MARGIN: 0em 0em 0em -20px;
|
||||
PADDING-BOTTOM: 8px;
|
||||
PADDING-LEFT: 30px;
|
||||
PADDING-TOP: 16px
|
||||
}
|
||||
H2
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 80%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: 3px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 20px;
|
||||
PADDING-LEFT: 0px
|
||||
}
|
||||
H3
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 80%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: -5px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 20px
|
||||
}
|
||||
H4
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-TOP: 15px;
|
||||
PADDING-BOTTOM: 0px
|
||||
}
|
||||
UL
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
LIST-STYLE: square;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-TOP: 0pt
|
||||
}
|
||||
OL
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
LIST-STYLE: square;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-TOP: 0pt
|
||||
}
|
||||
LI
|
||||
{
|
||||
LIST-STYLE: square;
|
||||
MARGIN-LEFT: 0px
|
||||
}
|
||||
.expandable
|
||||
{
|
||||
CURSOR: hand
|
||||
}
|
||||
.expanded
|
||||
{
|
||||
color: black
|
||||
}
|
||||
.collapsed
|
||||
{
|
||||
DISPLAY: none
|
||||
}
|
||||
.foot
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #cecf9c 1px solid;
|
||||
BORDER-TOP: #cecf9c 2px solid
|
||||
}
|
||||
.settings
|
||||
{
|
||||
MARGIN-LEFT: 25PX;
|
||||
}
|
||||
.help
|
||||
{
|
||||
TEXT-ALIGN: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl='urn:schemas-microsoft-com:xslt'>
|
||||
|
||||
<xsl:key name="ProjectKey" match="Event" use="@Project" />
|
||||
|
||||
<xsl:template match="Events" mode="createProjects">
|
||||
<projects>
|
||||
<xsl:for-each select="Event">
|
||||
<!--xsl:sort select="@Project" order="descending"/-->
|
||||
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Project != @Project)">
|
||||
|
||||
<xsl:variable name="ProjectName" select="@Project"/>
|
||||
|
||||
<project>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@Project"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:if test="@Project=''">
|
||||
<xsl:attribute name="solution">
|
||||
<xsl:value-of select="@Solution"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="key('ProjectKey', $ProjectName)">
|
||||
<!--xsl:sort select="@Source" /-->
|
||||
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Source != @Source)">
|
||||
|
||||
<source>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@Source"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:variable name="Source">
|
||||
<xsl:value-of select="@Source"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:for-each select="key('ProjectKey', $ProjectName)[ @Source = $Source ]">
|
||||
|
||||
<event>
|
||||
<xsl:attribute name="error-level">
|
||||
<xsl:value-of select="@ErrorLevel"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="description">
|
||||
<xsl:value-of select="@Description"/>
|
||||
</xsl:attribute>
|
||||
</event>
|
||||
</xsl:for-each>
|
||||
</source>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
</project>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</projects>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="projects">
|
||||
<xsl:for-each select="project">
|
||||
<xsl:sort select="@Name" order="ascending"/>
|
||||
<h2>
|
||||
<xsl:if test="@solution"><a _locID="Solution">Solution</a>: <xsl:value-of select="@solution"/></xsl:if>
|
||||
<xsl:if test="not(@solution)"><a _locID="Project">Project</a>: <xsl:value-of select="@name"/>
|
||||
<xsl:for-each select="source">
|
||||
<xsl:variable name="Hyperlink" select="@name"/>
|
||||
<xsl:for-each select="event[@error-level='4']">
|
||||
 <A class="note"><xsl:attribute name="HREF"><xsl:value-of select="$Hyperlink"/></xsl:attribute><xsl:value-of select="@description"/></A>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</h2>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
|
||||
<tr>
|
||||
<td nowrap="1" class="header" _locID="Filename">Filename</td>
|
||||
<td nowrap="1" class="header" _locID="Status">Status</td>
|
||||
<td nowrap="1" class="header" _locID="Errors">Errors</td>
|
||||
<td nowrap="1" class="header" _locID="Warnings">Warnings</td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="source">
|
||||
<xsl:sort select="@name" order="ascending"/>
|
||||
<xsl:variable name="source-id" select="generate-id(.)"/>
|
||||
|
||||
<xsl:if test="count(event)!=count(event[@error-level='4'])">
|
||||
|
||||
<tr class="row">
|
||||
<td class="content">
|
||||
<A HREF="javascript:"><xsl:attribute name="onClick">javascript:document.images['<xsl:value-of select="$source-id"/>'].click()</xsl:attribute><IMG border="0" _locID="IMG.alt" _locAttrData="alt" alt="expand/collapse section" class="expandable" height="11" onclick="changepic()" src="_UpgradeReport_Files/UpgradeReport_Plus.gif" width="9" ><xsl:attribute name="name"><xsl:value-of select="$source-id"/></xsl:attribute><xsl:attribute name="child">src<xsl:value-of select="$source-id"/></xsl:attribute></IMG></A> <xsl:value-of select="@name"/>
|
||||
</td>
|
||||
<td class="content">
|
||||
<xsl:if test="count(event[@error-level='3'])=1">
|
||||
<xsl:for-each select="event[@error-level='3']">
|
||||
<xsl:if test="@description='Converted'"><a _locID="Converted1">Converted</a></xsl:if>
|
||||
<xsl:if test="@description!='Converted'"><xsl:value-of select="@description"/></xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(event[@error-level='3'])!=1 and count(event[@error-level='3' and @description='Converted'])!=0"><a _locID="Converted2">Converted</a>
|
||||
</xsl:if>
|
||||
</td>
|
||||
<td class="content"><xsl:value-of select="count(event[@error-level='2'])"/></td>
|
||||
<td class="content"><xsl:value-of select="count(event[@error-level='1'])"/></td>
|
||||
</tr>
|
||||
|
||||
<tr class="collapsed" bgcolor="#ffffff">
|
||||
<xsl:attribute name="id">src<xsl:value-of select="$source-id"/></xsl:attribute>
|
||||
|
||||
<td colspan="7">
|
||||
<table width="97%" border="1" bordercolor="#dcdcdc" rules="cols" class="issuetable">
|
||||
<tr>
|
||||
<td colspan="7" class="issuetitle" _locID="ConversionIssues">Conversion Report - <xsl:value-of select="@name"/>:</td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="event[@error-level!='3']">
|
||||
<xsl:if test="@error-level!='4'">
|
||||
<tr>
|
||||
<td class="issuenone" style="border-bottom:solid 1 lightgray">
|
||||
<xsl:value-of select="@description"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
<tr valign="top">
|
||||
<td class="foot">
|
||||
<xsl:if test="count(source)!=1">
|
||||
<xsl:value-of select="count(source)"/><a _locID="file1"> files</a>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(source)=1">
|
||||
<a _locID="file2">1 file</a>
|
||||
</xsl:if>
|
||||
</td>
|
||||
<td class="foot">
|
||||
<a _locID="Converted3">Converted</a>: <xsl:value-of select="count(source/event[@error-level='3' and @description='Converted'])"/><BR />
|
||||
<a _locID="NotConverted">Not converted</a>: <xsl:value-of select="count(source) - count(source/event[@error-level='3' and @description='Converted'])"/>
|
||||
</td>
|
||||
<td class="foot"><xsl:value-of select="count(source/event[@error-level='2'])"/></td>
|
||||
<td class="foot"><xsl:value-of select="count(source/event[@error-level='1'])"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="Property">
|
||||
<xsl:if test="@Name!='Date' and @Name!='Time' and @Name!='LogNumber' and @Name!='Solution'">
|
||||
<tr><td nowrap="1"><b><xsl:value-of select="@Name"/>: </b><xsl:value-of select="@Value"/></td></tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="UpgradeLog">
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" href="_UpgradeReport_Files\UpgradeReport.css" />
|
||||
<title _locID="ConversionReport0">Conversion Report 
|
||||
<xsl:if test="Properties/Property[@Name='LogNumber']">
|
||||
<xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/>
|
||||
</xsl:if>
|
||||
</title>
|
||||
<script language="javascript">
|
||||
function outliner () {
|
||||
oMe = window.event.srcElement
|
||||
//get child element
|
||||
var child = document.all[event.srcElement.getAttribute("child",false)];
|
||||
//if child element exists, expand or collapse it.
|
||||
if (null != child)
|
||||
child.className = child.className == "collapsed" ? "expanded" : "collapsed";
|
||||
}
|
||||
|
||||
function changepic() {
|
||||
uMe = window.event.srcElement;
|
||||
var check = uMe.src.toLowerCase();
|
||||
if (check.lastIndexOf("upgradereport_plus.gif") != -1)
|
||||
{
|
||||
uMe.src = "_UpgradeReport_Files/UpgradeReport_Minus.gif"
|
||||
}
|
||||
else
|
||||
{
|
||||
uMe.src = "_UpgradeReport_Files/UpgradeReport_Plus.gif"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin="0" leftmargin="0" rightmargin="0" onclick="outliner();">
|
||||
<h1 _locID="ConversionReport">Conversion Report - <xsl:value-of select="Properties/Property[@Name='Solution']/@Value"/></h1>
|
||||
|
||||
<p><span class="note">
|
||||
<b _locID="TimeOfConversion">Time of Conversion:</b>  <xsl:value-of select="Properties/Property[@Name='Date']/@Value"/>  <xsl:value-of select="Properties/Property[@Name='Time']/@Value"/><br/>
|
||||
</span></p>
|
||||
|
||||
<xsl:variable name="SortedEvents">
|
||||
<Events>
|
||||
<xsl:for-each select="Event">
|
||||
<xsl:sort select="@Project" order="ascending"/>
|
||||
<xsl:sort select="@Source" order="ascending"/>
|
||||
<xsl:sort select="@ErrorLevel" order="ascending"/>
|
||||
<Event>
|
||||
<xsl:attribute name="Project"><xsl:value-of select="@Project"/> </xsl:attribute>
|
||||
<xsl:attribute name="Solution"><xsl:value-of select="/UpgradeLog/Properties/Property[@Name='Solution']/@Value"/> </xsl:attribute>
|
||||
<xsl:attribute name="Source"><xsl:value-of select="@Source"/> </xsl:attribute>
|
||||
<xsl:attribute name="ErrorLevel"><xsl:value-of select="@ErrorLevel"/> </xsl:attribute>
|
||||
<xsl:attribute name="Description"><xsl:value-of select="@Description"/> </xsl:attribute>
|
||||
</Event>
|
||||
</xsl:for-each>
|
||||
</Events>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="Projects">
|
||||
<xsl:apply-templates select="msxsl:node-set($SortedEvents)/*" mode="createProjects"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:apply-templates select="msxsl:node-set($Projects)/*"/>
|
||||
|
||||
<p></p><p>
|
||||
<table class="note">
|
||||
<tr>
|
||||
<td nowrap="1">
|
||||
<b _locID="ConversionSettings">Conversion Settings</b>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:apply-templates select="Properties"/>
|
||||
</table></p>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
Binary file not shown.
|
After Width: | Height: | Size: 71 B |
@@ -0,0 +1,32 @@
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\bin\Debug\VS2005SampleNET.exe
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\bin\Debug\VS2005SampleNET.pdb
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Debug\ResolveAssemblyReference.cache
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Debug\VS2005SampleNET.FormMain.resources
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Debug\VS2005SampleNET.Properties.Resources.resources
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Debug\VS2005SampleNET.csproj.GenerateResource.Cache
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Debug\VS2005SampleNET.exe
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Debug\VS2005SampleNET.pdb
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\bin\Release\VS2005SampleNET.exe
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\bin\Release\VS2005SampleNET.pdb
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Release\ResolveAssemblyReference.cache
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Release\VS2005SampleNET.FormMain.resources
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Release\VS2005SampleNET.Properties.Resources.resources
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Release\VS2005SampleNET.csproj.GenerateResource.Cache
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Release\VS2005SampleNET.exe
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\Release\VS2005SampleNET.pdb
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\bin\x86\Release\VS2005SampleNET.exe
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\bin\x86\Release\VS2005SampleNET.pdb
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\x86\Release\ResolveAssemblyReference.cache
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\x86\Release\VS2005SampleNET.FormMain.resources
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\x86\Release\VS2005SampleNET.Properties.Resources.resources
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\x86\Release\VS2005SampleNET.csproj.GenerateResource.Cache
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\x86\Release\VS2005SampleNET.exe
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET App (src)\obj\x86\Release\VS2005SampleNET.pdb
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET (src)\obj\x86\Release\VS2005SampleNET.exe
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET (src)\obj\x86\Release\VS2005SampleNET.pdb
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET (src)\bin\x86\Release\VS2005SampleNET.exe
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET (src)\bin\x86\Release\VS2005SampleNET.pdb
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET (src)\obj\x86\Release\ResolveAssemblyReference.cache
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET (src)\obj\x86\Release\VS2005SampleNET.FormMain.resources
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET (src)\obj\x86\Release\VS2005SampleNET.Properties.Resources.resources
|
||||
D:\Work\IntelliProtector\Samples\Visual Studio\Visual Studio 2005\VS2005SampleNET App\VS2005SampleNET (src)\obj\x86\Release\VS2005SampleNET.csproj.GenerateResource.Cache
|
||||
Reference in New Issue
Block a user