Add source

This commit is contained in:
hexadecimal
2025-04-24 20:51:29 +03:00
parent 9badc969b8
commit e3c1cdea0e
92 changed files with 13471 additions and 0 deletions
+710
View File
@@ -0,0 +1,710 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000004 RID: 4
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class ActivationSuccess : global::System.Windows.Forms.Form
{
// Token: 0x0600006A RID: 106 RVA: 0x00005168 File Offset: 0x00003368
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x0600006B RID: 107 RVA: 0x000051A0 File Offset: 0x000033A0
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.ActivationSuccess));
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.pbIconLarge = new global::System.Windows.Forms.PictureBox();
this.lblTitle = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.lblDescription = new global::System.Windows.Forms.Label();
this.lblPurchaseEmailTitle = new global::System.Windows.Forms.Label();
this.lblPurchaseEmail = new global::System.Windows.Forms.Label();
this.lblLicenseKey = new global::System.Windows.Forms.Label();
this.lblLicenseKeyTitle = new global::System.Windows.Forms.Label();
this.lblProductName = new global::System.Windows.Forms.Label();
this.lblProductTitle = new global::System.Windows.Forms.Label();
this.lblActivations = new global::System.Windows.Forms.Label();
this.lblActivationsTitle = new global::System.Windows.Forms.Label();
this.lblExpiryDate = new global::System.Windows.Forms.Label();
this.lblExpiryDateTitle = new global::System.Windows.Forms.Label();
this.lblRemainingDays = new global::System.Windows.Forms.Label();
this.lblRemainingDaysTitle = new global::System.Windows.Forms.Label();
this.btnClose = new global::System.Windows.Forms.Button();
this.pnlFooter = new global::System.Windows.Forms.Panel();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.lblBullet2 = new global::System.Windows.Forms.Label();
this.lnkRenew = new global::System.Windows.Forms.LinkLabel();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.lblBullet1 = new global::System.Windows.Forms.Label();
this.lnkSupport = new global::System.Windows.Forms.LinkLabel();
this.lnkHome = new global::System.Windows.Forms.LinkLabel();
this.toolTip1 = new global::System.Windows.Forms.ToolTip(this.components);
this.lnkViewLicenseFile = new global::System.Windows.Forms.LinkLabel();
this.lblLicenseType = new global::System.Windows.Forms.Label();
this.lblLicenseTypeTitle = new global::System.Windows.Forms.Label();
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.lblPlanName = new global::System.Windows.Forms.Label();
this.lblPlanTitle = new global::System.Windows.Forms.Label();
this.lblRemainingDevices = new global::System.Windows.Forms.Label();
this.lblRemainingDevicesTitle = new global::System.Windows.Forms.Label();
this.ctaAlert = new global::Bunifu.Licensing.Views.Controls.Alert();
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIconLarge).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
this.pnlFooter.SuspendLayout();
base.SuspendLayout();
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.pbIconLarge);
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbIcon);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Controls.Add(this.lblDescription);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(0, 0);
this.pnlHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(499, 145);
this.pnlHeader.TabIndex = 3;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 143);
this.bdrLeft.TabIndex = 53;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(498, 1);
this.bdrRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 143);
this.bdrRight.TabIndex = 52;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(499, 1);
this.bdrTop.TabIndex = 51;
this.pbIconLarge.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.pbIconLarge.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbIconLarge.Image");
this.pbIconLarge.Location = new global::System.Drawing.Point(218, 36);
this.pbIconLarge.Margin = new global::System.Windows.Forms.Padding(2);
this.pbIconLarge.Name = "pbIconLarge";
this.pbIconLarge.Size = new global::System.Drawing.Size(62, 56);
this.pbIconLarge.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIconLarge.TabIndex = 13;
this.pbIconLarge.TabStop = false;
this.pbIconLarge.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIconLarge.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIconLarge.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblTitle.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new global::System.Drawing.Font("Segoe UI", 12f, global::System.Drawing.FontStyle.Bold);
this.lblTitle.ForeColor = global::System.Drawing.Color.Black;
this.lblTitle.Location = new global::System.Drawing.Point(99, 89);
this.lblTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new global::System.Drawing.Size(301, 28);
this.lblTitle.TabIndex = 5;
this.lblTitle.Text = "License successfully activated!";
this.lblTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 144);
this.bdrHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(499, 1);
this.bdrHeader.TabIndex = 12;
this.pbIcon.Image = global::Bunifu.Licensing.Properties.Resources.bunifu_framework_logo;
this.pbIcon.Location = new global::System.Drawing.Point(12, 8);
this.pbIcon.Margin = new global::System.Windows.Forms.Padding(2);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(21, 22);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 3;
this.pbIcon.TabStop = false;
this.pbIcon.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIcon.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIcon.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(465, 10);
this.pbClose.Margin = new global::System.Windows.Forms.Padding(2);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 18);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip1.SetToolTip(this.pbClose, "Close (Escape/Enter)");
this.pbClose.Click += new global::System.EventHandler(this.PbClose_Click);
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(34, 9);
this.lblWindowTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(124, 20);
this.lblWindowTitle.TabIndex = 50;
this.lblWindowTitle.Text = "License Activated";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblDescription.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.lblDescription.AutoSize = true;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblDescription.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblDescription.Location = new global::System.Drawing.Point(70, 116);
this.lblDescription.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(358, 20);
this.lblDescription.TabIndex = 6;
this.lblDescription.Text = "Your license was successfully activated for this device";
this.lblDescription.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblDescription.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblDescription.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblPurchaseEmailTitle.AutoSize = true;
this.lblPurchaseEmailTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblPurchaseEmailTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblPurchaseEmailTitle.Location = new global::System.Drawing.Point(31, 228);
this.lblPurchaseEmailTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPurchaseEmailTitle.Name = "lblPurchaseEmailTitle";
this.lblPurchaseEmailTitle.Size = new global::System.Drawing.Size(111, 20);
this.lblPurchaseEmailTitle.TabIndex = 14;
this.lblPurchaseEmailTitle.Text = "Purchase Email:";
this.lblPurchaseEmail.AutoSize = true;
this.lblPurchaseEmail.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblPurchaseEmail.ForeColor = global::System.Drawing.Color.Black;
this.lblPurchaseEmail.Location = new global::System.Drawing.Point(159, 228);
this.lblPurchaseEmail.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPurchaseEmail.Name = "lblPurchaseEmail";
this.lblPurchaseEmail.Size = new global::System.Drawing.Size(0, 20);
this.lblPurchaseEmail.TabIndex = 15;
this.lblLicenseKey.AutoSize = true;
this.lblLicenseKey.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseKey.ForeColor = global::System.Drawing.Color.Black;
this.lblLicenseKey.Location = new global::System.Drawing.Point(159, 249);
this.lblLicenseKey.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseKey.Name = "lblLicenseKey";
this.lblLicenseKey.Size = new global::System.Drawing.Size(0, 20);
this.lblLicenseKey.TabIndex = 17;
this.lblLicenseKeyTitle.AutoSize = true;
this.lblLicenseKeyTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseKeyTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblLicenseKeyTitle.Location = new global::System.Drawing.Point(31, 249);
this.lblLicenseKeyTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseKeyTitle.Name = "lblLicenseKeyTitle";
this.lblLicenseKeyTitle.Size = new global::System.Drawing.Size(88, 20);
this.lblLicenseKeyTitle.TabIndex = 16;
this.lblLicenseKeyTitle.Text = "License Key:";
this.lblProductName.AutoSize = true;
this.lblProductName.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Bold);
this.lblProductName.ForeColor = global::System.Drawing.Color.Black;
this.lblProductName.Location = new global::System.Drawing.Point(159, 165);
this.lblProductName.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblProductName.Name = "lblProductName";
this.lblProductName.Size = new global::System.Drawing.Size(0, 20);
this.lblProductName.TabIndex = 19;
this.lblProductTitle.AutoSize = true;
this.lblProductTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblProductTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblProductTitle.Location = new global::System.Drawing.Point(31, 165);
this.lblProductTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblProductTitle.Name = "lblProductTitle";
this.lblProductTitle.Size = new global::System.Drawing.Size(63, 20);
this.lblProductTitle.TabIndex = 18;
this.lblProductTitle.Text = "Product:";
this.lblActivations.AutoSize = true;
this.lblActivations.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblActivations.ForeColor = global::System.Drawing.Color.Black;
this.lblActivations.Location = new global::System.Drawing.Point(159, 270);
this.lblActivations.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivations.Name = "lblActivations";
this.lblActivations.Size = new global::System.Drawing.Size(0, 20);
this.lblActivations.TabIndex = 21;
this.lblActivationsTitle.AutoSize = true;
this.lblActivationsTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblActivationsTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblActivationsTitle.Location = new global::System.Drawing.Point(31, 270);
this.lblActivationsTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivationsTitle.Name = "lblActivationsTitle";
this.lblActivationsTitle.Size = new global::System.Drawing.Size(85, 20);
this.lblActivationsTitle.TabIndex = 20;
this.lblActivationsTitle.Text = "Activations:";
this.lblExpiryDate.AutoSize = true;
this.lblExpiryDate.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblExpiryDate.ForeColor = global::System.Drawing.Color.Black;
this.lblExpiryDate.Location = new global::System.Drawing.Point(159, 312);
this.lblExpiryDate.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblExpiryDate.Name = "lblExpiryDate";
this.lblExpiryDate.Size = new global::System.Drawing.Size(0, 20);
this.lblExpiryDate.TabIndex = 23;
this.lblExpiryDateTitle.AutoSize = true;
this.lblExpiryDateTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblExpiryDateTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblExpiryDateTitle.Location = new global::System.Drawing.Point(31, 312);
this.lblExpiryDateTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblExpiryDateTitle.Name = "lblExpiryDateTitle";
this.lblExpiryDateTitle.Size = new global::System.Drawing.Size(88, 20);
this.lblExpiryDateTitle.TabIndex = 22;
this.lblExpiryDateTitle.Text = "Expiry Date:";
this.lblRemainingDays.AutoSize = true;
this.lblRemainingDays.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRemainingDays.ForeColor = global::System.Drawing.Color.Black;
this.lblRemainingDays.Location = new global::System.Drawing.Point(159, 332);
this.lblRemainingDays.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRemainingDays.Name = "lblRemainingDays";
this.lblRemainingDays.Size = new global::System.Drawing.Size(0, 20);
this.lblRemainingDays.TabIndex = 25;
this.lblRemainingDaysTitle.AutoSize = true;
this.lblRemainingDaysTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRemainingDaysTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblRemainingDaysTitle.Location = new global::System.Drawing.Point(31, 332);
this.lblRemainingDaysTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRemainingDaysTitle.Name = "lblRemainingDaysTitle";
this.lblRemainingDaysTitle.Size = new global::System.Drawing.Size(119, 20);
this.lblRemainingDaysTitle.TabIndex = 24;
this.lblRemainingDaysTitle.Text = "Remaining Days:";
this.btnClose.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnClose.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnClose.DialogResult = global::System.Windows.Forms.DialogResult.Cancel;
this.btnClose.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnClose.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnClose.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnClose.ForeColor = global::System.Drawing.Color.White;
this.btnClose.Location = new global::System.Drawing.Point(392, 12);
this.btnClose.Margin = new global::System.Windows.Forms.Padding(2);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new global::System.Drawing.Size(95, 35);
this.btnClose.TabIndex = 0;
this.btnClose.Text = "Close";
this.toolTip1.SetToolTip(this.btnClose, "Close (Escape/Enter)");
this.btnClose.UseVisualStyleBackColor = false;
this.btnClose.Click += new global::System.EventHandler(this.BtnClose_Click);
this.pnlFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlFooter.Controls.Add(this.bdrBottom);
this.pnlFooter.Controls.Add(this.bdrBottomLeft);
this.pnlFooter.Controls.Add(this.bdrBottomRight);
this.pnlFooter.Controls.Add(this.lblBullet2);
this.pnlFooter.Controls.Add(this.lnkRenew);
this.pnlFooter.Controls.Add(this.brdFooterSeparator);
this.pnlFooter.Controls.Add(this.btnClose);
this.pnlFooter.Controls.Add(this.lblBullet1);
this.pnlFooter.Controls.Add(this.lnkSupport);
this.pnlFooter.Controls.Add(this.lnkHome);
this.pnlFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pnlFooter.Location = new global::System.Drawing.Point(0, 507);
this.pnlFooter.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlFooter.Name = "pnlFooter";
this.pnlFooter.Size = new global::System.Drawing.Size(499, 58);
this.pnlFooter.TabIndex = 27;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 57);
this.bdrBottom.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(497, 1);
this.bdrBottom.TabIndex = 44;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomLeft.TabIndex = 43;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(498, 1);
this.bdrBottomRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomRight.TabIndex = 42;
this.lblBullet2.AutoSize = true;
this.lblBullet2.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblBullet2.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblBullet2.Location = new global::System.Drawing.Point(138, 18);
this.lblBullet2.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblBullet2.Name = "lblBullet2";
this.lblBullet2.Size = new global::System.Drawing.Size(15, 20);
this.lblBullet2.TabIndex = 28;
this.lblBullet2.Text = "•";
this.lnkRenew.AutoSize = true;
this.lnkRenew.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkRenew.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkRenew.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkRenew.Location = new global::System.Drawing.Point(150, 18);
this.lnkRenew.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkRenew.Name = "lnkRenew";
this.lnkRenew.Size = new global::System.Drawing.Size(53, 20);
this.lnkRenew.TabIndex = 27;
this.lnkRenew.TabStop = true;
this.lnkRenew.Text = "Renew";
this.toolTip1.SetToolTip(this.lnkRenew, "Renew your license(s)");
this.lnkRenew.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkRenew_LinkClicked);
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Margin = new global::System.Windows.Forms.Padding(2);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(499, 1);
this.brdFooterSeparator.TabIndex = 19;
this.lblBullet1.AutoSize = true;
this.lblBullet1.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblBullet1.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblBullet1.Location = new global::System.Drawing.Point(64, 18);
this.lblBullet1.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblBullet1.Name = "lblBullet1";
this.lblBullet1.Size = new global::System.Drawing.Size(15, 20);
this.lblBullet1.TabIndex = 18;
this.lblBullet1.Text = "•";
this.lnkSupport.AutoSize = true;
this.lnkSupport.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkSupport.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkSupport.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkSupport.Location = new global::System.Drawing.Point(78, 18);
this.lnkSupport.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkSupport.Name = "lnkSupport";
this.lnkSupport.Size = new global::System.Drawing.Size(62, 20);
this.lnkSupport.TabIndex = 4;
this.lnkSupport.TabStop = true;
this.lnkSupport.Text = "Support";
this.toolTip1.SetToolTip(this.lnkSupport, "Visit the customer support page");
this.lnkSupport.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkSupport_LinkClicked);
this.lnkHome.AutoSize = true;
this.lnkHome.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkHome.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkHome.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkHome.Location = new global::System.Drawing.Point(16, 18);
this.lnkHome.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkHome.Name = "lnkHome";
this.lnkHome.Size = new global::System.Drawing.Size(50, 20);
this.lnkHome.TabIndex = 5;
this.lnkHome.TabStop = true;
this.lnkHome.Text = "Home";
this.toolTip1.SetToolTip(this.lnkHome, "Visit Bunifu Framework homepage");
this.lnkHome.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkHome_LinkClicked);
this.lnkViewLicenseFile.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.lnkViewLicenseFile.AutoEllipsis = true;
this.lnkViewLicenseFile.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkViewLicenseFile.LinkBehavior = global::System.Windows.Forms.LinkBehavior.AlwaysUnderline;
this.lnkViewLicenseFile.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkViewLicenseFile.Location = new global::System.Drawing.Point(31, 479);
this.lnkViewLicenseFile.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkViewLicenseFile.Name = "lnkViewLicenseFile";
this.lnkViewLicenseFile.Size = new global::System.Drawing.Size(309, 19);
this.lnkViewLicenseFile.TabIndex = 30;
this.lnkViewLicenseFile.TabStop = true;
this.lnkViewLicenseFile.Text = "Navigate to my license details file...";
this.lnkViewLicenseFile.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkViewLicenseFile_LinkClicked);
this.lblLicenseType.AutoSize = true;
this.lblLicenseType.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseType.ForeColor = global::System.Drawing.Color.Black;
this.lblLicenseType.Location = new global::System.Drawing.Point(159, 208);
this.lblLicenseType.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseType.Name = "lblLicenseType";
this.lblLicenseType.Size = new global::System.Drawing.Size(0, 20);
this.lblLicenseType.TabIndex = 29;
this.lblLicenseTypeTitle.AutoSize = true;
this.lblLicenseTypeTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseTypeTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblLicenseTypeTitle.Location = new global::System.Drawing.Point(31, 208);
this.lblLicenseTypeTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseTypeTitle.Name = "lblLicenseTypeTitle";
this.lblLicenseTypeTitle.Size = new global::System.Drawing.Size(95, 20);
this.lblLicenseTypeTitle.TabIndex = 28;
this.lblLicenseTypeTitle.Text = "License Type:";
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(498, 145);
this.bdrMidRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 362);
this.bdrMidRight.TabIndex = 42;
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 145);
this.bdrMidLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 362);
this.bdrMidLeft.TabIndex = 43;
this.lblPlanName.AutoSize = true;
this.lblPlanName.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Bold);
this.lblPlanName.ForeColor = global::System.Drawing.Color.Black;
this.lblPlanName.Location = new global::System.Drawing.Point(159, 186);
this.lblPlanName.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPlanName.Name = "lblPlanName";
this.lblPlanName.Size = new global::System.Drawing.Size(0, 20);
this.lblPlanName.TabIndex = 45;
this.lblPlanTitle.AutoSize = true;
this.lblPlanTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblPlanTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblPlanTitle.Location = new global::System.Drawing.Point(31, 186);
this.lblPlanTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPlanTitle.Name = "lblPlanTitle";
this.lblPlanTitle.Size = new global::System.Drawing.Size(111, 20);
this.lblPlanTitle.TabIndex = 44;
this.lblPlanTitle.Text = "Plan Purchased:";
this.lblRemainingDevices.AutoSize = true;
this.lblRemainingDevices.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRemainingDevices.ForeColor = global::System.Drawing.Color.Black;
this.lblRemainingDevices.Location = new global::System.Drawing.Point(159, 291);
this.lblRemainingDevices.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRemainingDevices.Name = "lblRemainingDevices";
this.lblRemainingDevices.Size = new global::System.Drawing.Size(0, 20);
this.lblRemainingDevices.TabIndex = 50;
this.lblRemainingDevicesTitle.AutoSize = true;
this.lblRemainingDevicesTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRemainingDevicesTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblRemainingDevicesTitle.Location = new global::System.Drawing.Point(31, 291);
this.lblRemainingDevicesTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRemainingDevicesTitle.Name = "lblRemainingDevicesTitle";
this.lblRemainingDevicesTitle.Size = new global::System.Drawing.Size(83, 20);
this.lblRemainingDevicesTitle.TabIndex = 49;
this.lblRemainingDevicesTitle.Text = "Remaining:";
this.ctaAlert.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.ctaAlert.BackColor = global::System.Drawing.Color.FromArgb(255, 251, 230);
this.ctaAlert.Hidden = false;
this.ctaAlert.Location = new global::System.Drawing.Point(31, 368);
this.ctaAlert.Margin = new global::System.Windows.Forms.Padding(2);
this.ctaAlert.MinimumSize = new global::System.Drawing.Size(0, 105);
this.ctaAlert.Name = "ctaAlert";
this.ctaAlert.Size = new global::System.Drawing.Size(436, 105);
this.ctaAlert.TabIndex = 48;
base.AcceptButton = this.btnClose;
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = global::System.Drawing.Color.White;
base.ClientSize = new global::System.Drawing.Size(499, 565);
base.Controls.Add(this.lblRemainingDevices);
base.Controls.Add(this.lblRemainingDevicesTitle);
base.Controls.Add(this.lblPlanName);
base.Controls.Add(this.lblPlanTitle);
base.Controls.Add(this.bdrMidLeft);
base.Controls.Add(this.bdrMidRight);
base.Controls.Add(this.lnkViewLicenseFile);
base.Controls.Add(this.lblLicenseType);
base.Controls.Add(this.lblLicenseTypeTitle);
base.Controls.Add(this.pnlFooter);
base.Controls.Add(this.lblRemainingDays);
base.Controls.Add(this.lblRemainingDaysTitle);
base.Controls.Add(this.lblExpiryDate);
base.Controls.Add(this.lblExpiryDateTitle);
base.Controls.Add(this.lblActivations);
base.Controls.Add(this.lblActivationsTitle);
base.Controls.Add(this.lblProductName);
base.Controls.Add(this.lblProductTitle);
base.Controls.Add(this.lblLicenseKey);
base.Controls.Add(this.lblLicenseKeyTitle);
base.Controls.Add(this.lblPurchaseEmail);
base.Controls.Add(this.lblPurchaseEmailTitle);
base.Controls.Add(this.pnlHeader);
base.Controls.Add(this.ctaAlert);
this.Font = new global::System.Drawing.Font("Segoe UI", 9f);
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Margin = new global::System.Windows.Forms.Padding(2);
base.Name = "ActivationSuccess";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Activation Successful";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.ActivationSuccess_Load);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.ActivationSuccess_KeyDown);
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIconLarge).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
this.pnlFooter.ResumeLayout(false);
this.pnlFooter.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x04000018 RID: 24
private global::System.ComponentModel.IContainer components = null;
// Token: 0x04000019 RID: 25
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x0400001A RID: 26
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x0400001B RID: 27
private global::System.Windows.Forms.Label lblTitle;
// Token: 0x0400001C RID: 28
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x0400001D RID: 29
private global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x0400001E RID: 30
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x0400001F RID: 31
private global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x04000020 RID: 32
private global::System.Windows.Forms.PictureBox pbIconLarge;
// Token: 0x04000021 RID: 33
private global::System.Windows.Forms.Label lblPurchaseEmailTitle;
// Token: 0x04000022 RID: 34
private global::System.Windows.Forms.Label lblPurchaseEmail;
// Token: 0x04000023 RID: 35
private global::System.Windows.Forms.Label lblLicenseKey;
// Token: 0x04000024 RID: 36
private global::System.Windows.Forms.Label lblLicenseKeyTitle;
// Token: 0x04000025 RID: 37
private global::System.Windows.Forms.Label lblProductName;
// Token: 0x04000026 RID: 38
private global::System.Windows.Forms.Label lblProductTitle;
// Token: 0x04000027 RID: 39
private global::System.Windows.Forms.Label lblActivations;
// Token: 0x04000028 RID: 40
private global::System.Windows.Forms.Label lblActivationsTitle;
// Token: 0x04000029 RID: 41
private global::System.Windows.Forms.Label lblExpiryDate;
// Token: 0x0400002A RID: 42
private global::System.Windows.Forms.Label lblExpiryDateTitle;
// Token: 0x0400002B RID: 43
private global::System.Windows.Forms.Label lblRemainingDays;
// Token: 0x0400002C RID: 44
private global::System.Windows.Forms.Button btnClose;
// Token: 0x0400002D RID: 45
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x0400002E RID: 46
private global::System.Windows.Forms.Label lblBullet1;
// Token: 0x0400002F RID: 47
private global::System.Windows.Forms.LinkLabel lnkSupport;
// Token: 0x04000030 RID: 48
private global::System.Windows.Forms.LinkLabel lnkHome;
// Token: 0x04000031 RID: 49
private global::System.Windows.Forms.Label lblBullet2;
// Token: 0x04000032 RID: 50
private global::System.Windows.Forms.LinkLabel lnkRenew;
// Token: 0x04000033 RID: 51
private global::System.Windows.Forms.ToolTip toolTip1;
// Token: 0x04000034 RID: 52
private global::System.Windows.Forms.Label lblLicenseType;
// Token: 0x04000035 RID: 53
private global::System.Windows.Forms.Label lblLicenseTypeTitle;
// Token: 0x04000036 RID: 54
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x04000037 RID: 55
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x04000038 RID: 56
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x04000039 RID: 57
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x0400003A RID: 58
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x0400003B RID: 59
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x0400003C RID: 60
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x0400003D RID: 61
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x0400003E RID: 62
private global::System.Windows.Forms.Label lblPlanName;
// Token: 0x0400003F RID: 63
private global::System.Windows.Forms.Label lblPlanTitle;
// Token: 0x04000040 RID: 64
public global::Bunifu.Licensing.Views.Controls.Alert ctaAlert;
// Token: 0x04000041 RID: 65
private global::System.Windows.Forms.Label lblRemainingDevices;
// Token: 0x04000042 RID: 66
private global::System.Windows.Forms.Label lblRemainingDevicesTitle;
// Token: 0x04000043 RID: 67
public global::System.Windows.Forms.Panel pnlFooter;
// Token: 0x04000044 RID: 68
public global::System.Windows.Forms.LinkLabel lnkViewLicenseFile;
// Token: 0x04000045 RID: 69
public global::System.Windows.Forms.Label lblRemainingDaysTitle;
}
}
+437
View File
@@ -0,0 +1,437 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Properties;
using Bunifu.Licensing.Views.Controls;
using Bunifu.Licensing.Views.Transitions;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000004 RID: 4
[DebuggerStepThrough]
internal partial class ActivationSuccess : Form
{
// Token: 0x06000040 RID: 64 RVA: 0x00004A0D File Offset: 0x00002C0D
public ActivationSuccess()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x1700000B RID: 11
// (get) Token: 0x06000041 RID: 65 RVA: 0x00004A2C File Offset: 0x00002C2C
// (set) Token: 0x06000042 RID: 66 RVA: 0x00004A34 File Offset: 0x00002C34
public string ProductShortForm { get; set; }
// Token: 0x1700000C RID: 12
// (get) Token: 0x06000043 RID: 67 RVA: 0x00004A3D File Offset: 0x00002C3D
// (set) Token: 0x06000044 RID: 68 RVA: 0x00004A4A File Offset: 0x00002C4A
public string Product
{
get
{
return this.lblProductName.Text;
}
set
{
this.lblProductName.Text = value;
}
}
// Token: 0x1700000D RID: 13
// (get) Token: 0x06000045 RID: 69 RVA: 0x00004A59 File Offset: 0x00002C59
// (set) Token: 0x06000046 RID: 70 RVA: 0x00004A66 File Offset: 0x00002C66
public string Plan
{
get
{
return this.lblPlanName.Text;
}
set
{
this.lblPlanName.Text = value;
}
}
// Token: 0x1700000E RID: 14
// (get) Token: 0x06000047 RID: 71 RVA: 0x00004A75 File Offset: 0x00002C75
// (set) Token: 0x06000048 RID: 72 RVA: 0x00004A82 File Offset: 0x00002C82
public string LicenseType
{
get
{
return this.lblLicenseType.Text;
}
set
{
this.lblLicenseType.Text = value;
}
}
// Token: 0x1700000F RID: 15
// (get) Token: 0x06000049 RID: 73 RVA: 0x00004A91 File Offset: 0x00002C91
// (set) Token: 0x0600004A RID: 74 RVA: 0x00004A9E File Offset: 0x00002C9E
public string PurchaseEmail
{
get
{
return this.lblPurchaseEmail.Text;
}
set
{
this.lblPurchaseEmail.Text = value;
}
}
// Token: 0x17000010 RID: 16
// (get) Token: 0x0600004B RID: 75 RVA: 0x00004AAD File Offset: 0x00002CAD
// (set) Token: 0x0600004C RID: 76 RVA: 0x00004ABA File Offset: 0x00002CBA
public string LicenseKey
{
get
{
return this.lblLicenseKey.Text;
}
set
{
this.lblLicenseKey.Text = value;
}
}
// Token: 0x17000011 RID: 17
// (get) Token: 0x0600004D RID: 77 RVA: 0x00004AC9 File Offset: 0x00002CC9
// (set) Token: 0x0600004E RID: 78 RVA: 0x00004AD6 File Offset: 0x00002CD6
public string NoOfActivations
{
get
{
return this.lblActivations.Text;
}
set
{
this.lblActivations.Text = value;
}
}
// Token: 0x17000012 RID: 18
// (get) Token: 0x0600004F RID: 79 RVA: 0x00004AE5 File Offset: 0x00002CE5
// (set) Token: 0x06000050 RID: 80 RVA: 0x00004AF2 File Offset: 0x00002CF2
public string RemainingActivations
{
get
{
return this.lblRemainingDevices.Text;
}
set
{
this.lblRemainingDevices.Text = value;
}
}
// Token: 0x17000013 RID: 19
// (get) Token: 0x06000051 RID: 81 RVA: 0x00004B01 File Offset: 0x00002D01
// (set) Token: 0x06000052 RID: 82 RVA: 0x00004B0E File Offset: 0x00002D0E
public string ExpiryDate
{
get
{
return this.lblExpiryDate.Text;
}
set
{
this.lblExpiryDate.Text = value;
}
}
// Token: 0x17000014 RID: 20
// (get) Token: 0x06000053 RID: 83 RVA: 0x00004B1D File Offset: 0x00002D1D
// (set) Token: 0x06000054 RID: 84 RVA: 0x00004B2C File Offset: 0x00002D2C
public string RemainingDays
{
get
{
return this.lblRemainingDays.Text;
}
set
{
this.lblRemainingDays.Text = value;
try
{
bool flag = !(value == "Unlimited");
if (flag)
{
bool flag2 = Convert.ToInt32(value) <= 10;
if (flag2)
{
this.lblRemainingDays.ForeColor = Color.Tomato;
}
else
{
this.lblRemainingDays.ForeColor = Color.Black;
}
}
}
catch (Exception)
{
}
}
}
// Token: 0x06000055 RID: 85 RVA: 0x00004BAC File Offset: 0x00002DAC
public new void Show()
{
base.Opacity = 1.0;
base.Show();
}
// Token: 0x06000056 RID: 86 RVA: 0x00004BC8 File Offset: 0x00002DC8
public new DialogResult ShowDialog()
{
try
{
base.Opacity = 1.0;
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x06000057 RID: 87 RVA: 0x00004C0C File Offset: 0x00002E0C
public new void Close()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Close();
};
}
// Token: 0x06000058 RID: 88 RVA: 0x00004C60 File Offset: 0x00002E60
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x06000059 RID: 89 RVA: 0x00004CB3 File Offset: 0x00002EB3
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x0600005A RID: 90 RVA: 0x00004CC6 File Offset: 0x00002EC6
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x0600005B RID: 91 RVA: 0x00004CDC File Offset: 0x00002EDC
public bool ExploreFile(string filePath)
{
bool flag = !File.Exists(filePath);
bool flag2;
if (flag)
{
flag2 = false;
}
else
{
filePath = Path.GetFullPath(filePath);
Process.Start("explorer.exe", string.Format("/select,\"{0}\"", filePath));
flag2 = true;
}
return flag2;
}
// Token: 0x0600005C RID: 92 RVA: 0x00004D20 File Offset: 0x00002F20
public bool ExploreFolder(string folderPath)
{
bool flag;
try
{
Process.Start(new ProcessStartInfo
{
FileName = folderPath,
UseShellExecute = true,
Verb = "open"
});
flag = true;
}
catch (Exception)
{
flag = false;
}
return flag;
}
// Token: 0x0600005D RID: 93 RVA: 0x00004D74 File Offset: 0x00002F74
private void ImproveTextRendering()
{
this.btnClose.UseCompatibleTextRendering = false;
this.lblTitle.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
this.lblDescription.UseCompatibleTextRendering = false;
this.lblActivations.UseCompatibleTextRendering = false;
this.lblActivationsTitle.UseCompatibleTextRendering = false;
this.lblBullet1.UseCompatibleTextRendering = false;
this.lblBullet2.UseCompatibleTextRendering = false;
this.lblLicenseKey.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
this.lblExpiryDate.UseCompatibleTextRendering = false;
this.lblExpiryDateTitle.UseCompatibleTextRendering = false;
this.lblLicenseKeyTitle.UseCompatibleTextRendering = false;
this.lblLicenseType.UseCompatibleTextRendering = false;
this.lblLicenseTypeTitle.UseCompatibleTextRendering = false;
this.lblProductName.UseCompatibleTextRendering = false;
this.lblProductTitle.UseCompatibleTextRendering = false;
this.lblPlanTitle.UseCompatibleTextRendering = false;
this.lblPlanName.UseCompatibleTextRendering = false;
this.lblPurchaseEmail.UseCompatibleTextRendering = false;
this.lblPurchaseEmailTitle.UseCompatibleTextRendering = false;
this.lblRemainingDays.UseCompatibleTextRendering = false;
this.lblRemainingDevices.UseCompatibleTextRendering = false;
this.lblRemainingDevicesTitle.UseCompatibleTextRendering = false;
this.lblRemainingDaysTitle.UseCompatibleTextRendering = false;
this.lnkViewLicenseFile.UseCompatibleTextRendering = false;
this.lnkSupport.UseCompatibleTextRendering = false;
this.lnkRenew.UseCompatibleTextRendering = false;
this.lnkHome.UseCompatibleTextRendering = false;
}
// Token: 0x0600005E RID: 94 RVA: 0x00004EFC File Offset: 0x000030FC
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
this.bdrMidLeft.Hide();
this.bdrMidRight.Hide();
this.bdrBottomLeft.Hide();
this.bdrBottomRight.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
this.bdrMidLeft.Show();
this.bdrMidRight.Show();
this.bdrBottomLeft.Show();
this.bdrBottomRight.Show();
}
}
// Token: 0x0600005F RID: 95 RVA: 0x00004FE0 File Offset: 0x000031E0
private void ActivationSuccess_Load(object sender, EventArgs e)
{
this.ApplyShadows();
}
// Token: 0x06000060 RID: 96 RVA: 0x00004FEC File Offset: 0x000031EC
private void ActivationSuccess_KeyDown(object sender, KeyEventArgs e)
{
bool flag = e.KeyCode == Keys.Return || e.KeyCode == Keys.Escape;
if (flag)
{
this.Close();
}
}
// Token: 0x06000061 RID: 97 RVA: 0x0000501E File Offset: 0x0000321E
private void BtnClose_Click(object sender, EventArgs e)
{
this.Close();
}
// Token: 0x06000062 RID: 98 RVA: 0x00005028 File Offset: 0x00003228
private void PbClose_Click(object sender, EventArgs e)
{
this.Close();
}
// Token: 0x06000063 RID: 99 RVA: 0x00005032 File Offset: 0x00003232
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x06000064 RID: 100 RVA: 0x00005048 File Offset: 0x00003248
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x06000065 RID: 101 RVA: 0x000050C4 File Offset: 0x000032C4
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x06000066 RID: 102 RVA: 0x00005119 File Offset: 0x00003319
private void LnkHome_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com");
}
// Token: 0x06000067 RID: 103 RVA: 0x00005127 File Offset: 0x00003327
private void LnkSupport_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com/support");
}
// Token: 0x06000068 RID: 104 RVA: 0x00005135 File Offset: 0x00003335
private void LnkRenew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(LicenseValidator.GetRenewalLink(""));
}
// Token: 0x06000069 RID: 105 RVA: 0x00005148 File Offset: 0x00003348
private void LnkViewLicenseFile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.ExploreFile(Registry.FolderPath + this.ProductShortForm + "\\License Information.txt");
}
// Token: 0x04000014 RID: 20
private bool _drag;
// Token: 0x04000015 RID: 21
private int _mousey;
// Token: 0x04000016 RID: 22
private int _mousex;
}
}
Binary file not shown.
+300
View File
@@ -0,0 +1,300 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;
using Bunifu.Licensing.Properties;
namespace Bunifu.Licensing.Views.Controls
{
// Token: 0x02000022 RID: 34
[ToolboxItem(false)]
[DebuggerStepThrough]
[DefaultEvent("Click")]
[DefaultProperty("Hidden")]
[Description("Provides a call-to-action alert message view.")]
internal class Alert : UserControl
{
// Token: 0x0600017A RID: 378 RVA: 0x00014E1D File Offset: 0x0001301D
public Alert()
{
this.InitializeComponent();
this.ImproveTextRendering();
this.ResizeSurface();
}
// Token: 0x17000024 RID: 36
// (get) Token: 0x0600017B RID: 379 RVA: 0x00014E58 File Offset: 0x00013058
// (set) Token: 0x0600017C RID: 380 RVA: 0x00014E60 File Offset: 0x00013060
[Category("Appearance")]
[Description("Sets a value indicating whether the alert components will be displayed.")]
public bool Hidden
{
get
{
return this._hidden;
}
set
{
this._hidden = value;
if (value)
{
this.pbIcon.Hide();
this.lblMessage.Hide();
this.boxContainer.Hide();
this.lstProducts.Hide();
this.btnActivate.Hide();
base.Hide();
}
else
{
this.pbIcon.Show();
this.lblMessage.Show();
this.boxContainer.Show();
this.lstProducts.Show();
this.btnActivate.Show();
base.Show();
}
}
}
// Token: 0x17000025 RID: 37
// (get) Token: 0x0600017D RID: 381 RVA: 0x00014F08 File Offset: 0x00013108
[Browsable(true)]
[Category("Appearance")]
[ParenthesizePropertyName(true)]
[Description("Sets the list of product items.")]
[Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public CheckedListBox.ObjectCollection Items
{
get
{
this.ResizeSurface();
return this.lstProducts.Items;
}
}
// Token: 0x17000026 RID: 38
// (get) Token: 0x0600017E RID: 382 RVA: 0x00014F2C File Offset: 0x0001312C
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public CheckedListBox.CheckedItemCollection CheckedItems
{
get
{
return this.lstProducts.CheckedItems;
}
}
// Token: 0x0600017F RID: 383 RVA: 0x00014F49 File Offset: 0x00013149
private void ImproveTextRendering()
{
this.lblMessage.UseCompatibleTextRendering = false;
this.lstProducts.UseCompatibleTextRendering = false;
this.btnActivate.UseCompatibleTextRendering = false;
}
// Token: 0x06000180 RID: 384 RVA: 0x00014F74 File Offset: 0x00013174
public void ResizeSurface()
{
this.lstProducts.Top = this.lblMessage.Bottom + 10;
this.lstProducts.Height = 28 * this.lstProducts.Items.Count;
base.Height = this.lblMessage.Height + this.lblMessage.Top * 2 + 22 * this.lstProducts.Items.Count + this.btnActivate.Height + 15;
this.btnActivate.Left = base.Width - this.btnActivate.Width - 4;
this.btnCancel.Left = this.btnActivate.Left - this.btnCancel.Width;
this.btnActivate.Top = base.Height - this.btnActivate.Height - 4;
this.btnCancel.Top = this.btnActivate.Top;
this.boxContainer.Height = base.Height;
this.boxContainer.Width = base.Width;
base.Invalidate();
this.Refresh();
}
// Token: 0x14000002 RID: 2
// (add) Token: 0x06000181 RID: 385 RVA: 0x000150AC File Offset: 0x000132AC
// (remove) Token: 0x06000182 RID: 386 RVA: 0x000150E4 File Offset: 0x000132E4
[Category("Bunifu Events")]
[Description("Occurs whenever the 'Activate' button has been clicked.")]
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event EventHandler ActivateClicked = null;
// Token: 0x14000003 RID: 3
// (add) Token: 0x06000183 RID: 387 RVA: 0x0001511C File Offset: 0x0001331C
// (remove) Token: 0x06000184 RID: 388 RVA: 0x00015154 File Offset: 0x00013354
[Category("Bunifu Events")]
[Description("Occurs whenever the 'Cancel' button has been clicked.")]
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event EventHandler CancelClicked = null;
// Token: 0x06000185 RID: 389 RVA: 0x00015189 File Offset: 0x00013389
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
this.ResizeSurface();
}
// Token: 0x06000186 RID: 390 RVA: 0x0001519B File Offset: 0x0001339B
private void OnClickActivate(object sender, EventArgs e)
{
EventHandler activateClicked = this.ActivateClicked;
if (activateClicked != null)
{
activateClicked(this, e);
}
}
// Token: 0x06000187 RID: 391 RVA: 0x000151B2 File Offset: 0x000133B2
private void OnClickCancel(object sender, EventArgs e)
{
EventHandler cancelClicked = this.CancelClicked;
if (cancelClicked != null)
{
cancelClicked(this, e);
}
}
// Token: 0x06000188 RID: 392 RVA: 0x000151C9 File Offset: 0x000133C9
private void OnClickLink(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com/free-download");
}
// Token: 0x06000189 RID: 393 RVA: 0x000151D8 File Offset: 0x000133D8
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x0600018A RID: 394 RVA: 0x00015210 File Offset: 0x00013410
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Alert));
this.lblMessage = new Label();
this.pbIcon = new PictureBox();
this.btnActivate = new Button();
this.lstProducts = new CheckedListBox();
this.btnCancel = new Button();
this.toolTip = new ToolTip(this.components);
this.boxContainer = new Box();
((ISupportInitialize)this.pbIcon).BeginInit();
base.SuspendLayout();
this.lblMessage.AutoEllipsis = true;
this.lblMessage.AutoSize = true;
this.lblMessage.BackColor = Color.Transparent;
this.lblMessage.Cursor = Cursors.Arrow;
this.lblMessage.Font = new Font("Segoe UI", 9f);
this.lblMessage.ForeColor = Color.Black;
this.lblMessage.Location = new Point(30, 7);
this.lblMessage.MaximumSize = new Size(340, 0);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new Size(317, 30);
this.lblMessage.TabIndex = 53;
this.lblMessage.Text = "Your license also allows activating the following additional products: (Check and click 'Activate')";
this.pbIcon.Image = Resources.yellow_warning;
this.pbIcon.Location = new Point(7, 7);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new Size(19, 18);
this.pbIcon.SizeMode = PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 59;
this.pbIcon.TabStop = false;
this.btnActivate.Anchor = AnchorStyles.Right;
this.btnActivate.BackColor = Color.FromArgb(255, 202, 40);
this.btnActivate.Cursor = Cursors.Hand;
this.btnActivate.FlatAppearance.BorderColor = Color.FromArgb(255, 202, 40);
this.btnActivate.FlatStyle = FlatStyle.Flat;
this.btnActivate.Font = new Font("Segoe UI", 9f);
this.btnActivate.ForeColor = Color.Black;
this.btnActivate.Location = new Point(294, 88);
this.btnActivate.Name = "btnActivate";
this.btnActivate.Size = new Size(96, 29);
this.btnActivate.TabIndex = 60;
this.btnActivate.Text = "Activate";
this.toolTip.SetToolTip(this.btnActivate, "Activate products");
this.btnActivate.UseVisualStyleBackColor = false;
this.btnActivate.Click += this.OnClickActivate;
this.lstProducts.BackColor = Color.FromArgb(255, 251, 230);
this.lstProducts.BorderStyle = BorderStyle.None;
this.lstProducts.CheckOnClick = true;
this.lstProducts.Cursor = Cursors.Default;
this.lstProducts.Font = new Font("Segoe UI", 9f);
this.lstProducts.ForeColor = Color.Black;
this.lstProducts.FormattingEnabled = true;
this.lstProducts.Location = new Point(31, 56);
this.lstProducts.Name = "lstProducts";
this.lstProducts.Size = new Size(263, 18);
this.lstProducts.TabIndex = 61;
this.btnCancel.Anchor = AnchorStyles.Right;
this.btnCancel.BackColor = Color.Transparent;
this.btnCancel.Cursor = Cursors.Hand;
this.btnCancel.FlatAppearance.BorderColor = Color.FromArgb(255, 202, 40);
this.btnCancel.FlatStyle = FlatStyle.Flat;
this.btnCancel.Font = new Font("Segoe UI", 9f);
this.btnCancel.ForeColor = Color.FromArgb(170, 134, 26);
this.btnCancel.Image = (Image)componentResourceManager.GetObject("btnCancel.Image");
this.btnCancel.Location = new Point(260, 88);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new Size(34, 29);
this.btnCancel.TabIndex = 62;
this.toolTip.SetToolTip(this.btnCancel, "Hide message");
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Click += this.OnClickCancel;
this.boxContainer.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
this.boxContainer.BackColor = Color.FromArgb(255, 251, 230);
this.boxContainer.ForeColor = Color.Black;
this.boxContainer.LineColor = Color.FromArgb(255, 229, 143);
this.boxContainer.LineStyle = Box.LineStyles.Solid;
this.boxContainer.Location = new Point(0, 0);
this.boxContainer.Name = "boxContainer";
this.boxContainer.Size = new Size(393, 120);
this.boxContainer.TabIndex = 58;
base.AutoScaleMode = AutoScaleMode.None;
this.BackColor = Color.FromArgb(255, 251, 230);
base.Controls.Add(this.btnCancel);
base.Controls.Add(this.lstProducts);
base.Controls.Add(this.btnActivate);
base.Controls.Add(this.pbIcon);
base.Controls.Add(this.lblMessage);
base.Controls.Add(this.boxContainer);
base.Name = "Alert";
base.Size = new Size(393, 120);
((ISupportInitialize)this.pbIcon).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x04000114 RID: 276
private bool _hidden = false;
// Token: 0x04000117 RID: 279
private IContainer components = null;
// Token: 0x04000118 RID: 280
private Box boxContainer;
// Token: 0x04000119 RID: 281
private PictureBox pbIcon;
// Token: 0x0400011A RID: 282
private Button btnActivate;
// Token: 0x0400011B RID: 283
public CheckedListBox lstProducts;
// Token: 0x0400011C RID: 284
public Label lblMessage;
// Token: 0x0400011D RID: 285
private Button btnCancel;
// Token: 0x0400011E RID: 286
private ToolTip toolTip;
}
}
Binary file not shown.
+192
View File
@@ -0,0 +1,192 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace Bunifu.Licensing.Views.Controls
{
// Token: 0x02000023 RID: 35
[ToolboxItem(false)]
[DebuggerStepThrough]
[DefaultEvent("Click")]
[DefaultProperty("LineColor")]
[Description("Provides a standard, gradient-filled Bunifu Tab Lines.")]
internal class Box : UserControl
{
// Token: 0x0600018B RID: 395 RVA: 0x000158A4 File Offset: 0x00013AA4
public Box()
{
this.InitializeComponent();
base.SetStyle(ControlStyles.UserPaint, true);
base.SetStyle(ControlStyles.ResizeRedraw, true);
base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
base.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.ProvideDefaults();
}
// Token: 0x17000027 RID: 39
// (get) Token: 0x0600018C RID: 396 RVA: 0x0001592C File Offset: 0x00013B2C
// (set) Token: 0x0600018D RID: 397 RVA: 0x00015944 File Offset: 0x00013B44
[DefaultValue(true)]
[Category("Bunifu Properties")]
[Description("Sets the box line color.")]
public Color LineColor
{
get
{
return this._lineColor;
}
set
{
this._lineColor = value;
base.Invalidate();
EventHandler lineColorChanged = this.LineColorChanged;
if (lineColorChanged != null)
{
lineColorChanged(this, EventArgs.Empty);
}
}
}
// Token: 0x17000028 RID: 40
// (get) Token: 0x0600018E RID: 398 RVA: 0x0001596D File Offset: 0x00013B6D
// (set) Token: 0x0600018F RID: 399 RVA: 0x00015975 File Offset: 0x00013B75
[Category("Bunifu Properties")]
[Description("Sets the box line style.")]
public Box.LineStyles LineStyle
{
get
{
return this._lineStyle;
}
set
{
this._lineStyle = value;
base.Invalidate();
}
}
// Token: 0x17000029 RID: 41
// (get) Token: 0x06000190 RID: 400 RVA: 0x00015986 File Offset: 0x00013B86
// (set) Token: 0x06000191 RID: 401 RVA: 0x0001598E File Offset: 0x00013B8E
[Browsable(true)]
public override Color BackColor
{
get
{
return base.BackColor;
}
set
{
base.BackColor = value;
}
}
// Token: 0x06000192 RID: 402 RVA: 0x00015998 File Offset: 0x00013B98
private void ProvideDefaults()
{
try
{
this.LineColor = Color.DodgerBlue;
this.BackColor = Color.Transparent;
}
catch (Exception)
{
}
}
// Token: 0x14000004 RID: 4
// (add) Token: 0x06000193 RID: 403 RVA: 0x000159D8 File Offset: 0x00013BD8
// (remove) Token: 0x06000194 RID: 404 RVA: 0x00015A10 File Offset: 0x00013C10
[Category("Bunifu Events")]
[Description("Occurs whenever the 'LineColor' property has been changed.")]
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event EventHandler LineColorChanged = null;
// Token: 0x06000195 RID: 405 RVA: 0x00015A48 File Offset: 0x00013C48
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
try
{
using (Pen pen = new Pen(this.LineColor, 1f))
{
bool flag = this._lineStyle == Box.LineStyles.Solid;
if (flag)
{
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
pen.DashStyle = DashStyle.Solid;
}
else
{
bool flag2 = this._lineStyle == Box.LineStyles.Dashed;
if (flag2)
{
e.Graphics.SmoothingMode = SmoothingMode.Default;
pen.DashStyle = DashStyle.Dash;
}
else
{
bool flag3 = this._lineStyle == Box.LineStyles.Dotted;
if (flag3)
{
e.Graphics.SmoothingMode = SmoothingMode.Default;
pen.DashStyle = DashStyle.Dot;
}
}
}
e.Graphics.DrawRectangle(pen, 0, 0, base.Width - 1, base.Height - 1);
}
}
catch (Exception)
{
}
}
// Token: 0x06000196 RID: 406 RVA: 0x00015B34 File Offset: 0x00013D34
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000197 RID: 407 RVA: 0x00015B6C File Offset: 0x00013D6C
private void InitializeComponent()
{
base.SuspendLayout();
base.AutoScaleMode = AutoScaleMode.None;
this.BackColor = SystemColors.Control;
this.DoubleBuffered = true;
base.Name = "Box";
base.Size = new Size(75, 30);
base.ResumeLayout(false);
}
// Token: 0x0400011F RID: 287
private Box.LineStyles _lineStyle = Box.LineStyles.Solid;
// Token: 0x04000120 RID: 288
private Color _lineColor = Color.FromArgb(23, 122, 235);
// Token: 0x04000122 RID: 290
private IContainer components = null;
// Token: 0x02000048 RID: 72
public enum LineStyles
{
// Token: 0x040001BD RID: 445
Solid,
// Token: 0x040001BE RID: 446
Dashed,
// Token: 0x040001BF RID: 447
Dotted
}
}
}
Binary file not shown.
@@ -0,0 +1,166 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace Bunifu.Licensing.Views.Controls
{
// Token: 0x02000024 RID: 36
[ToolboxItem(false)]
[DebuggerStepThrough]
[DefaultEvent("Click")]
[DefaultProperty("Hidden")]
[Description("Provides a free-trial message view in the activation window.")]
internal class FreeTrialMessage : UserControl
{
// Token: 0x06000198 RID: 408 RVA: 0x00015BC1 File Offset: 0x00013DC1
public FreeTrialMessage()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x1700002A RID: 42
// (get) Token: 0x06000199 RID: 409 RVA: 0x00015BE7 File Offset: 0x00013DE7
// (set) Token: 0x0600019A RID: 410 RVA: 0x00015BF0 File Offset: 0x00013DF0
[Category("Appearance")]
[Description("Sets a value indicating whether the free-trial message's components will be displayed.")]
public bool Hidden
{
get
{
return this._hidden;
}
set
{
this._hidden = value;
if (value)
{
this.lblMessage.Hide();
this.lblSideQuote.Hide();
this.lblQuoteContainer.Hide();
this.lnkFreeTrialSignup.Hide();
}
else
{
this.lblMessage.Show();
this.lblSideQuote.Show();
this.lblQuoteContainer.Show();
this.lnkFreeTrialSignup.Show();
}
}
}
// Token: 0x0600019B RID: 411 RVA: 0x00015C70 File Offset: 0x00013E70
private void ImproveTextRendering()
{
this.lblMessage.UseCompatibleTextRendering = false;
this.lblSideQuote.UseCompatibleTextRendering = false;
this.lblQuoteContainer.UseCompatibleTextRendering = false;
this.lnkFreeTrialSignup.UseCompatibleTextRendering = false;
}
// Token: 0x0600019C RID: 412 RVA: 0x00015CA7 File Offset: 0x00013EA7
private void lnkFreeTrialSignup_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com/free-download");
}
// Token: 0x0600019D RID: 413 RVA: 0x00015CB8 File Offset: 0x00013EB8
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x0600019E RID: 414 RVA: 0x00015CF0 File Offset: 0x00013EF0
private void InitializeComponent()
{
this.components = new Container();
this.lblMessage = new Label();
this.lnkFreeTrialSignup = new LinkLabel();
this.lblSideQuote = new Label();
this.lblQuoteContainer = new Label();
this.toolTip = new ToolTip(this.components);
base.SuspendLayout();
this.lblMessage.Anchor = AnchorStyles.Left;
this.lblMessage.AutoSize = true;
this.lblMessage.BackColor = Color.FromArgb(235, 244, 255);
this.lblMessage.Font = new Font("Segoe UI", 9f);
this.lblMessage.ForeColor = Color.FromArgb(64, 64, 64);
this.lblMessage.Location = new Point(20, 14);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new Size(292, 15);
this.lblMessage.TabIndex = 12;
this.lblMessage.Text = "If you haven't yet registered for a free trial, please visit:";
this.lnkFreeTrialSignup.ActiveLinkColor = Color.LimeGreen;
this.lnkFreeTrialSignup.Anchor = AnchorStyles.Left;
this.lnkFreeTrialSignup.AutoSize = true;
this.lnkFreeTrialSignup.BackColor = Color.FromArgb(235, 244, 255);
this.lnkFreeTrialSignup.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.lnkFreeTrialSignup.LinkBehavior = LinkBehavior.AlwaysUnderline;
this.lnkFreeTrialSignup.LinkColor = Color.DodgerBlue;
this.lnkFreeTrialSignup.Location = new Point(20, 30);
this.lnkFreeTrialSignup.Name = "lnkFreeTrialSignup";
this.lnkFreeTrialSignup.Size = new Size(249, 15);
this.lnkFreeTrialSignup.TabIndex = 13;
this.lnkFreeTrialSignup.TabStop = true;
this.lnkFreeTrialSignup.Text = "https://bunifuframework.com/free-download";
this.toolTip.SetToolTip(this.lnkFreeTrialSignup, "Register with your email for a 14-day free trial...");
this.lnkFreeTrialSignup.LinkClicked += this.lnkFreeTrialSignup_LinkClicked;
this.lblSideQuote.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
this.lblSideQuote.BackColor = Color.FromArgb(105, 181, 255);
this.lblSideQuote.Font = new Font("Segoe UI", 9f);
this.lblSideQuote.ForeColor = Color.Black;
this.lblSideQuote.Location = new Point(9, 7);
this.lblSideQuote.Name = "lblSideQuote";
this.lblSideQuote.Size = new Size(3, 47);
this.lblSideQuote.TabIndex = 14;
this.lblQuoteContainer.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
this.lblQuoteContainer.BackColor = Color.FromArgb(235, 244, 255);
this.lblQuoteContainer.Font = new Font("Segoe UI", 9f);
this.lblQuoteContainer.ForeColor = Color.Black;
this.lblQuoteContainer.Location = new Point(12, 7);
this.lblQuoteContainer.Name = "lblQuoteContainer";
this.lblQuoteContainer.Size = new Size(362, 47);
this.lblQuoteContainer.TabIndex = 15;
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
this.BackColor = Color.White;
base.Controls.Add(this.lblSideQuote);
base.Controls.Add(this.lnkFreeTrialSignup);
base.Controls.Add(this.lblMessage);
base.Controls.Add(this.lblQuoteContainer);
base.Name = "FreeTrialMessage";
base.Size = new Size(383, 60);
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x04000123 RID: 291
private bool _hidden = false;
// Token: 0x04000124 RID: 292
private IContainer components = null;
// Token: 0x04000125 RID: 293
private Label lblMessage;
// Token: 0x04000126 RID: 294
private LinkLabel lnkFreeTrialSignup;
// Token: 0x04000127 RID: 295
private Label lblSideQuote;
// Token: 0x04000128 RID: 296
private Label lblQuoteContainer;
// Token: 0x04000129 RID: 297
private ToolTip toolTip;
}
}
+403
View File
@@ -0,0 +1,403 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000005 RID: 5
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class FreeTrialEnded : global::System.Windows.Forms.Form
{
// Token: 0x06000084 RID: 132 RVA: 0x00007E1C File Offset: 0x0000601C
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000085 RID: 133 RVA: 0x00007E54 File Offset: 0x00006054
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.FreeTrialEnded));
this.pnlFooter = new global::System.Windows.Forms.Panel();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.btnViewPricingPlans = new global::System.Windows.Forms.Button();
this.btnCancel = new global::System.Windows.Forms.Button();
this.pnlBody = new global::System.Windows.Forms.Panel();
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.pbShrink = new global::System.Windows.Forms.PictureBox();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.pbIconLarge = new global::System.Windows.Forms.PictureBox();
this.lblTitle = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.lblDescription = new global::System.Windows.Forms.Label();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.lblMessage = new global::System.Windows.Forms.Label();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.pnlFooter.SuspendLayout();
this.pnlBody.SuspendLayout();
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbShrink).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIconLarge).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
base.SuspendLayout();
this.pnlFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlFooter.Controls.Add(this.bdrBottom);
this.pnlFooter.Controls.Add(this.bdrBottomLeft);
this.pnlFooter.Controls.Add(this.bdrBottomRight);
this.pnlFooter.Controls.Add(this.brdFooterSeparator);
this.pnlFooter.Controls.Add(this.btnViewPricingPlans);
this.pnlFooter.Controls.Add(this.btnCancel);
this.pnlFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pnlFooter.Location = new global::System.Drawing.Point(0, 522);
this.pnlFooter.Name = "pnlFooter";
this.pnlFooter.Size = new global::System.Drawing.Size(450, 52);
this.pnlFooter.TabIndex = 14;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 51);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(448, 1);
this.bdrBottom.TabIndex = 44;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 51);
this.bdrBottomLeft.TabIndex = 43;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(449, 1);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 51);
this.bdrBottomRight.TabIndex = 42;
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(450, 1);
this.brdFooterSeparator.TabIndex = 19;
this.btnViewPricingPlans.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnViewPricingPlans.AutoEllipsis = true;
this.btnViewPricingPlans.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnViewPricingPlans.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnViewPricingPlans.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnViewPricingPlans.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnViewPricingPlans.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.btnViewPricingPlans.ForeColor = global::System.Drawing.Color.White;
this.btnViewPricingPlans.Location = new global::System.Drawing.Point(268, 7);
this.btnViewPricingPlans.Name = "btnViewPricingPlans";
this.btnViewPricingPlans.Size = new global::System.Drawing.Size(173, 38);
this.btnViewPricingPlans.TabIndex = 2;
this.btnViewPricingPlans.Text = "View pricing plans";
this.btnViewPricingPlans.UseVisualStyleBackColor = false;
this.btnViewPricingPlans.Click += new global::System.EventHandler(this.btnViewPricingPlans_Click);
this.btnCancel.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnCancel.AutoEllipsis = true;
this.btnCancel.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnCancel.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCancel.DialogResult = global::System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.FlatAppearance.BorderColor = global::System.Drawing.Color.LightGray;
this.btnCancel.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.btnCancel.ForeColor = global::System.Drawing.Color.DimGray;
this.btnCancel.Location = new global::System.Drawing.Point(103, 7);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new global::System.Drawing.Size(160, 39);
this.btnCancel.TabIndex = 3;
this.btnCancel.Text = "Activate license";
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Click += new global::System.EventHandler(this.btnClose_Click);
this.btnCancel.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.InformationBox_KeyDown);
this.pnlBody.BackColor = global::System.Drawing.Color.White;
this.pnlBody.Controls.Add(this.pnlHeader);
this.pnlBody.Controls.Add(this.bdrMidLeft);
this.pnlBody.Controls.Add(this.bdrMidRight);
this.pnlBody.Controls.Add(this.lblMessage);
this.pnlBody.Dock = global::System.Windows.Forms.DockStyle.Fill;
this.pnlBody.Location = new global::System.Drawing.Point(0, 0);
this.pnlBody.Name = "pnlBody";
this.pnlBody.Size = new global::System.Drawing.Size(450, 522);
this.pnlBody.TabIndex = 15;
this.pnlBody.DoubleClick += new global::System.EventHandler(this.lblMessage_DoubleClick);
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.pbShrink);
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.pbIconLarge);
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbIcon);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Controls.Add(this.lblDescription);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(1, 0);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(448, 150);
this.pnlHeader.TabIndex = 44;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbShrink.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbShrink.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbShrink.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbShrink.Image");
this.pbShrink.Location = new global::System.Drawing.Point(383, 10);
this.pbShrink.Name = "pbShrink";
this.pbShrink.Size = new global::System.Drawing.Size(25, 17);
this.pbShrink.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbShrink.TabIndex = 54;
this.pbShrink.TabStop = false;
this.toolTip.SetToolTip(this.pbShrink, "Shrink window");
this.pbShrink.Click += new global::System.EventHandler(this.pbShrink_Click);
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 148);
this.bdrLeft.TabIndex = 53;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(447, 1);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 148);
this.bdrRight.TabIndex = 52;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(448, 1);
this.bdrTop.TabIndex = 51;
this.pbIconLarge.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.pbIconLarge.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbIconLarge.Image");
this.pbIconLarge.Location = new global::System.Drawing.Point(194, 35);
this.pbIconLarge.Name = "pbIconLarge";
this.pbIconLarge.Size = new global::System.Drawing.Size(61, 60);
this.pbIconLarge.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIconLarge.TabIndex = 13;
this.pbIconLarge.TabStop = false;
this.pbIconLarge.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIconLarge.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIconLarge.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblTitle.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new global::System.Drawing.Font("Segoe UI", 12f, global::System.Drawing.FontStyle.Bold, global::System.Drawing.GraphicsUnit.Point);
this.lblTitle.ForeColor = global::System.Drawing.Color.Black;
this.lblTitle.Location = new global::System.Drawing.Point(39, 93);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new global::System.Drawing.Size(371, 28);
this.lblTitle.TabIndex = 5;
this.lblTitle.Text = "Your {TotalDays} free trial has expired";
this.lblTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 149);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(448, 1);
this.bdrHeader.TabIndex = 12;
this.pbIcon.Image = global::Bunifu.Licensing.Properties.Resources.bunifu_framework_logo;
this.pbIcon.Location = new global::System.Drawing.Point(13, 8);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(21, 22);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 3;
this.pbIcon.TabStop = false;
this.pbIcon.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIcon.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIcon.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(414, 10);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 17);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Close");
this.pbClose.Click += new global::System.EventHandler(this.btnClose_Click);
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(34, 9);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(128, 20);
this.lblWindowTitle.TabIndex = 50;
this.lblWindowTitle.Text = "Bunifu Framework";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblDescription.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.lblDescription.AutoSize = true;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblDescription.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblDescription.Location = new global::System.Drawing.Point(82, 121);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(284, 20);
this.lblDescription.TabIndex = 6;
this.lblDescription.Text = "Your one-time free trial license has ended";
this.lblDescription.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblDescription.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblDescription.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 522);
this.bdrMidLeft.TabIndex = 43;
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(449, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 522);
this.bdrMidRight.TabIndex = 42;
this.lblMessage.Anchor = global::System.Windows.Forms.AnchorStyles.Top;
this.lblMessage.AutoEllipsis = true;
this.lblMessage.AutoSize = true;
this.lblMessage.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblMessage.ForeColor = global::System.Drawing.Color.Black;
this.lblMessage.Location = new global::System.Drawing.Point(45, 165);
this.lblMessage.MaximumSize = new global::System.Drawing.Size(360, 0);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new global::System.Drawing.Size(360, 340);
this.lblMessage.TabIndex = 14;
this.lblMessage.Text = componentResourceManager.GetString("lblMessage.Text");
this.lblMessage.DoubleClick += new global::System.EventHandler(this.lblMessage_DoubleClick);
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
base.CancelButton = this.btnCancel;
base.ClientSize = new global::System.Drawing.Size(450, 574);
base.Controls.Add(this.pnlBody);
base.Controls.Add(this.pnlFooter);
this.DoubleBuffered = true;
this.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.ForeColor = global::System.Drawing.Color.Black;
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Name = "FreeTrialEnded";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Information";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.InformationBox_Load);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.InformationBox_KeyDown);
this.pnlFooter.ResumeLayout(false);
this.pnlBody.ResumeLayout(false);
this.pnlBody.PerformLayout();
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbShrink).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIconLarge).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
base.ResumeLayout(false);
}
// Token: 0x0400004A RID: 74
private global::System.ComponentModel.IContainer components = null;
// Token: 0x0400004B RID: 75
private global::System.Windows.Forms.Panel pnlFooter;
// Token: 0x0400004C RID: 76
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x0400004D RID: 77
internal global::System.Windows.Forms.Label lblMessage;
// Token: 0x0400004E RID: 78
internal global::System.Windows.Forms.Button btnCancel;
// Token: 0x0400004F RID: 79
internal global::System.Windows.Forms.Button btnViewPricingPlans;
// Token: 0x04000050 RID: 80
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x04000051 RID: 81
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x04000052 RID: 82
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x04000053 RID: 83
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x04000054 RID: 84
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x04000055 RID: 85
public global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x04000056 RID: 86
public global::System.Windows.Forms.Panel pnlBody;
// Token: 0x04000057 RID: 87
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x04000058 RID: 88
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x04000059 RID: 89
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x0400005A RID: 90
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x0400005B RID: 91
private global::System.Windows.Forms.PictureBox pbIconLarge;
// Token: 0x0400005C RID: 92
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x0400005D RID: 93
private global::System.Windows.Forms.Label lblTitle;
// Token: 0x0400005E RID: 94
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x0400005F RID: 95
private global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x04000060 RID: 96
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x04000061 RID: 97
private global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x04000062 RID: 98
private global::System.Windows.Forms.PictureBox pbShrink;
}
}
+258
View File
@@ -0,0 +1,258 @@
#if NET5_0_OR_NETFRAMEWORK
using System.Runtime.CompilerServices;
#endif
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Properties;
using Bunifu.Licensing.Views.Transitions;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000005 RID: 5
[DebuggerStepThrough]
internal partial class FreeTrialEnded : Form
{
// Token: 0x0600006E RID: 110 RVA: 0x0000787E File Offset: 0x00005A7E
public FreeTrialEnded()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x17000015 RID: 21
// (get) Token: 0x0600006F RID: 111 RVA: 0x000078A5 File Offset: 0x00005AA5
// (set) Token: 0x06000070 RID: 112 RVA: 0x000078AD File Offset: 0x00005AAD
internal int TrialDays { get; set; } = 14;
// Token: 0x06000071 RID: 113 RVA: 0x000078B8 File Offset: 0x00005AB8
public new void Show()
{
base.Opacity = 0.0;
Control control = this.lblTitle;
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(32, 1);
defaultInterpolatedStringHandler.AppendLiteral("Your ");
defaultInterpolatedStringHandler.AppendFormatted<int>(this.TrialDays);
defaultInterpolatedStringHandler.AppendLiteral("-day free trial has expired");
control.Text = defaultInterpolatedStringHandler.ToStringAndClear();
this.lblTitle.Left = (base.Width - this.lblTitle.Width) / 2;
base.Show();
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 1.0);
transition.run();
}
// Token: 0x06000072 RID: 114 RVA: 0x00007974 File Offset: 0x00005B74
public new DialogResult ShowDialog()
{
try
{
this.Show();
base.Opacity = 0.0;
base.Hide();
Transition.run(this, "Opacity", 1.0, new TransitionType_EaseInEaseOut(220));
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x06000073 RID: 115 RVA: 0x000079E8 File Offset: 0x00005BE8
public DialogResult ShowDialog(int trialDays)
{
this.TrialDays = trialDays;
return this.ShowDialog();
}
// Token: 0x06000074 RID: 116 RVA: 0x00007A08 File Offset: 0x00005C08
public new void Close()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(100));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Close();
};
}
// Token: 0x06000075 RID: 117 RVA: 0x00007A58 File Offset: 0x00005C58
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(100));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x06000076 RID: 118 RVA: 0x00007AA8 File Offset: 0x00005CA8
public bool IsTextURL(string text)
{
return Uri.IsWellFormedUriString(text, UriKind.Absolute);
}
// Token: 0x06000077 RID: 119 RVA: 0x00007ACA File Offset: 0x00005CCA
private void ImproveTextRendering()
{
this.btnViewPricingPlans.UseCompatibleTextRendering = false;
this.btnCancel.UseCompatibleTextRendering = false;
this.lblMessage.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
}
// Token: 0x06000078 RID: 120 RVA: 0x00007B01 File Offset: 0x00005D01
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x06000079 RID: 121 RVA: 0x00007B14 File Offset: 0x00005D14
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x0600007A RID: 122 RVA: 0x00007B28 File Offset: 0x00005D28
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
this.bdrMidLeft.Hide();
this.bdrMidRight.Hide();
this.bdrBottomLeft.Hide();
this.bdrBottomRight.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
this.bdrMidLeft.Show();
this.bdrMidRight.Show();
this.bdrBottomLeft.Show();
this.bdrBottomRight.Show();
}
}
// Token: 0x0600007B RID: 123 RVA: 0x00007C0C File Offset: 0x00005E0C
private void InformationBox_Load(object sender, EventArgs e)
{
this.ApplyShadows();
}
// Token: 0x0600007C RID: 124 RVA: 0x00007C16 File Offset: 0x00005E16
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x0600007D RID: 125 RVA: 0x00007C2C File Offset: 0x00005E2C
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x0600007E RID: 126 RVA: 0x00007CA8 File Offset: 0x00005EA8
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x0600007F RID: 127 RVA: 0x00007CFD File Offset: 0x00005EFD
private void btnViewPricingPlans_Click(object sender, EventArgs e)
{
Process.Start("https://bunifuframework.com/pricing");
}
// Token: 0x06000080 RID: 128 RVA: 0x00007D0B File Offset: 0x00005F0B
private void btnClose_Click(object sender, EventArgs e)
{
base.DialogResult = DialogResult.Cancel;
this.Close();
}
// Token: 0x06000081 RID: 129 RVA: 0x00007D20 File Offset: 0x00005F20
private void pbShrink_Click(object sender, EventArgs e)
{
bool flag = base.Height == 444;
if (flag)
{
this.pnlFooter.Hide();
Transition.run(this, "Height", 145, new TransitionType_EaseInEaseOut(180));
}
else
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(180));
transition.TransitionCompletedEvent += delegate
{
this.pnlFooter.Show();
};
transition.add(this, "Height", 444);
transition.run();
}
}
// Token: 0x06000082 RID: 130 RVA: 0x00007DB4 File Offset: 0x00005FB4
private void InformationBox_KeyDown(object sender, KeyEventArgs e)
{
bool flag = e.KeyCode == Keys.Escape;
if (flag)
{
base.DialogResult = DialogResult.Cancel;
this.Close();
}
}
// Token: 0x06000083 RID: 131 RVA: 0x00007DE4 File Offset: 0x00005FE4
private void lblMessage_DoubleClick(object sender, EventArgs e)
{
try
{
Clipboard.SetText(this.lblMessage.Text);
}
catch (Exception)
{
}
}
// Token: 0x04000046 RID: 70
private bool _drag;
// Token: 0x04000047 RID: 71
private int _mousey;
// Token: 0x04000048 RID: 72
private int _mousex;
}
}
Binary file not shown.
+349
View File
@@ -0,0 +1,349 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000006 RID: 6
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class InformationBox : global::System.Windows.Forms.Form
{
// Token: 0x0600009E RID: 158 RVA: 0x000098B8 File Offset: 0x00007AB8
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x0600009F RID: 159 RVA: 0x000098F0 File Offset: 0x00007AF0
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.InformationBox));
this.pblFooter = new global::System.Windows.Forms.Panel();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.lnkMoreInfo = new global::System.Windows.Forms.LinkLabel();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.btnOkay = new global::System.Windows.Forms.Button();
this.btnCancel = new global::System.Windows.Forms.Button();
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.pnlBody = new global::System.Windows.Forms.Panel();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.lblMessage = new global::System.Windows.Forms.Label();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.pblFooter.SuspendLayout();
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
this.pnlBody.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
base.SuspendLayout();
this.pblFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pblFooter.Controls.Add(this.bdrBottom);
this.pblFooter.Controls.Add(this.bdrBottomLeft);
this.pblFooter.Controls.Add(this.bdrBottomRight);
this.pblFooter.Controls.Add(this.lnkMoreInfo);
this.pblFooter.Controls.Add(this.brdFooterSeparator);
this.pblFooter.Controls.Add(this.btnOkay);
this.pblFooter.Controls.Add(this.btnCancel);
this.pblFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pblFooter.Location = new global::System.Drawing.Point(0, 152);
this.pblFooter.Name = "pblFooter";
this.pblFooter.Size = new global::System.Drawing.Size(506, 47);
this.pblFooter.TabIndex = 14;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 46);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(504, 1);
this.bdrBottom.TabIndex = 44;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 46);
this.bdrBottomLeft.TabIndex = 43;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(505, 1);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 46);
this.bdrBottomRight.TabIndex = 42;
this.lnkMoreInfo.AutoSize = true;
this.lnkMoreInfo.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lnkMoreInfo.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkMoreInfo.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkMoreInfo.Location = new global::System.Drawing.Point(12, 13);
this.lnkMoreInfo.Name = "lnkMoreInfo";
this.lnkMoreInfo.Size = new global::System.Drawing.Size(126, 20);
this.lnkMoreInfo.TabIndex = 20;
this.lnkMoreInfo.TabStop = true;
this.lnkMoreInfo.Text = "More Information";
this.toolTip.SetToolTip(this.lnkMoreInfo, "View more information on this error...");
this.lnkMoreInfo.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkMoreInfo_LinkClicked);
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(506, 1);
this.brdFooterSeparator.TabIndex = 19;
this.btnOkay.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnOkay.AutoEllipsis = true;
this.btnOkay.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnOkay.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnOkay.DialogResult = global::System.Windows.Forms.DialogResult.OK;
this.btnOkay.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnOkay.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnOkay.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.btnOkay.ForeColor = global::System.Drawing.Color.White;
this.btnOkay.Location = new global::System.Drawing.Point(398, 8);
this.btnOkay.Name = "btnOkay";
this.btnOkay.Size = new global::System.Drawing.Size(99, 31);
this.btnOkay.TabIndex = 2;
this.btnOkay.Text = "Okay";
this.btnOkay.UseVisualStyleBackColor = false;
this.btnCancel.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnCancel.AutoEllipsis = true;
this.btnCancel.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnCancel.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCancel.DialogResult = global::System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.FlatAppearance.BorderColor = global::System.Drawing.Color.LightGray;
this.btnCancel.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.btnCancel.ForeColor = global::System.Drawing.Color.DimGray;
this.btnCancel.Location = new global::System.Drawing.Point(293, 8);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new global::System.Drawing.Size(99, 31);
this.btnCancel.TabIndex = 3;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.InformationBox_KeyDown);
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(0, 0);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(506, 38);
this.pnlHeader.TabIndex = 13;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 36);
this.bdrLeft.TabIndex = 43;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(505, 1);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 36);
this.bdrRight.TabIndex = 42;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(506, 1);
this.bdrTop.TabIndex = 40;
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 37);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(506, 1);
this.bdrHeader.TabIndex = 12;
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(472, 10);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 17);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Close");
this.pbClose.Click += new global::System.EventHandler(this.PbClose_Click);
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(12, 9);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(45, 20);
this.lblWindowTitle.TabIndex = 0;
this.lblWindowTitle.Text = "{title}";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pnlBody.BackColor = global::System.Drawing.Color.White;
this.pnlBody.Controls.Add(this.bdrMidLeft);
this.pnlBody.Controls.Add(this.bdrMidRight);
this.pnlBody.Controls.Add(this.lblMessage);
this.pnlBody.Controls.Add(this.pbIcon);
this.pnlBody.Dock = global::System.Windows.Forms.DockStyle.Fill;
this.pnlBody.Location = new global::System.Drawing.Point(0, 38);
this.pnlBody.Name = "pnlBody";
this.pnlBody.Size = new global::System.Drawing.Size(506, 114);
this.pnlBody.TabIndex = 15;
this.pnlBody.DoubleClick += new global::System.EventHandler(this.lblMessage_DoubleClick);
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 114);
this.bdrMidLeft.TabIndex = 43;
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(505, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 114);
this.bdrMidRight.TabIndex = 42;
this.lblMessage.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.lblMessage.AutoEllipsis = true;
this.lblMessage.AutoSize = true;
this.lblMessage.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblMessage.ForeColor = global::System.Drawing.Color.Black;
this.lblMessage.Location = new global::System.Drawing.Point(81, 47);
this.lblMessage.MaximumSize = new global::System.Drawing.Size(400, 75);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new global::System.Drawing.Size(77, 20);
this.lblMessage.TabIndex = 14;
this.lblMessage.Text = "{message}";
this.lblMessage.DoubleClick += new global::System.EventHandler(this.lblMessage_DoubleClick);
this.pbIcon.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbIcon.Image");
this.pbIcon.Location = new global::System.Drawing.Point(14, 33);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(61, 48);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 15;
this.pbIcon.TabStop = false;
base.AcceptButton = this.btnOkay;
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
base.CancelButton = this.btnCancel;
base.ClientSize = new global::System.Drawing.Size(506, 199);
base.Controls.Add(this.pnlBody);
base.Controls.Add(this.pblFooter);
base.Controls.Add(this.pnlHeader);
this.DoubleBuffered = true;
this.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.ForeColor = global::System.Drawing.Color.Black;
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Name = "InformationBox";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Information";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.InformationBox_Load);
base.Shown += new global::System.EventHandler(this.InformationBox_Shown);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.InformationBox_KeyDown);
this.pblFooter.ResumeLayout(false);
this.pblFooter.PerformLayout();
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
this.pnlBody.ResumeLayout(false);
this.pnlBody.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
base.ResumeLayout(false);
}
// Token: 0x04000067 RID: 103
private global::System.ComponentModel.IContainer components = null;
// Token: 0x04000068 RID: 104
private global::System.Windows.Forms.Panel pblFooter;
// Token: 0x04000069 RID: 105
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x0400006A RID: 106
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x0400006B RID: 107
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x0400006C RID: 108
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x0400006D RID: 109
internal global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x0400006E RID: 110
internal global::System.Windows.Forms.Label lblMessage;
// Token: 0x0400006F RID: 111
internal global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x04000070 RID: 112
internal global::System.Windows.Forms.Button btnCancel;
// Token: 0x04000071 RID: 113
internal global::System.Windows.Forms.Button btnOkay;
// Token: 0x04000072 RID: 114
internal global::System.Windows.Forms.LinkLabel lnkMoreInfo;
// Token: 0x04000073 RID: 115
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x04000074 RID: 116
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x04000075 RID: 117
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x04000076 RID: 118
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x04000077 RID: 119
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x04000078 RID: 120
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x04000079 RID: 121
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x0400007A RID: 122
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x0400007B RID: 123
public global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x0400007C RID: 124
public global::System.Windows.Forms.Panel pnlBody;
}
}
+250
View File
@@ -0,0 +1,250 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Views.Transitions;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000006 RID: 6
[DebuggerStepThrough]
internal partial class InformationBox : Form
{
// Token: 0x06000089 RID: 137 RVA: 0x000093C1 File Offset: 0x000075C1
public InformationBox()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x17000016 RID: 22
// (get) Token: 0x0600008A RID: 138 RVA: 0x000093E0 File Offset: 0x000075E0
// (set) Token: 0x0600008B RID: 139 RVA: 0x000093E8 File Offset: 0x000075E8
public string MoreInformationText { get; set; }
// Token: 0x0600008C RID: 140 RVA: 0x000093F1 File Offset: 0x000075F1
public new void Show()
{
this.lblMessage.Top = (this.pnlBody.Height - this.lblMessage.Height) / 2;
base.Opacity = 1.0;
base.Show();
}
// Token: 0x0600008D RID: 141 RVA: 0x00009430 File Offset: 0x00007630
public new DialogResult ShowDialog()
{
try
{
this.lblMessage.Top = (this.pnlBody.Height - this.lblMessage.Height) / 2;
base.Opacity = 1.0;
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x0600008E RID: 142 RVA: 0x00009498 File Offset: 0x00007698
public new void Close()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(100));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Close();
};
}
// Token: 0x0600008F RID: 143 RVA: 0x000094E8 File Offset: 0x000076E8
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(100));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x06000090 RID: 144 RVA: 0x00009538 File Offset: 0x00007738
public bool IsTextURL(string text)
{
return Uri.IsWellFormedUriString(text, UriKind.Absolute);
}
// Token: 0x06000091 RID: 145 RVA: 0x0000955C File Offset: 0x0000775C
private void ImproveTextRendering()
{
this.btnOkay.UseCompatibleTextRendering = false;
this.btnCancel.UseCompatibleTextRendering = false;
this.lblMessage.UseCompatibleTextRendering = false;
this.lnkMoreInfo.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
}
// Token: 0x06000092 RID: 146 RVA: 0x000095AB File Offset: 0x000077AB
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x06000093 RID: 147 RVA: 0x000095BE File Offset: 0x000077BE
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x06000094 RID: 148 RVA: 0x000095D4 File Offset: 0x000077D4
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
this.bdrMidLeft.Hide();
this.bdrMidRight.Hide();
this.bdrBottomLeft.Hide();
this.bdrBottomRight.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
this.bdrMidLeft.Show();
this.bdrMidRight.Show();
this.bdrBottomLeft.Show();
this.bdrBottomRight.Show();
}
}
// Token: 0x06000095 RID: 149 RVA: 0x000096B8 File Offset: 0x000078B8
private void InformationBox_Load(object sender, EventArgs e)
{
this.ApplyShadows();
}
// Token: 0x06000096 RID: 150 RVA: 0x000096C2 File Offset: 0x000078C2
private void InformationBox_Shown(object sender, EventArgs e)
{
this.lblMessage.Top = (this.pnlBody.Height - this.lblMessage.Height) / 2;
}
// Token: 0x06000097 RID: 151 RVA: 0x000096EA File Offset: 0x000078EA
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x06000098 RID: 152 RVA: 0x00009700 File Offset: 0x00007900
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x06000099 RID: 153 RVA: 0x0000977C File Offset: 0x0000797C
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x0600009A RID: 154 RVA: 0x000097D4 File Offset: 0x000079D4
private void LnkMoreInfo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
bool flag = this.IsTextURL(this.MoreInformationText);
if (flag)
{
Process.Start(this.MoreInformationText);
}
else
{
MessageBox.Show(this.MoreInformationText, "Error Details", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}
// Token: 0x0600009B RID: 155 RVA: 0x00009818 File Offset: 0x00007A18
private void PbClose_Click(object sender, EventArgs e)
{
bool visible = this.btnCancel.Visible;
if (visible)
{
base.DialogResult = DialogResult.Cancel;
}
else
{
base.DialogResult = DialogResult.OK;
}
this.Close();
}
// Token: 0x0600009C RID: 156 RVA: 0x00009850 File Offset: 0x00007A50
private void InformationBox_KeyDown(object sender, KeyEventArgs e)
{
bool flag = e.KeyCode == Keys.Escape;
if (flag)
{
base.DialogResult = DialogResult.Cancel;
this.Close();
}
}
// Token: 0x0600009D RID: 157 RVA: 0x00009880 File Offset: 0x00007A80
private void lblMessage_DoubleClick(object sender, EventArgs e)
{
try
{
Clipboard.SetText(this.lblMessage.Text);
}
catch (Exception)
{
}
}
// Token: 0x04000063 RID: 99
private bool _drag;
// Token: 0x04000064 RID: 100
private int _mousey;
// Token: 0x04000065 RID: 101
private int _mousex;
// Token: 0x02000041 RID: 65
internal enum InformationBoxIcons
{
// Token: 0x040001A3 RID: 419
Information,
// Token: 0x040001A4 RID: 420
Warning,
// Token: 0x040001A5 RID: 421
Alert,
// Token: 0x040001A6 RID: 422
Error
}
}
}
Binary file not shown.
+655
View File
@@ -0,0 +1,655 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000008 RID: 8
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class InformationBoxEx : global::System.Windows.Forms.Form
{
// Token: 0x060000C4 RID: 196 RVA: 0x0000BB7C File Offset: 0x00009D7C
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x060000C5 RID: 197 RVA: 0x0000BBB4 File Offset: 0x00009DB4
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.InformationBoxEx));
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.btnCopyRequestCode = new global::System.Windows.Forms.Button();
this.btnPasteActivationCode = new global::System.Windows.Forms.Button();
this.lblDescription = new global::System.Windows.Forms.Label();
this.lblTitle = new global::System.Windows.Forms.Label();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.lblMessageInfo = new global::System.Windows.Forms.Label();
this.btnActivate = new global::System.Windows.Forms.Button();
this.pblFooter = new global::System.Windows.Forms.Panel();
this.btnSaveRQ = new global::System.Windows.Forms.Button();
this.btnCancel = new global::System.Windows.Forms.Button();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
this.lblRequestCode = new global::System.Windows.Forms.Label();
this.txtRequestCode = new global::System.Windows.Forms.TextBox();
this.bdrMidSeparator = new global::System.Windows.Forms.Panel();
this.lblActivationCode = new global::System.Windows.Forms.Label();
this.pnlBrowseForCode = new global::System.Windows.Forms.Panel();
this.lblActivationCodeFile = new global::System.Windows.Forms.Label();
this.lblActivationCodeTitle = new global::System.Windows.Forms.Label();
this.lblTitleBrowseForCode = new global::System.Windows.Forms.Label();
this.lblTextBrowseForCode = new global::System.Windows.Forms.Label();
this.pbBrowseForCode = new global::System.Windows.Forms.PictureBox();
this.boxBrowseForCode = new global::Bunifu.Licensing.Views.Controls.Box();
this.txtActivationCode = new global::System.Windows.Forms.TextBox();
this.tmrMessageTimer = new global::System.Windows.Forms.Timer(this.components);
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
this.pblFooter.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.pnlBrowseForCode.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbBrowseForCode).BeginInit();
base.SuspendLayout();
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.btnCopyRequestCode);
this.pnlHeader.Controls.Add(this.btnPasteActivationCode);
this.pnlHeader.Controls.Add(this.lblDescription);
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbIcon);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Controls.Add(this.lblMessageInfo);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(0, 0);
this.pnlHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(931, 115);
this.pnlHeader.TabIndex = 3;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.btnCopyRequestCode.Anchor = global::System.Windows.Forms.AnchorStyles.Right;
this.btnCopyRequestCode.BackColor = global::System.Drawing.Color.Gainsboro;
this.btnCopyRequestCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCopyRequestCode.FlatAppearance.BorderColor = global::System.Drawing.Color.Gainsboro;
this.btnCopyRequestCode.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCopyRequestCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnCopyRequestCode.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.btnCopyRequestCode.Location = new global::System.Drawing.Point(629, 74);
this.btnCopyRequestCode.Margin = new global::System.Windows.Forms.Padding(2);
this.btnCopyRequestCode.Name = "btnCopyRequestCode";
this.btnCopyRequestCode.Size = new global::System.Drawing.Size(140, 34);
this.btnCopyRequestCode.TabIndex = 56;
this.btnCopyRequestCode.Text = "Copy Request Code";
this.toolTip.SetToolTip(this.btnCopyRequestCode, "Copy your generated request code to the clipboard...");
this.btnCopyRequestCode.UseVisualStyleBackColor = false;
this.btnCopyRequestCode.Click += new global::System.EventHandler(this.btnCopyRQ_Click);
this.btnPasteActivationCode.Anchor = global::System.Windows.Forms.AnchorStyles.Right;
this.btnPasteActivationCode.BackColor = global::System.Drawing.Color.Silver;
this.btnPasteActivationCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnPasteActivationCode.FlatAppearance.BorderColor = global::System.Drawing.Color.Silver;
this.btnPasteActivationCode.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnPasteActivationCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnPasteActivationCode.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.btnPasteActivationCode.Location = new global::System.Drawing.Point(768, 74);
this.btnPasteActivationCode.Margin = new global::System.Windows.Forms.Padding(2);
this.btnPasteActivationCode.Name = "btnPasteActivationCode";
this.btnPasteActivationCode.Size = new global::System.Drawing.Size(154, 34);
this.btnPasteActivationCode.TabIndex = 47;
this.btnPasteActivationCode.Text = "Paste Activation Code";
this.toolTip.SetToolTip(this.btnPasteActivationCode, "Paste the activation code you received from Bunifu...");
this.btnPasteActivationCode.UseVisualStyleBackColor = false;
this.btnPasteActivationCode.Click += new global::System.EventHandler(this.btnPasteAC_Click);
this.lblDescription.AutoSize = true;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblDescription.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblDescription.Location = new global::System.Drawing.Point(16, 79);
this.lblDescription.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(446, 20);
this.lblDescription.TabIndex = 55;
this.lblDescription.Text = "Please follow the split-view guidelines below for offline activation";
this.lblDescription.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblDescription.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblDescription.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new global::System.Drawing.Font("Segoe UI", 15.75f);
this.lblTitle.ForeColor = global::System.Drawing.Color.Black;
this.lblTitle.Location = new global::System.Drawing.Point(15, 42);
this.lblTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new global::System.Drawing.Size(329, 37);
this.lblTitle.TabIndex = 54;
this.lblTitle.Text = "Activate Bunifu UI (Offline)";
this.lblTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 113);
this.bdrLeft.TabIndex = 53;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(930, 1);
this.bdrRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 113);
this.bdrRight.TabIndex = 52;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(931, 1);
this.bdrTop.TabIndex = 51;
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 114);
this.bdrHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(931, 1);
this.bdrHeader.TabIndex = 12;
this.pbIcon.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbIcon.Image");
this.pbIcon.Location = new global::System.Drawing.Point(12, 8);
this.pbIcon.Margin = new global::System.Windows.Forms.Padding(2);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(21, 22);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 3;
this.pbIcon.TabStop = false;
this.pbIcon.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIcon.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIcon.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(896, 10);
this.pbClose.Margin = new global::System.Windows.Forms.Padding(2);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 18);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Close");
this.pbClose.Click += new global::System.EventHandler(this.pbClose_Click);
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(34, 10);
this.lblWindowTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(125, 20);
this.lblWindowTitle.TabIndex = 50;
this.lblWindowTitle.Text = "Offline Activation";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblMessageInfo.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.lblMessageInfo.AutoEllipsis = true;
this.lblMessageInfo.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblMessageInfo.ForeColor = global::System.Drawing.Color.WhiteSmoke;
this.lblMessageInfo.Location = new global::System.Drawing.Point(514, 46);
this.lblMessageInfo.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblMessageInfo.Name = "lblMessageInfo";
this.lblMessageInfo.Size = new global::System.Drawing.Size(406, 21);
this.lblMessageInfo.TabIndex = 57;
this.lblMessageInfo.TextAlign = global::System.Drawing.ContentAlignment.MiddleRight;
this.btnActivate.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnActivate.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnActivate.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnActivate.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnActivate.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnActivate.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnActivate.ForeColor = global::System.Drawing.Color.White;
this.btnActivate.Location = new global::System.Drawing.Point(790, 11);
this.btnActivate.Margin = new global::System.Windows.Forms.Padding(2);
this.btnActivate.Name = "btnActivate";
this.btnActivate.Size = new global::System.Drawing.Size(129, 37);
this.btnActivate.TabIndex = 0;
this.btnActivate.Text = "Activate";
this.toolTip.SetToolTip(this.btnActivate, "Activate your license offline");
this.btnActivate.UseVisualStyleBackColor = false;
this.btnActivate.Click += new global::System.EventHandler(this.btnActivate_Click);
this.pblFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pblFooter.Controls.Add(this.btnSaveRQ);
this.pblFooter.Controls.Add(this.btnCancel);
this.pblFooter.Controls.Add(this.bdrBottom);
this.pblFooter.Controls.Add(this.bdrBottomLeft);
this.pblFooter.Controls.Add(this.bdrBottomRight);
this.pblFooter.Controls.Add(this.brdFooterSeparator);
this.pblFooter.Controls.Add(this.btnActivate);
this.pblFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pblFooter.Location = new global::System.Drawing.Point(0, 490);
this.pblFooter.Margin = new global::System.Windows.Forms.Padding(2);
this.pblFooter.Name = "pblFooter";
this.pblFooter.Size = new global::System.Drawing.Size(931, 58);
this.pblFooter.TabIndex = 27;
this.btnSaveRQ.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.btnSaveRQ.BackColor = global::System.Drawing.Color.Gainsboro;
this.btnSaveRQ.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnSaveRQ.FlatAppearance.BorderColor = global::System.Drawing.Color.Silver;
this.btnSaveRQ.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnSaveRQ.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnSaveRQ.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.btnSaveRQ.Location = new global::System.Drawing.Point(11, 11);
this.btnSaveRQ.Margin = new global::System.Windows.Forms.Padding(2);
this.btnSaveRQ.Name = "btnSaveRQ";
this.btnSaveRQ.Size = new global::System.Drawing.Size(182, 37);
this.btnSaveRQ.TabIndex = 46;
this.btnSaveRQ.Text = "Save Request Code";
this.toolTip.SetToolTip(this.btnSaveRQ, "This will save your Request Code as a file for sending to Bunifu...");
this.btnSaveRQ.UseVisualStyleBackColor = false;
this.btnSaveRQ.Click += new global::System.EventHandler(this.btnSaveRQ_Click);
this.btnCancel.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnCancel.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnCancel.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCancel.FlatAppearance.BorderColor = global::System.Drawing.Color.LightGray;
this.btnCancel.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnCancel.ForeColor = global::System.Drawing.Color.DimGray;
this.btnCancel.Location = new global::System.Drawing.Point(655, 11);
this.btnCancel.Margin = new global::System.Windows.Forms.Padding(2);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new global::System.Drawing.Size(129, 37);
this.btnCancel.TabIndex = 45;
this.btnCancel.Text = "Cancel";
this.toolTip.SetToolTip(this.btnCancel, "Cancel offline activation");
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Click += new global::System.EventHandler(this.btnCancel_Click);
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 57);
this.bdrBottom.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(929, 1);
this.bdrBottom.TabIndex = 44;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomLeft.TabIndex = 43;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(930, 1);
this.bdrBottomRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomRight.TabIndex = 42;
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Margin = new global::System.Windows.Forms.Padding(2);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(931, 1);
this.brdFooterSeparator.TabIndex = 19;
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(930, 115);
this.bdrMidRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 375);
this.bdrMidRight.TabIndex = 42;
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 115);
this.bdrMidLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 375);
this.bdrMidLeft.TabIndex = 43;
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new global::System.Drawing.Point(1, 115);
this.splitContainer1.Margin = new global::System.Windows.Forms.Padding(2);
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Panel1.Controls.Add(this.lblRequestCode);
this.splitContainer1.Panel1.Controls.Add(this.txtRequestCode);
this.splitContainer1.Panel1.Controls.Add(this.bdrMidSeparator);
this.splitContainer1.Panel2.Controls.Add(this.lblActivationCode);
this.splitContainer1.Panel2.Controls.Add(this.pnlBrowseForCode);
this.splitContainer1.Panel2.Controls.Add(this.txtActivationCode);
this.splitContainer1.Size = new global::System.Drawing.Size(929, 375);
this.splitContainer1.SplitterDistance = 417;
this.splitContainer1.TabIndex = 44;
this.lblRequestCode.AutoSize = true;
this.lblRequestCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRequestCode.ForeColor = global::System.Drawing.Color.Black;
this.lblRequestCode.Location = new global::System.Drawing.Point(11, 12);
this.lblRequestCode.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRequestCode.Name = "lblRequestCode";
this.lblRequestCode.Size = new global::System.Drawing.Size(361, 20);
this.lblRequestCode.TabIndex = 48;
this.lblRequestCode.Text = "Submit the Request Code generated below to Bunifu:";
this.txtRequestCode.AcceptsReturn = true;
this.txtRequestCode.AcceptsTab = true;
this.txtRequestCode.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.txtRequestCode.AutoCompleteMode = global::System.Windows.Forms.AutoCompleteMode.Append;
this.txtRequestCode.BackColor = global::System.Drawing.Color.White;
this.txtRequestCode.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
this.txtRequestCode.Font = new global::System.Drawing.Font("Consolas", 11.25f, global::System.Drawing.FontStyle.Bold);
this.txtRequestCode.ForeColor = global::System.Drawing.Color.Black;
this.txtRequestCode.Location = new global::System.Drawing.Point(14, 40);
this.txtRequestCode.Margin = new global::System.Windows.Forms.Padding(2);
this.txtRequestCode.MaxLength = 65536;
this.txtRequestCode.Multiline = true;
this.txtRequestCode.Name = "txtRequestCode";
this.txtRequestCode.ReadOnly = true;
this.txtRequestCode.Size = new global::System.Drawing.Size(389, 321);
this.txtRequestCode.TabIndex = 47;
this.bdrMidSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrMidSeparator.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidSeparator.Location = new global::System.Drawing.Point(416, 0);
this.bdrMidSeparator.Margin = new global::System.Windows.Forms.Padding(2);
this.bdrMidSeparator.Name = "bdrMidSeparator";
this.bdrMidSeparator.Size = new global::System.Drawing.Size(1, 375);
this.bdrMidSeparator.TabIndex = 45;
this.lblActivationCode.AutoSize = true;
this.lblActivationCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblActivationCode.ForeColor = global::System.Drawing.Color.Black;
this.lblActivationCode.Location = new global::System.Drawing.Point(12, 12);
this.lblActivationCode.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivationCode.Name = "lblActivationCode";
this.lblActivationCode.Size = new global::System.Drawing.Size(440, 20);
this.lblActivationCode.TabIndex = 49;
this.lblActivationCode.Text = "Paste the Activation Code you received below and click 'Activate':";
this.pnlBrowseForCode.Controls.Add(this.lblActivationCodeFile);
this.pnlBrowseForCode.Controls.Add(this.lblActivationCodeTitle);
this.pnlBrowseForCode.Controls.Add(this.lblTitleBrowseForCode);
this.pnlBrowseForCode.Controls.Add(this.lblTextBrowseForCode);
this.pnlBrowseForCode.Controls.Add(this.pbBrowseForCode);
this.pnlBrowseForCode.Controls.Add(this.boxBrowseForCode);
this.pnlBrowseForCode.Location = new global::System.Drawing.Point(18, 98);
this.pnlBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlBrowseForCode.Name = "pnlBrowseForCode";
this.pnlBrowseForCode.Size = new global::System.Drawing.Size(470, 169);
this.pnlBrowseForCode.TabIndex = 59;
this.lblActivationCodeFile.AutoSize = true;
this.lblActivationCodeFile.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.lblActivationCodeFile.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblActivationCodeFile.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Bold);
this.lblActivationCodeFile.ForeColor = global::System.Drawing.Color.DodgerBlue;
this.lblActivationCodeFile.Location = new global::System.Drawing.Point(145, 128);
this.lblActivationCodeFile.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivationCodeFile.Name = "lblActivationCodeFile";
this.lblActivationCodeFile.Size = new global::System.Drawing.Size(21, 20);
this.lblActivationCodeFile.TabIndex = 62;
this.lblActivationCodeFile.Text = "...";
this.lblActivationCodeFile.Visible = false;
this.lblActivationCodeFile.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.lblActivationCodeTitle.AutoSize = true;
this.lblActivationCodeTitle.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.lblActivationCodeTitle.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblActivationCodeTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblActivationCodeTitle.ForeColor = global::System.Drawing.Color.DodgerBlue;
this.lblActivationCodeTitle.Location = new global::System.Drawing.Point(21, 128);
this.lblActivationCodeTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivationCodeTitle.Name = "lblActivationCodeTitle";
this.lblActivationCodeTitle.Size = new global::System.Drawing.Size(118, 20);
this.lblActivationCodeTitle.TabIndex = 61;
this.lblActivationCodeTitle.Text = "Activation Code:";
this.lblActivationCodeTitle.Visible = false;
this.lblActivationCodeTitle.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.lblTitleBrowseForCode.AutoSize = true;
this.lblTitleBrowseForCode.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.lblTitleBrowseForCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblTitleBrowseForCode.Font = new global::System.Drawing.Font("Segoe UI Semibold", 11.25f, global::System.Drawing.FontStyle.Bold);
this.lblTitleBrowseForCode.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblTitleBrowseForCode.Location = new global::System.Drawing.Point(78, 80);
this.lblTitleBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTitleBrowseForCode.Name = "lblTitleBrowseForCode";
this.lblTitleBrowseForCode.Size = new global::System.Drawing.Size(316, 25);
this.lblTitleBrowseForCode.TabIndex = 49;
this.lblTitleBrowseForCode.Text = "Browse for received activation code";
this.lblTitleBrowseForCode.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.lblTextBrowseForCode.AutoSize = true;
this.lblTextBrowseForCode.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.lblTextBrowseForCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblTextBrowseForCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblTextBrowseForCode.ForeColor = global::System.Drawing.Color.Black;
this.lblTextBrowseForCode.Location = new global::System.Drawing.Point(21, 102);
this.lblTextBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTextBrowseForCode.Name = "lblTextBrowseForCode";
this.lblTextBrowseForCode.Size = new global::System.Drawing.Size(429, 20);
this.lblTextBrowseForCode.TabIndex = 60;
this.lblTextBrowseForCode.Text = "Browse for the Activation Code you received and click 'Activate'";
this.lblTextBrowseForCode.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.pbBrowseForCode.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.pbBrowseForCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbBrowseForCode.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbBrowseForCode.Image");
this.pbBrowseForCode.Location = new global::System.Drawing.Point(202, 26);
this.pbBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2);
this.pbBrowseForCode.Name = "pbBrowseForCode";
this.pbBrowseForCode.Size = new global::System.Drawing.Size(64, 51);
this.pbBrowseForCode.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbBrowseForCode.TabIndex = 58;
this.pbBrowseForCode.TabStop = false;
this.pbBrowseForCode.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.boxBrowseForCode.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.boxBrowseForCode.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.boxBrowseForCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.boxBrowseForCode.ForeColor = global::System.Drawing.Color.DimGray;
this.boxBrowseForCode.LineColor = global::System.Drawing.Color.DimGray;
this.boxBrowseForCode.LineStyle = global::Bunifu.Licensing.Views.Controls.Box.LineStyles.Dashed;
this.boxBrowseForCode.Location = new global::System.Drawing.Point(2, 2);
this.boxBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2);
this.boxBrowseForCode.Name = "boxBrowseForCode";
this.boxBrowseForCode.Size = new global::System.Drawing.Size(464, 162);
this.boxBrowseForCode.TabIndex = 50;
this.boxBrowseForCode.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.txtActivationCode.AcceptsReturn = true;
this.txtActivationCode.AcceptsTab = true;
this.txtActivationCode.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.txtActivationCode.AutoCompleteMode = global::System.Windows.Forms.AutoCompleteMode.Append;
this.txtActivationCode.BackColor = global::System.Drawing.Color.White;
this.txtActivationCode.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
this.txtActivationCode.Font = new global::System.Drawing.Font("Consolas", 11.25f, global::System.Drawing.FontStyle.Bold);
this.txtActivationCode.ForeColor = global::System.Drawing.Color.MediumSeaGreen;
this.txtActivationCode.Location = new global::System.Drawing.Point(14, 40);
this.txtActivationCode.Margin = new global::System.Windows.Forms.Padding(2);
this.txtActivationCode.MaxLength = 65536;
this.txtActivationCode.Multiline = true;
this.txtActivationCode.Name = "txtActivationCode";
this.txtActivationCode.Size = new global::System.Drawing.Size(484, 321);
this.txtActivationCode.TabIndex = 46;
this.txtActivationCode.Visible = false;
this.tmrMessageTimer.Interval = 1000;
this.tmrMessageTimer.Tick += new global::System.EventHandler(this.tmrMessageTimer_Tick);
base.AcceptButton = this.btnActivate;
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = global::System.Drawing.Color.White;
base.ClientSize = new global::System.Drawing.Size(931, 548);
base.Controls.Add(this.splitContainer1);
base.Controls.Add(this.bdrMidLeft);
base.Controls.Add(this.bdrMidRight);
base.Controls.Add(this.pblFooter);
base.Controls.Add(this.pnlHeader);
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Margin = new global::System.Windows.Forms.Padding(2);
base.Name = "InformationBoxEx";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Activation Successful";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.OnLoad);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnKeyDown);
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
this.pblFooter.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.Panel2.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
this.splitContainer1.ResumeLayout(false);
this.pnlBrowseForCode.ResumeLayout(false);
this.pnlBrowseForCode.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbBrowseForCode).EndInit();
base.ResumeLayout(false);
}
// Token: 0x04000084 RID: 132
private global::System.ComponentModel.IContainer components = null;
// Token: 0x04000085 RID: 133
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x04000086 RID: 134
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x04000087 RID: 135
private global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x04000088 RID: 136
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x04000089 RID: 137
private global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x0400008A RID: 138
private global::System.Windows.Forms.Button btnActivate;
// Token: 0x0400008B RID: 139
private global::System.Windows.Forms.Panel pblFooter;
// Token: 0x0400008C RID: 140
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x0400008D RID: 141
private global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x0400008E RID: 142
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x0400008F RID: 143
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x04000090 RID: 144
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x04000091 RID: 145
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x04000092 RID: 146
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x04000093 RID: 147
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x04000094 RID: 148
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x04000095 RID: 149
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x04000096 RID: 150
private global::System.Windows.Forms.SplitContainer splitContainer1;
// Token: 0x04000097 RID: 151
private global::System.Windows.Forms.Panel bdrMidSeparator;
// Token: 0x04000098 RID: 152
private global::System.Windows.Forms.TextBox txtActivationCode;
// Token: 0x04000099 RID: 153
private global::System.Windows.Forms.TextBox txtRequestCode;
// Token: 0x0400009A RID: 154
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x0400009B RID: 155
private global::System.Windows.Forms.Label lblTitle;
// Token: 0x0400009C RID: 156
private global::System.Windows.Forms.Button btnCancel;
// Token: 0x0400009D RID: 157
private global::System.Windows.Forms.Label lblRequestCode;
// Token: 0x0400009E RID: 158
private global::System.Windows.Forms.Label lblActivationCode;
// Token: 0x0400009F RID: 159
private global::System.Windows.Forms.Button btnCopyRequestCode;
// Token: 0x040000A0 RID: 160
private global::System.Windows.Forms.Button btnPasteActivationCode;
// Token: 0x040000A1 RID: 161
private global::System.Windows.Forms.Label lblMessageInfo;
// Token: 0x040000A2 RID: 162
private global::System.Windows.Forms.Timer tmrMessageTimer;
// Token: 0x040000A3 RID: 163
private global::System.Windows.Forms.Button btnSaveRQ;
// Token: 0x040000A4 RID: 164
private global::Bunifu.Licensing.Views.Controls.Box boxBrowseForCode;
// Token: 0x040000A5 RID: 165
private global::System.Windows.Forms.Panel pnlBrowseForCode;
// Token: 0x040000A6 RID: 166
private global::System.Windows.Forms.PictureBox pbBrowseForCode;
// Token: 0x040000A7 RID: 167
private global::System.Windows.Forms.Label lblTitleBrowseForCode;
// Token: 0x040000A8 RID: 168
private global::System.Windows.Forms.Label lblTextBrowseForCode;
// Token: 0x040000A9 RID: 169
private global::System.Windows.Forms.Label lblActivationCodeTitle;
// Token: 0x040000AA RID: 170
private global::System.Windows.Forms.Label lblActivationCodeFile;
}
}
+624
View File
@@ -0,0 +1,624 @@
#if NET5_0_OR_NETFRAMEWORK
using System.Runtime.CompilerServices;
#endif
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Models;
using Bunifu.Licensing.Options;
using Bunifu.Licensing.Views.Controls;
using Bunifu.Licensing.Views.Transitions;
using Newtonsoft.Json;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000008 RID: 8
[DebuggerStepThrough]
internal partial class InformationBoxEx : Form
{
// Token: 0x060000A3 RID: 163 RVA: 0x0000AC65 File Offset: 0x00008E65
public InformationBoxEx()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x17000017 RID: 23
// (get) Token: 0x060000A4 RID: 164 RVA: 0x0000AC92 File Offset: 0x00008E92
// (set) Token: 0x060000A5 RID: 165 RVA: 0x0000AC9A File Offset: 0x00008E9A
public string Email { get; set; }
// Token: 0x17000018 RID: 24
// (get) Token: 0x060000A6 RID: 166 RVA: 0x0000ACA3 File Offset: 0x00008EA3
// (set) Token: 0x060000A7 RID: 167 RVA: 0x0000ACAB File Offset: 0x00008EAB
public string LicenseKey { get; set; }
// Token: 0x060000A8 RID: 168 RVA: 0x0000ACB4 File Offset: 0x00008EB4
public new void Show()
{
base.Opacity = 0.0;
base.Show();
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 1.0);
transition.run();
}
// Token: 0x060000A9 RID: 169 RVA: 0x0000AD0C File Offset: 0x00008F0C
public new DialogResult ShowDialog()
{
try
{
this.Show();
base.Opacity = 0.0;
base.StartPosition = FormStartPosition.CenterScreen;
base.Hide();
Transition.run(this, "Opacity", 1.0, new TransitionType_EaseInEaseOut(220));
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x060000AA RID: 170 RVA: 0x0000AD88 File Offset: 0x00008F88
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x060000AB RID: 171 RVA: 0x0000ADDB File Offset: 0x00008FDB
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x060000AC RID: 172 RVA: 0x0000ADEE File Offset: 0x00008FEE
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x060000AD RID: 173 RVA: 0x0000AE04 File Offset: 0x00009004
private string EncodeLicense()
{
v2Request v2Request = new v2Request
{
DeviceID = LicenseValidator.GetHardwareID(),
DeviceName = Environment.MachineName,
OS = Hardware.GetOSName(),
Email = this.Email,
LicenseKey = this.LicenseKey
};
string text = JsonConvert.SerializeObject(v2Request);
return Cryptography.Base64Encode(Cryptography.Encrypt(text));
}
// Token: 0x060000AE RID: 174 RVA: 0x0000AE6C File Offset: 0x0000906C
private Record DecodeLicense(string licenseActivationCode)
{
Record record;
try
{
string text = Cryptography.Base64Decode(licenseActivationCode);
string text2 = Cryptography.Decrypt2(text);
string text3 = Cryptography.Decrypt(text2);
record = JsonConvert.DeserializeObject<Record>(text3);
}
catch (Exception)
{
record = new Record
{
IsValid = false
};
}
return record;
}
// Token: 0x060000AF RID: 175 RVA: 0x0000AEBC File Offset: 0x000090BC
private void ShowActivationSuccessDialog(Record license)
{
try
{
bool visible = LicenseProviders._trialBox.Visible;
if (visible)
{
LicenseProviders._trialBox.Hide();
}
}
catch (Exception)
{
}
ActivationSuccess successDialog = new ActivationSuccess();
string text = license.License.Product.ToString();
bool flag = license.License.Product == ProductTypes.UIWinForms;
if (flag)
{
text = "Bunifu UI WinForms";
}
else
{
bool flag2 = license.License.Product == ProductTypes.DatavizBasicWinForms;
if (flag2)
{
text = "Bunifu Dataviz Basic";
}
else
{
bool flag3 = license.License.Product == ProductTypes.DatavizAdvancedWinForms;
if (flag3)
{
text = "Bunifu Dataviz Advanced";
}
else
{
bool flag4 = license.License.Product == ProductTypes.Charts;
if (flag4)
{
text = "Bunifu Charts";
}
}
}
}
string text2 = license.License.RemainingDays.ToString();
string text3 = license.License.ExpiryDate.ToString("dddd, MMMM dd, yyyy");
try
{
bool flag5 = license.License.Type == LicenseTypes.Enterprise;
if (flag5)
{
text3 = "Perpetual";
text2 = "Unlimited";
}
}
catch (Exception)
{
}
successDialog.Product = text;
successDialog.Plan = license.License.Plan;
successDialog.ProductShortForm = license.License.Product.ToString();
successDialog.LicenseType = license.License.Type.ToString();
successDialog.PurchaseEmail = license.Client.Email;
successDialog.LicenseKey = license.LicenseKey;
ActivationSuccess successDialog3 = successDialog;
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(8, 1);
defaultInterpolatedStringHandler.AppendFormatted<int>(license.License.MaxDevices);
defaultInterpolatedStringHandler.AppendLiteral(" (total)");
successDialog3.NoOfActivations = defaultInterpolatedStringHandler.ToStringAndClear();
ActivationSuccess successDialog2 = successDialog;
defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(14, 1);
defaultInterpolatedStringHandler.AppendFormatted<int>(license.License.RemainingDevices);
defaultInterpolatedStringHandler.AppendLiteral(" (activations)");
successDialog2.RemainingActivations = defaultInterpolatedStringHandler.ToStringAndClear();
successDialog.ExpiryDate = text3;
successDialog.RemainingDays = text2;
List<string> productsLicensed = LicenseValidator.GetProductsLicensed(license, license.License.Product, true);
int autoHeight = successDialog.ctaAlert.Top + successDialog.ctaAlert.Height + successDialog.lnkViewLicenseFile.Height + successDialog.pnlFooter.Height + 80;
int standardHeight = successDialog.lblRemainingDaysTitle.Bottom + successDialog.lnkViewLicenseFile.Height + 75;
bool flag6 = license.License.ProductsLicensed.Count <= 1;
if (flag6)
{
successDialog.ctaAlert.Hidden = true;
successDialog.Height = standardHeight;
}
else
{
foreach (string text4 in productsLicensed)
{
successDialog.ctaAlert.Items.Add(text4);
}
successDialog.ctaAlert.Hidden = false;
successDialog.Height = autoHeight;
successDialog.ctaAlert.ActivateClicked += delegate(object sender, EventArgs args)
{
bool flag7 = successDialog.ctaAlert.CheckedItems.Count >= 1;
if (flag7)
{
int num = (Screen.FromControl(this).WorkingArea.Height - standardHeight) / 2;
this.Cursor = Cursors.WaitCursor;
foreach (object obj in successDialog.ctaAlert.CheckedItems)
{
license.License.Product = LicenseValidator.GetProductEnum(obj.ToString());
Registry.Licensing.SaveLicense(license);
}
this.Cursor = Cursors.Default;
InformationBoxHelper.Show("The products have now been successfully activated. Activation will not be necessary once any one of the products has been installed in your project(s).", "Products Activated Successfully", "", InformationBox.InformationBoxIcons.Information, "Okay", "");
successDialog.ctaAlert.Hidden = true;
Transition.run(successDialog, "Height", standardHeight, new TransitionType_EaseInEaseOut(150));
Transition.run(successDialog, "Top", num, new TransitionType_EaseInEaseOut(150));
}
else
{
InformationBoxHelper.Show("Please select atleast one product then try again.", "Select Product(s)", "", InformationBox.InformationBoxIcons.Warning, "Okay", "");
}
};
successDialog.ctaAlert.CancelClicked += delegate(object sender, EventArgs args)
{
standardHeight = autoHeight - (successDialog.ctaAlert.Height + 10);
int num2 = (Screen.FromControl(this).WorkingArea.Height - standardHeight) / 2;
successDialog.ctaAlert.Hidden = true;
Transition.run(successDialog, "Height", standardHeight, new TransitionType_EaseInEaseOut(150));
Transition.run(successDialog, "Top", num2, new TransitionType_EaseInEaseOut(150));
};
}
successDialog.ShowDialog();
}
// Token: 0x060000B0 RID: 176 RVA: 0x0000B324 File Offset: 0x00009524
private void ImproveTextRendering()
{
this.lblTitle.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
this.lblDescription.UseCompatibleTextRendering = false;
this.btnActivate.UseCompatibleTextRendering = false;
this.btnCancel.UseCompatibleTextRendering = false;
this.btnCopyRequestCode.UseCompatibleTextRendering = false;
this.btnPasteActivationCode.UseCompatibleTextRendering = false;
this.btnSaveRQ.UseCompatibleTextRendering = false;
this.lblRequestCode.UseCompatibleTextRendering = false;
this.lblActivationCode.UseCompatibleTextRendering = false;
this.lblMessageInfo.UseCompatibleTextRendering = false;
this.lblTitleBrowseForCode.UseCompatibleTextRendering = false;
this.lblTextBrowseForCode.UseCompatibleTextRendering = false;
this.lblActivationCodeTitle.UseCompatibleTextRendering = false;
this.lblActivationCodeFile.UseCompatibleTextRendering = false;
}
// Token: 0x060000B1 RID: 177 RVA: 0x0000B3F5 File Offset: 0x000095F5
private void ShowActivityStatus()
{
this.btnActivate.Text = "Activating...";
this.btnActivate.Enabled = false;
this.btnCancel.Enabled = false;
this.Cursor = Cursors.WaitCursor;
}
// Token: 0x060000B2 RID: 178 RVA: 0x0000B42F File Offset: 0x0000962F
private void HideActivityStatus()
{
this.Cursor = Cursors.Default;
this.btnActivate.Text = "Activate";
this.btnActivate.Enabled = true;
this.btnCancel.Enabled = true;
}
// Token: 0x060000B3 RID: 179 RVA: 0x0000B46C File Offset: 0x0000966C
public void Notify(string message, InformationBoxEx.MessageTypes type = InformationBoxEx.MessageTypes.Information)
{
this._seconds = 0;
Color color = Color.MediumSeaGreen;
bool flag = type == InformationBoxEx.MessageTypes.Information;
if (flag)
{
color = Color.MediumSeaGreen;
}
else
{
bool flag2 = type == InformationBoxEx.MessageTypes.Error;
if (flag2)
{
color = Color.Tomato;
}
}
this.lblMessageInfo.Text = message;
Transition transition = new Transition(new TransitionType_EaseInEaseOut(170));
transition.add(this.lblMessageInfo, "ForeColor", color);
transition.TransitionCompletedEvent += delegate
{
this.tmrMessageTimer.Enabled = true;
this.tmrMessageTimer.Start();
};
transition.run();
}
// Token: 0x060000B4 RID: 180 RVA: 0x0000B4F4 File Offset: 0x000096F4
public bool ExploreFile(string filePath)
{
bool flag = !File.Exists(filePath);
bool flag2;
if (flag)
{
flag2 = false;
}
else
{
filePath = Path.GetFullPath(filePath);
Process.Start("explorer.exe", string.Format("/select,\"{0}\"", filePath));
flag2 = true;
}
return flag2;
}
// Token: 0x060000B5 RID: 181 RVA: 0x0000B538 File Offset: 0x00009738
public bool ExploreFolder(string folderPath)
{
bool flag;
try
{
Process.Start(new ProcessStartInfo
{
FileName = folderPath,
UseShellExecute = true,
Verb = "open"
});
flag = true;
}
catch (Exception)
{
flag = false;
}
return flag;
}
// Token: 0x060000B6 RID: 182 RVA: 0x0000B58C File Offset: 0x0000978C
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
this.bdrMidLeft.Hide();
this.bdrMidRight.Hide();
this.bdrBottomLeft.Hide();
this.bdrBottomRight.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
this.bdrMidLeft.Show();
this.bdrMidRight.Show();
this.bdrBottomLeft.Show();
this.bdrBottomRight.Show();
}
}
// Token: 0x060000B7 RID: 183 RVA: 0x0000B670 File Offset: 0x00009870
private void OnLoad(object sender, EventArgs e)
{
this.ApplyShadows();
bool flag = LicenseValidator.Product == ProductTypes.UIWinForms;
if (flag)
{
this.lblTitle.Text = "Activate Bunifu UI (Offline)";
}
else
{
bool flag2 = LicenseValidator.Product == ProductTypes.DatavizBasicWinForms;
if (flag2)
{
this.lblTitle.Text = "Activate Bunifu Dataviz Basic (Offline)";
}
else
{
bool flag3 = LicenseValidator.Product == ProductTypes.DatavizAdvancedWinForms;
if (flag3)
{
this.lblTitle.Text = "Activate Bunifu Dataviz Advanced (Offline)";
}
}
}
this.txtRequestCode.Text = this.EncodeLicense();
try
{
Clipboard.SetText(this.txtRequestCode.Text);
this.Notify("Your Request Code has been copied to the clipboard!", InformationBoxEx.MessageTypes.Information);
}
catch (Exception)
{
}
}
// Token: 0x060000B8 RID: 184 RVA: 0x0000B72C File Offset: 0x0000992C
private void btnActivate_Click(object sender, EventArgs e)
{
this.ShowActivityStatus();
Record record = this.DecodeLicense(this.txtActivationCode.Text);
record._licenseKey = this.LicenseKey;
bool isValid = record.IsValid;
if (isValid)
{
LicenseValidator.CreateLicense(record);
LicenseActivator.LicenseCreated = true;
this.HideActivityStatus();
this.ShowActivationSuccessDialog(record);
this.Hide();
LicenseProviders._activator.Hide();
}
else
{
this.HideActivityStatus();
InformationBoxHelper.Show("The Activation Code provided is invalid.\nPlease request for a valid code.", "Invalid Activation Code", "ERR001: Invalid Activation Code.", InformationBox.InformationBoxIcons.Warning, "Okay", "");
}
}
// Token: 0x060000B9 RID: 185 RVA: 0x0000B7C5 File Offset: 0x000099C5
private void btnCancel_Click(object sender, EventArgs e)
{
base.Close();
}
// Token: 0x060000BA RID: 186 RVA: 0x0000B7D0 File Offset: 0x000099D0
private void btnSaveRQ_Click(object sender, EventArgs e)
{
this.txtRequestCode.Text = this.EncodeLicense();
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.Title = "Choose a location to save the Request Code...";
saveFileDialog.Filter = "Request Codes (*.brc)|*.brc|Text Files (*.txt)|*.txt|All files (*.*)|*.*";
saveFileDialog.SupportMultiDottedExtensions = true;
#if NET5_0_OR_GREATER
string[] array = this.Email.Split('@', StringSplitOptions.None);
#else
string[] array = this.Email.Split(new char[] { '@' });
#endif
saveFileDialog.FileName = array[0];
bool flag = saveFileDialog.ShowDialog() == DialogResult.OK;
if (flag)
{
File.WriteAllText(saveFileDialog.FileName, this.txtRequestCode.Text);
InformationBoxHelper.Show("You can now send the saved Request Code file to Bunifu for activation.", "Request Code Saved", "", InformationBox.InformationBoxIcons.Information, "Okay", "");
this.Notify("Only one more step remaining to activate your license...", InformationBoxEx.MessageTypes.Information);
}
}
// Token: 0x060000BB RID: 187 RVA: 0x0000B884 File Offset: 0x00009A84
private void btnCopyRQ_Click(object sender, EventArgs e)
{
try
{
Clipboard.SetText(this.txtRequestCode.Text);
this.Notify("Your Request Code has been copied to the clipboard!", InformationBoxEx.MessageTypes.Information);
}
catch (Exception)
{
}
}
// Token: 0x060000BC RID: 188 RVA: 0x0000B8CC File Offset: 0x00009ACC
private void btnPasteAC_Click(object sender, EventArgs e)
{
try
{
string text = Clipboard.GetText();
bool flag = this.txtRequestCode.Text == text || string.IsNullOrWhiteSpace(text);
if (flag)
{
this.Notify("Please use a valid Activation Code.", InformationBoxEx.MessageTypes.Error);
}
else
{
this.txtActivationCode.Text = text;
this.Notify("Activation Code pasted!", InformationBoxEx.MessageTypes.Information);
}
}
catch (Exception)
{
}
}
// Token: 0x060000BD RID: 189 RVA: 0x0000B948 File Offset: 0x00009B48
private void btnBrowseAC_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Multiselect = false;
openFileDialog.Title = "Browse for Bunifu Activation Code...";
openFileDialog.Filter = "Activation Codes (*.bac)|*.bac|Text Files (*.txt)|*.txt|All files (*.*)|*.*";
bool flag = openFileDialog.ShowDialog() == DialogResult.OK;
if (flag)
{
this.lblActivationCodeTitle.Show();
this.lblActivationCodeFile.Show();
this.txtActivationCode.Text = File.ReadAllText(openFileDialog.FileName);
this.lblActivationCodeFile.Text = Path.GetFileNameWithoutExtension(openFileDialog.FileName);
}
else
{
this.lblActivationCodeFile.Text = "(none)";
}
}
// Token: 0x060000BE RID: 190 RVA: 0x0000B9E6 File Offset: 0x00009BE6
private void pbClose_Click(object sender, EventArgs e)
{
base.Close();
}
// Token: 0x060000BF RID: 191 RVA: 0x0000B9F0 File Offset: 0x00009BF0
private void tmrMessageTimer_Tick(object sender, EventArgs e)
{
this._seconds++;
bool flag = this._seconds == this._maxSeconds;
if (flag)
{
this.tmrMessageTimer.Stop();
this.tmrMessageTimer.Enabled = false;
Transition.run(this.lblMessageInfo, "ForeColor", Color.WhiteSmoke, new TransitionType_EaseInEaseOut(170));
}
}
// Token: 0x060000C0 RID: 192 RVA: 0x0000BA60 File Offset: 0x00009C60
private void OnKeyDown(object sender, KeyEventArgs e)
{
bool flag = e.KeyCode == Keys.Return || e.KeyCode == Keys.Escape;
if (flag)
{
base.Close();
}
}
// Token: 0x060000C1 RID: 193 RVA: 0x0000BA92 File Offset: 0x00009C92
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x060000C2 RID: 194 RVA: 0x0000BAA8 File Offset: 0x00009CA8
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x060000C3 RID: 195 RVA: 0x0000BB24 File Offset: 0x00009D24
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x0400007D RID: 125
private bool _drag;
// Token: 0x0400007E RID: 126
private int _mousey;
// Token: 0x0400007F RID: 127
private int _mousex;
// Token: 0x04000080 RID: 128
private int _seconds = 0;
// Token: 0x04000081 RID: 129
private int _maxSeconds = 4;
// Token: 0x02000042 RID: 66
public enum MessageTypes
{
// Token: 0x040001A8 RID: 424
Information,
// Token: 0x040001A9 RID: 425
Error
}
}
}
Binary file not shown.
@@ -0,0 +1,90 @@
using System;
using System.Diagnostics;
using System.Windows.Forms;
using Bunifu.Licensing.Properties;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000007 RID: 7
[DebuggerStepThrough]
internal static class InformationBoxHelper
{
// Token: 0x060000A2 RID: 162 RVA: 0x0000AAB4 File Offset: 0x00008CB4
public static bool Show(string message, string title, string moreInfoText = "", InformationBox.InformationBoxIcons icon = InformationBox.InformationBoxIcons.Information, string okayText = "Okay", string cancelText = "")
{
InformationBox informationBox = new InformationBox();
informationBox.lblMessage.Text = message;
informationBox.MoreInformationText = moreInfoText;
informationBox.btnOkay.Text = okayText;
informationBox.btnCancel.Text = cancelText;
bool flag = string.IsNullOrWhiteSpace(title);
if (flag)
{
informationBox.lblWindowTitle.Text = "Bunifu Framework";
}
else
{
informationBox.lblWindowTitle.Text = title;
}
bool flag2 = string.IsNullOrWhiteSpace(cancelText);
if (flag2)
{
informationBox.btnCancel.Hide();
}
else
{
informationBox.btnCancel.Show();
}
bool flag3 = string.IsNullOrWhiteSpace(moreInfoText);
if (flag3)
{
informationBox.lnkMoreInfo.Hide();
}
else
{
informationBox.lnkMoreInfo.Show();
}
bool flag4 = informationBox.IsTextURL(moreInfoText);
if (flag4)
{
informationBox.toolTip.SetToolTip(informationBox.lnkMoreInfo, "Go to " + moreInfoText);
}
else
{
informationBox.toolTip.SetToolTip(informationBox.lnkMoreInfo, "View more information on this...");
}
bool flag5 = icon == InformationBox.InformationBoxIcons.Information;
if (flag5)
{
informationBox.pbIcon.Image = Resources.information;
}
else
{
bool flag6 = icon == InformationBox.InformationBoxIcons.Warning;
if (flag6)
{
informationBox.pbIcon.Image = Resources.yellow_warning;
}
else
{
bool flag7 = icon == InformationBox.InformationBoxIcons.Alert;
if (flag7)
{
informationBox.pbIcon.Image = Resources.red_warning;
}
else
{
bool flag8 = icon == InformationBox.InformationBoxIcons.Error;
if (flag8)
{
informationBox.pbIcon.Image = Resources.error;
}
}
}
}
informationBox.lblMessage.Top = (informationBox.pnlBody.Height - informationBox.lblMessage.Height) / 2;
DialogResult dialogResult = informationBox.ShowDialog();
return dialogResult == DialogResult.OK;
}
}
}
+663
View File
@@ -0,0 +1,663 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000009 RID: 9
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class LicenseActivator : global::System.Windows.Forms.Form
{
// Token: 0x06000101 RID: 257 RVA: 0x0000FA6C File Offset: 0x0000DC6C
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000102 RID: 258 RVA: 0x0000FAA4 File Offset: 0x0000DCA4
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.LicenseActivator));
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.lblDescription = new global::System.Windows.Forms.Label();
this.lblTitle = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.btnActivate = new global::System.Windows.Forms.Button();
this.pblFooter = new global::System.Windows.Forms.Panel();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.lblLinksSeparator2 = new global::System.Windows.Forms.Label();
this.lnkRenew = new global::System.Windows.Forms.LinkLabel();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.lblLinksSeparator1 = new global::System.Windows.Forms.Label();
this.lnkSupport = new global::System.Windows.Forms.LinkLabel();
this.lnkHome = new global::System.Windows.Forms.LinkLabel();
this.btnCancel = new global::System.Windows.Forms.Button();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.pbLicenseKeyError = new global::System.Windows.Forms.PictureBox();
this.pbEmailError = new global::System.Windows.Forms.PictureBox();
this.chkTrial = new global::System.Windows.Forms.CheckBox();
this.pbEmail = new global::System.Windows.Forms.PictureBox();
this.pbLicenseKey = new global::System.Windows.Forms.PictureBox();
this.pnlContent = new global::System.Windows.Forms.Panel();
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.lblLicenseKey = new global::System.Windows.Forms.Label();
this.lblEmail = new global::System.Windows.Forms.Label();
this.txtEmail = new global::System.Windows.Forms.TextBox();
this.txtLicenseKey = new global::System.Windows.Forms.TextBox();
this.boxLicenseKey = new global::Bunifu.Licensing.Views.Controls.Box();
this.boxEmail = new global::Bunifu.Licensing.Views.Controls.Box();
this.cmsLicenseKeyMenu = new global::System.Windows.Forms.ContextMenuStrip(this.components);
this.copyFromClipboardToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
this.pblFooter.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbLicenseKeyError).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbEmailError).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbEmail).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbLicenseKey).BeginInit();
this.pnlContent.SuspendLayout();
this.cmsLicenseKeyMenu.SuspendLayout();
base.SuspendLayout();
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.BackColor = global::System.Drawing.Color.Transparent;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(30, 8);
this.lblWindowTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(128, 20);
this.lblWindowTitle.TabIndex = 0;
this.lblWindowTitle.Text = "Bunifu Framework";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.lblDescription);
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbIcon);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(0, 0);
this.pnlHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(588, 115);
this.pnlHeader.TabIndex = 2;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(587, 1);
this.bdrRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 113);
this.bdrRight.TabIndex = 41;
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 113);
this.bdrLeft.TabIndex = 40;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(588, 1);
this.bdrTop.TabIndex = 39;
this.lblDescription.AutoSize = true;
this.lblDescription.BackColor = global::System.Drawing.Color.Transparent;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblDescription.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblDescription.Location = new global::System.Drawing.Point(19, 80);
this.lblDescription.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(313, 20);
this.lblDescription.TabIndex = 6;
this.lblDescription.Text = "Please provide your license details to proceed";
this.lblDescription.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblDescription.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblDescription.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblTitle.AutoSize = true;
this.lblTitle.BackColor = global::System.Drawing.Color.Transparent;
this.lblTitle.Font = new global::System.Drawing.Font("Segoe UI", 15.75f);
this.lblTitle.ForeColor = global::System.Drawing.Color.Black;
this.lblTitle.Location = new global::System.Drawing.Point(18, 46);
this.lblTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new global::System.Drawing.Size(227, 37);
this.lblTitle.TabIndex = 5;
this.lblTitle.Text = "Activate Bunifu UI";
this.lblTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 114);
this.bdrHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(588, 1);
this.bdrHeader.TabIndex = 12;
this.pbIcon.BackColor = global::System.Drawing.Color.Transparent;
this.pbIcon.Image = global::Bunifu.Licensing.Properties.Resources.bunifu_framework_logo;
this.pbIcon.Location = new global::System.Drawing.Point(10, 9);
this.pbIcon.Margin = new global::System.Windows.Forms.Padding(2);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(18, 16);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 3;
this.pbIcon.TabStop = false;
this.pbIcon.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIcon.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIcon.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.BackColor = global::System.Drawing.Color.Transparent;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(552, 10);
this.pbClose.Margin = new global::System.Windows.Forms.Padding(2);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 18);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Cancel activation");
this.pbClose.Click += new global::System.EventHandler(this.OnClickClose);
this.btnActivate.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnActivate.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnActivate.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnActivate.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnActivate.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnActivate.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnActivate.ForeColor = global::System.Drawing.Color.White;
this.btnActivate.Location = new global::System.Drawing.Point(447, 11);
this.btnActivate.Margin = new global::System.Windows.Forms.Padding(2);
this.btnActivate.Name = "btnActivate";
this.btnActivate.Size = new global::System.Drawing.Size(129, 37);
this.btnActivate.TabIndex = 2;
this.btnActivate.Text = "Activate";
this.toolTip.SetToolTip(this.btnActivate, "Activate your license");
this.btnActivate.UseVisualStyleBackColor = false;
this.btnActivate.Click += new global::System.EventHandler(this.BtnActivate_Click);
this.btnActivate.MouseLeave += new global::System.EventHandler(this.btnActivate_MouseLeave);
this.pblFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pblFooter.Controls.Add(this.bdrBottom);
this.pblFooter.Controls.Add(this.bdrBottomRight);
this.pblFooter.Controls.Add(this.bdrBottomLeft);
this.pblFooter.Controls.Add(this.lblLinksSeparator2);
this.pblFooter.Controls.Add(this.lnkRenew);
this.pblFooter.Controls.Add(this.brdFooterSeparator);
this.pblFooter.Controls.Add(this.lblLinksSeparator1);
this.pblFooter.Controls.Add(this.lnkSupport);
this.pblFooter.Controls.Add(this.lnkHome);
this.pblFooter.Controls.Add(this.btnCancel);
this.pblFooter.Controls.Add(this.btnActivate);
this.pblFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pblFooter.Location = new global::System.Drawing.Point(0, 322);
this.pblFooter.Margin = new global::System.Windows.Forms.Padding(2);
this.pblFooter.Name = "pblFooter";
this.pblFooter.Size = new global::System.Drawing.Size(588, 58);
this.pblFooter.TabIndex = 12;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 57);
this.bdrBottom.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(586, 1);
this.bdrBottom.TabIndex = 40;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(587, 1);
this.bdrBottomRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomRight.TabIndex = 38;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomLeft.TabIndex = 36;
this.lblLinksSeparator2.AutoSize = true;
this.lblLinksSeparator2.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLinksSeparator2.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblLinksSeparator2.Location = new global::System.Drawing.Point(141, 19);
this.lblLinksSeparator2.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLinksSeparator2.Name = "lblLinksSeparator2";
this.lblLinksSeparator2.Size = new global::System.Drawing.Size(15, 20);
this.lblLinksSeparator2.TabIndex = 21;
this.lblLinksSeparator2.Text = "•";
this.lnkRenew.AutoSize = true;
this.lnkRenew.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkRenew.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkRenew.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkRenew.Location = new global::System.Drawing.Point(154, 19);
this.lnkRenew.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkRenew.Name = "lnkRenew";
this.lnkRenew.Size = new global::System.Drawing.Size(53, 20);
this.lnkRenew.TabIndex = 20;
this.lnkRenew.TabStop = true;
this.lnkRenew.Text = "Renew";
this.toolTip.SetToolTip(this.lnkRenew, "Renew your license");
this.lnkRenew.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OnClickRenewLink);
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Margin = new global::System.Windows.Forms.Padding(2);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(588, 1);
this.brdFooterSeparator.TabIndex = 19;
this.lblLinksSeparator1.AutoSize = true;
this.lblLinksSeparator1.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLinksSeparator1.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblLinksSeparator1.Location = new global::System.Drawing.Point(65, 19);
this.lblLinksSeparator1.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLinksSeparator1.Name = "lblLinksSeparator1";
this.lblLinksSeparator1.Size = new global::System.Drawing.Size(15, 20);
this.lblLinksSeparator1.TabIndex = 18;
this.lblLinksSeparator1.Text = "•";
this.lnkSupport.AutoSize = true;
this.lnkSupport.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkSupport.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkSupport.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkSupport.Location = new global::System.Drawing.Point(78, 19);
this.lnkSupport.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkSupport.Name = "lnkSupport";
this.lnkSupport.Size = new global::System.Drawing.Size(62, 20);
this.lnkSupport.TabIndex = 4;
this.lnkSupport.TabStop = true;
this.lnkSupport.Text = "Support";
this.toolTip.SetToolTip(this.lnkSupport, "Visit customer support page");
this.lnkSupport.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OnClickSupportLink);
this.lnkHome.AutoSize = true;
this.lnkHome.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkHome.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkHome.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkHome.Location = new global::System.Drawing.Point(16, 19);
this.lnkHome.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkHome.Name = "lnkHome";
this.lnkHome.Size = new global::System.Drawing.Size(50, 20);
this.lnkHome.TabIndex = 5;
this.lnkHome.TabStop = true;
this.lnkHome.Text = "Home";
this.toolTip.SetToolTip(this.lnkHome, "Visit Bunifu Framework homepage");
this.lnkHome.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OnClickHomeLink);
this.btnCancel.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnCancel.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnCancel.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCancel.FlatAppearance.BorderColor = global::System.Drawing.Color.LightGray;
this.btnCancel.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnCancel.ForeColor = global::System.Drawing.Color.DimGray;
this.btnCancel.Location = new global::System.Drawing.Point(313, 11);
this.btnCancel.Margin = new global::System.Windows.Forms.Padding(2);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new global::System.Drawing.Size(129, 37);
this.btnCancel.TabIndex = 3;
this.btnCancel.Text = "Cancel";
this.toolTip.SetToolTip(this.btnCancel, "Cancel activation");
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Click += new global::System.EventHandler(this.OnClickCancel);
this.pbLicenseKeyError.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.pbLicenseKeyError.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbLicenseKeyError.Image");
this.pbLicenseKeyError.Location = new global::System.Drawing.Point(524, 150);
this.pbLicenseKeyError.Margin = new global::System.Windows.Forms.Padding(2);
this.pbLicenseKeyError.Name = "pbLicenseKeyError";
this.pbLicenseKeyError.Size = new global::System.Drawing.Size(22, 16);
this.pbLicenseKeyError.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbLicenseKeyError.TabIndex = 18;
this.pbLicenseKeyError.TabStop = false;
this.toolTip.SetToolTip(this.pbLicenseKeyError, "Please provide a valid license key");
this.pbLicenseKeyError.Visible = false;
this.pbEmailError.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.pbEmailError.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbEmailError.Image");
this.pbEmailError.Location = new global::System.Drawing.Point(531, 60);
this.pbEmailError.Margin = new global::System.Windows.Forms.Padding(2);
this.pbEmailError.Name = "pbEmailError";
this.pbEmailError.Size = new global::System.Drawing.Size(22, 16);
this.pbEmailError.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbEmailError.TabIndex = 14;
this.pbEmailError.TabStop = false;
this.toolTip.SetToolTip(this.pbEmailError, "Please provide a valid email address");
this.pbEmailError.Visible = false;
this.chkTrial.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.chkTrial.AutoSize = true;
this.chkTrial.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.chkTrial.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.chkTrial.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.chkTrial.ForeColor = global::System.Drawing.Color.Black;
this.chkTrial.Location = new global::System.Drawing.Point(504, 20);
this.chkTrial.Margin = new global::System.Windows.Forms.Padding(2);
this.chkTrial.Name = "chkTrial";
this.chkTrial.Size = new global::System.Drawing.Size(55, 24);
this.chkTrial.TabIndex = 20;
this.chkTrial.Text = "Trial";
this.toolTip.SetToolTip(this.chkTrial, "Activate a free trial license (Ctrl + T)");
this.chkTrial.UseVisualStyleBackColor = true;
this.chkTrial.Visible = false;
this.chkTrial.CheckedChanged += new global::System.EventHandler(this.OnTrialChecked);
this.chkTrial.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnEntriesKeyDown);
this.pbEmail.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.pbEmail.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbEmail.Image");
this.pbEmail.Location = new global::System.Drawing.Point(32, 62);
this.pbEmail.Margin = new global::System.Windows.Forms.Padding(2);
this.pbEmail.Name = "pbEmail";
this.pbEmail.Size = new global::System.Drawing.Size(22, 12);
this.pbEmail.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbEmail.TabIndex = 39;
this.pbEmail.TabStop = false;
this.toolTip.SetToolTip(this.pbEmail, "Please provide a valid email address");
this.pbEmail.Click += new global::System.EventHandler(this.OnClickEmailIcon);
this.pbLicenseKey.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.pbLicenseKey.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbLicenseKey.Image");
this.pbLicenseKey.Location = new global::System.Drawing.Point(32, 151);
this.pbLicenseKey.Margin = new global::System.Windows.Forms.Padding(2);
this.pbLicenseKey.Name = "pbLicenseKey";
this.pbLicenseKey.Size = new global::System.Drawing.Size(22, 14);
this.pbLicenseKey.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbLicenseKey.TabIndex = 40;
this.pbLicenseKey.TabStop = false;
this.toolTip.SetToolTip(this.pbLicenseKey, "Please provide your received license key");
this.pbLicenseKey.Click += new global::System.EventHandler(this.OnClickLicenseKeyIcon);
this.pnlContent.BackColor = global::System.Drawing.Color.White;
this.pnlContent.Controls.Add(this.pbLicenseKey);
this.pnlContent.Controls.Add(this.pbEmail);
this.pnlContent.Controls.Add(this.bdrMidRight);
this.pnlContent.Controls.Add(this.bdrMidLeft);
this.pnlContent.Controls.Add(this.chkTrial);
this.pnlContent.Controls.Add(this.pbLicenseKeyError);
this.pnlContent.Controls.Add(this.pbEmailError);
this.pnlContent.Controls.Add(this.lblLicenseKey);
this.pnlContent.Controls.Add(this.lblEmail);
this.pnlContent.Controls.Add(this.txtEmail);
this.pnlContent.Controls.Add(this.txtLicenseKey);
this.pnlContent.Controls.Add(this.boxLicenseKey);
this.pnlContent.Controls.Add(this.boxEmail);
this.pnlContent.Dock = global::System.Windows.Forms.DockStyle.Fill;
this.pnlContent.Location = new global::System.Drawing.Point(0, 115);
this.pnlContent.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlContent.Name = "pnlContent";
this.pnlContent.Size = new global::System.Drawing.Size(588, 207);
this.pnlContent.TabIndex = 13;
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(587, 0);
this.bdrMidRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 207);
this.bdrMidRight.TabIndex = 38;
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 0);
this.bdrMidLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 207);
this.bdrMidLeft.TabIndex = 36;
this.lblLicenseKey.AutoSize = true;
this.lblLicenseKey.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseKey.ForeColor = global::System.Drawing.Color.Black;
this.lblLicenseKey.Location = new global::System.Drawing.Point(26, 112);
this.lblLicenseKey.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseKey.Name = "lblLicenseKey";
this.lblLicenseKey.Size = new global::System.Drawing.Size(419, 20);
this.lblLicenseKey.TabIndex = 13;
this.lblLicenseKey.Text = "Enter your valid product license key, e.g. 88a62167p2954r3h15";
this.lblEmail.AutoSize = true;
this.lblEmail.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblEmail.ForeColor = global::System.Drawing.Color.Black;
this.lblEmail.Location = new global::System.Drawing.Point(26, 22);
this.lblEmail.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblEmail.Name = "lblEmail";
this.lblEmail.Size = new global::System.Drawing.Size(408, 20);
this.lblEmail.TabIndex = 11;
this.lblEmail.Text = "Enter your purchase email address, e.g. johndoe@gmail.com";
this.txtEmail.AutoCompleteMode = global::System.Windows.Forms.AutoCompleteMode.Append;
this.txtEmail.BackColor = global::System.Drawing.Color.White;
this.txtEmail.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
this.txtEmail.Font = new global::System.Drawing.Font("Segoe UI Semibold", 12f, global::System.Drawing.FontStyle.Bold);
this.txtEmail.ForeColor = global::System.Drawing.Color.Black;
this.txtEmail.Location = new global::System.Drawing.Point(58, 55);
this.txtEmail.Margin = new global::System.Windows.Forms.Padding(2);
this.txtEmail.Name = "txtEmail";
this.txtEmail.Size = new global::System.Drawing.Size(496, 27);
this.txtEmail.TabIndex = 0;
this.txtEmail.Enter += new global::System.EventHandler(this.OnEnterEmailInput);
this.txtEmail.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnEntriesKeyDown);
this.txtEmail.Leave += new global::System.EventHandler(this.OnLeaveEmailInput);
this.txtLicenseKey.BackColor = global::System.Drawing.Color.White;
this.txtLicenseKey.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
this.txtLicenseKey.Font = new global::System.Drawing.Font("Segoe UI Semibold", 12f, global::System.Drawing.FontStyle.Bold);
this.txtLicenseKey.ForeColor = global::System.Drawing.Color.Black;
this.txtLicenseKey.Location = new global::System.Drawing.Point(58, 145);
this.txtLicenseKey.Margin = new global::System.Windows.Forms.Padding(2);
this.txtLicenseKey.Name = "txtLicenseKey";
this.txtLicenseKey.Size = new global::System.Drawing.Size(496, 27);
this.txtLicenseKey.TabIndex = 1;
this.txtLicenseKey.Enter += new global::System.EventHandler(this.OnEnterLicenseKeyInput);
this.txtLicenseKey.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnEntriesKeyDown);
this.txtLicenseKey.Leave += new global::System.EventHandler(this.OnLeaveLicenseKeyInput);
this.boxLicenseKey.BackColor = global::System.Drawing.Color.Transparent;
this.boxLicenseKey.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.boxLicenseKey.LineColor = global::System.Drawing.Color.LightGray;
this.boxLicenseKey.LineStyle = global::Bunifu.Licensing.Views.Controls.Box.LineStyles.Solid;
this.boxLicenseKey.Location = new global::System.Drawing.Point(26, 138);
this.boxLicenseKey.Margin = new global::System.Windows.Forms.Padding(2);
this.boxLicenseKey.Name = "boxLicenseKey";
this.boxLicenseKey.Size = new global::System.Drawing.Size(536, 41);
this.boxLicenseKey.TabIndex = 17;
this.boxLicenseKey.LineColorChanged += new global::System.EventHandler(this.OnLicenseKeyBoxColorChanged);
this.boxLicenseKey.Click += new global::System.EventHandler(this.OnClickLicenseKeyBox);
this.boxEmail.BackColor = global::System.Drawing.Color.Transparent;
this.boxEmail.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.boxEmail.LineColor = global::System.Drawing.Color.LightGray;
this.boxEmail.LineStyle = global::Bunifu.Licensing.Views.Controls.Box.LineStyles.Solid;
this.boxEmail.Location = new global::System.Drawing.Point(26, 48);
this.boxEmail.Margin = new global::System.Windows.Forms.Padding(2);
this.boxEmail.Name = "boxEmail";
this.boxEmail.Size = new global::System.Drawing.Size(536, 41);
this.boxEmail.TabIndex = 16;
this.boxEmail.LineColorChanged += new global::System.EventHandler(this.OnEmailBoxColorChanged);
this.boxEmail.Click += new global::System.EventHandler(this.OnClickEmailBox);
this.cmsLicenseKeyMenu.ImageScalingSize = new global::System.Drawing.Size(20, 20);
this.cmsLicenseKeyMenu.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[] { this.copyFromClipboardToolStripMenuItem });
this.cmsLicenseKeyMenu.Name = "cmsLicenseKeyMenu";
this.cmsLicenseKeyMenu.Size = new global::System.Drawing.Size(223, 30);
this.copyFromClipboardToolStripMenuItem.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("copyFromClipboardToolStripMenuItem.Image");
this.copyFromClipboardToolStripMenuItem.Name = "copyFromClipboardToolStripMenuItem";
this.copyFromClipboardToolStripMenuItem.Size = new global::System.Drawing.Size(222, 26);
this.copyFromClipboardToolStripMenuItem.Text = "Copy from Clipboard";
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = global::System.Drawing.Color.White;
base.ClientSize = new global::System.Drawing.Size(588, 380);
base.Controls.Add(this.pnlContent);
base.Controls.Add(this.pblFooter);
base.Controls.Add(this.pnlHeader);
this.DoubleBuffered = true;
this.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.ForeColor = global::System.Drawing.Color.Black;
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Margin = new global::System.Windows.Forms.Padding(2);
base.Name = "LicenseActivator";
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Activate License";
base.TopMost = true;
base.FormClosing += new global::System.Windows.Forms.FormClosingEventHandler(this.OnClose);
base.Load += new global::System.EventHandler(this.OnLoad);
base.Shown += new global::System.EventHandler(this.OnShow);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnEntriesKeyDown);
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
this.pblFooter.ResumeLayout(false);
this.pblFooter.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbLicenseKeyError).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbEmailError).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbEmail).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbLicenseKey).EndInit();
this.pnlContent.ResumeLayout(false);
this.pnlContent.PerformLayout();
this.cmsLicenseKeyMenu.ResumeLayout(false);
base.ResumeLayout(false);
}
// Token: 0x040000B7 RID: 183
private global::System.ComponentModel.IContainer components = null;
// Token: 0x040000B8 RID: 184
private global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x040000B9 RID: 185
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x040000BA RID: 186
private global::System.Windows.Forms.Label lblTitle;
// Token: 0x040000BB RID: 187
private global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x040000BC RID: 188
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x040000BD RID: 189
private global::System.Windows.Forms.Button btnActivate;
// Token: 0x040000BE RID: 190
private global::System.Windows.Forms.Panel pblFooter;
// Token: 0x040000BF RID: 191
private global::System.Windows.Forms.Button btnCancel;
// Token: 0x040000C0 RID: 192
private global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x040000C1 RID: 193
private global::System.Windows.Forms.Panel pnlContent;
// Token: 0x040000C2 RID: 194
private global::System.Windows.Forms.Label lblLicenseKey;
// Token: 0x040000C3 RID: 195
private global::System.Windows.Forms.Label lblEmail;
// Token: 0x040000C4 RID: 196
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x040000C5 RID: 197
private global::System.Windows.Forms.LinkLabel lnkHome;
// Token: 0x040000C6 RID: 198
private global::System.Windows.Forms.LinkLabel lnkSupport;
// Token: 0x040000C7 RID: 199
private global::System.Windows.Forms.Label lblLinksSeparator1;
// Token: 0x040000C8 RID: 200
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x040000C9 RID: 201
private global::System.Windows.Forms.ContextMenuStrip cmsLicenseKeyMenu;
// Token: 0x040000CA RID: 202
private global::System.Windows.Forms.ToolStripMenuItem copyFromClipboardToolStripMenuItem;
// Token: 0x040000CB RID: 203
private global::Bunifu.Licensing.Views.Controls.Box boxLicenseKey;
// Token: 0x040000CC RID: 204
private global::Bunifu.Licensing.Views.Controls.Box boxEmail;
// Token: 0x040000CD RID: 205
private global::System.Windows.Forms.PictureBox pbEmailError;
// Token: 0x040000CE RID: 206
private global::System.Windows.Forms.PictureBox pbLicenseKeyError;
// Token: 0x040000CF RID: 207
private global::System.Windows.Forms.Label lblLinksSeparator2;
// Token: 0x040000D0 RID: 208
private global::System.Windows.Forms.LinkLabel lnkRenew;
// Token: 0x040000D1 RID: 209
private global::System.Windows.Forms.CheckBox chkTrial;
// Token: 0x040000D2 RID: 210
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x040000D3 RID: 211
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x040000D4 RID: 212
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x040000D5 RID: 213
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x040000D6 RID: 214
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x040000D7 RID: 215
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x040000D8 RID: 216
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x040000D9 RID: 217
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x040000DA RID: 218
internal global::System.Windows.Forms.TextBox txtLicenseKey;
// Token: 0x040000DB RID: 219
internal global::System.Windows.Forms.TextBox txtEmail;
// Token: 0x040000DC RID: 220
private global::System.Windows.Forms.PictureBox pbEmail;
// Token: 0x040000DD RID: 221
private global::System.Windows.Forms.PictureBox pbLicenseKey;
// Token: 0x040000DE RID: 222
private global::System.Windows.Forms.PictureBox pbClose;
}
}
File diff suppressed because it is too large Load Diff
Binary file not shown.
@@ -0,0 +1,17 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000B RID: 11
internal interface IManagedType
{
// Token: 0x06000125 RID: 293
Type getManagedType();
// Token: 0x06000126 RID: 294
object copy(object o);
// Token: 0x06000127 RID: 295
object getIntermediateValue(object start, object end, double dPercentage);
}
}
@@ -0,0 +1,11 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000C RID: 12
internal interface ITransitionType
{
// Token: 0x06000128 RID: 296
void onTimer(int iTime, out double dPercentage, out bool bCompleted);
}
}
@@ -0,0 +1,17 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000015 RID: 21
internal enum InterpolationMethod
{
// Token: 0x04000101 RID: 257
Linear,
// Token: 0x04000102 RID: 258
Accleration,
// Token: 0x04000103 RID: 259
Deceleration,
// Token: 0x04000104 RID: 260
EaseInEaseOut
}
}
@@ -0,0 +1,42 @@
using System;
using System.Drawing;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000D RID: 13
internal class ManagedType_Color : IManagedType
{
// Token: 0x06000129 RID: 297 RVA: 0x00013650 File Offset: 0x00011850
public Type getManagedType()
{
return typeof(Color);
}
// Token: 0x0600012A RID: 298 RVA: 0x0001366C File Offset: 0x0001186C
public object copy(object o)
{
Color color = Color.FromArgb(((Color)o).ToArgb());
return color;
}
// Token: 0x0600012B RID: 299 RVA: 0x00013698 File Offset: 0x00011898
public object getIntermediateValue(object start, object end, double dPercentage)
{
Color color = (Color)start;
Color color2 = (Color)end;
int r = (int)color.R;
int g = (int)color.G;
int b = (int)color.B;
int a = (int)color.A;
int r2 = (int)color2.R;
int g2 = (int)color2.G;
int b2 = (int)color2.B;
int a2 = (int)color2.A;
int num = Utility.interpolate(r, r2, dPercentage);
int num2 = Utility.interpolate(g, g2, dPercentage);
int num3 = Utility.interpolate(b, b2, dPercentage);
int num4 = Utility.interpolate(a, a2, dPercentage);
return Color.FromArgb(num4, num, num2, num3);
}
}
}
@@ -0,0 +1,29 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000E RID: 14
internal class ManagedType_Double : IManagedType
{
// Token: 0x0600012D RID: 301 RVA: 0x0001374C File Offset: 0x0001194C
public Type getManagedType()
{
return typeof(double);
}
// Token: 0x0600012E RID: 302 RVA: 0x00013768 File Offset: 0x00011968
public object copy(object o)
{
double num = (double)o;
return num;
}
// Token: 0x0600012F RID: 303 RVA: 0x00013788 File Offset: 0x00011988
public object getIntermediateValue(object start, object end, double dPercentage)
{
double num = (double)start;
double num2 = (double)end;
return Utility.interpolate(num, num2, dPercentage);
}
}
}
@@ -0,0 +1,29 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000F RID: 15
internal class ManagedType_Float : IManagedType
{
// Token: 0x06000131 RID: 305 RVA: 0x000137C0 File Offset: 0x000119C0
public Type getManagedType()
{
return typeof(float);
}
// Token: 0x06000132 RID: 306 RVA: 0x000137DC File Offset: 0x000119DC
public object copy(object o)
{
float num = (float)o;
return num;
}
// Token: 0x06000133 RID: 307 RVA: 0x000137FC File Offset: 0x000119FC
public object getIntermediateValue(object start, object end, double dPercentage)
{
float num = (float)start;
float num2 = (float)end;
return Utility.interpolate(num, num2, dPercentage);
}
}
}
@@ -0,0 +1,29 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000010 RID: 16
internal class ManagedType_Int : IManagedType
{
// Token: 0x06000135 RID: 309 RVA: 0x00013834 File Offset: 0x00011A34
public Type getManagedType()
{
return typeof(int);
}
// Token: 0x06000136 RID: 310 RVA: 0x00013850 File Offset: 0x00011A50
public object copy(object o)
{
int num = (int)o;
return num;
}
// Token: 0x06000137 RID: 311 RVA: 0x00013870 File Offset: 0x00011A70
public object getIntermediateValue(object start, object end, double dPercentage)
{
int num = (int)start;
int num2 = (int)end;
return Utility.interpolate(num, num2, dPercentage);
}
}
}
@@ -0,0 +1,62 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000011 RID: 17
internal class ManagedType_String : IManagedType
{
// Token: 0x06000139 RID: 313 RVA: 0x000138A8 File Offset: 0x00011AA8
public Type getManagedType()
{
return typeof(string);
}
// Token: 0x0600013A RID: 314 RVA: 0x000138C4 File Offset: 0x00011AC4
public object copy(object o)
{
string text = (string)o;
return new string(text.ToCharArray());
}
// Token: 0x0600013B RID: 315 RVA: 0x000138E8 File Offset: 0x00011AE8
public object getIntermediateValue(object start, object end, double dPercentage)
{
string text = (string)start;
string text2 = (string)end;
int length = text.Length;
int length2 = text2.Length;
int num = Utility.interpolate(length, length2, dPercentage);
char[] array = new char[num];
for (int i = 0; i < num; i++)
{
char c = 'a';
bool flag = i < length;
if (flag)
{
c = text[i];
}
char c2 = 'a';
bool flag2 = i < length2;
if (flag2)
{
c2 = text2[i];
}
bool flag3 = c2 == ' ';
char c3;
if (flag3)
{
c3 = ' ';
}
else
{
int num2 = Convert.ToInt32(c);
int num3 = Convert.ToInt32(c2);
int num4 = Utility.interpolate(num2, num3, dPercentage);
c3 = Convert.ToChar(num4);
}
array[i] = c3;
}
return new string(array);
}
}
}
@@ -0,0 +1,46 @@
using System;
using System.Reflection;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000012 RID: 18
internal static class ReflectionHelper
{
// Token: 0x0600013D RID: 317 RVA: 0x000139D4 File Offset: 0x00011BD4
public static object GetPropValue(this object obj, string propName)
{
#if NET5_0_OR_GREATER
string[] array = propName.Split('.', StringSplitOptions.None);
#else
string[] array = propName.Split(new char[] { '.' });
#endif
bool flag = array.Length == 1;
object obj2;
if (flag)
{
obj2 = obj.GetType().GetProperty(propName).GetValue(obj, null);
}
else
{
foreach (string text in array)
{
bool flag2 = obj == null;
if (flag2)
{
return null;
}
Type type = obj.GetType();
PropertyInfo property = type.GetProperty(text);
bool flag3 = property == null;
if (flag3)
{
return null;
}
obj = property.GetValue(obj, null);
}
obj2 = obj;
}
return obj2;
}
}
}
@@ -0,0 +1,278 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000013 RID: 19
[DebuggerStepThrough]
internal class Transition
{
// Token: 0x0600013E RID: 318 RVA: 0x00013A70 File Offset: 0x00011C70
static Transition()
{
Transition.registerType(new ManagedType_Int());
Transition.registerType(new ManagedType_Float());
Transition.registerType(new ManagedType_Double());
Transition.registerType(new ManagedType_Color());
Transition.registerType(new ManagedType_String());
}
// Token: 0x14000001 RID: 1
// (add) Token: 0x0600013F RID: 319 RVA: 0x00013AC0 File Offset: 0x00011CC0
// (remove) Token: 0x06000140 RID: 320 RVA: 0x00013AF8 File Offset: 0x00011CF8
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event EventHandler<Transition.Args> TransitionCompletedEvent;
// Token: 0x06000141 RID: 321 RVA: 0x00013B30 File Offset: 0x00011D30
public static void run(object target, string strPropertyName, object destinationValue, ITransitionType transitionMethod)
{
Transition transition = new Transition(transitionMethod);
transition.add(target, strPropertyName, destinationValue);
transition.run();
}
// Token: 0x06000142 RID: 322 RVA: 0x00013B56 File Offset: 0x00011D56
public static void run(object target, string strPropertyName, object initialValue, object destinationValue, ITransitionType transitionMethod)
{
Utility.setValue(target, strPropertyName, initialValue);
Transition.run(target, strPropertyName, destinationValue, transitionMethod);
}
// Token: 0x06000143 RID: 323 RVA: 0x00013B70 File Offset: 0x00011D70
public static void runChain(params Transition[] transitions)
{
TransitionChain transitionChain = new TransitionChain(transitions);
}
// Token: 0x06000144 RID: 324 RVA: 0x00013B85 File Offset: 0x00011D85
public Transition(ITransitionType transitionMethod)
{
this.m_TransitionMethod = transitionMethod;
}
// Token: 0x06000145 RID: 325 RVA: 0x00013BC0 File Offset: 0x00011DC0
public void add(object target, string strPropertyName, object destinationValue)
{
Type type = target.GetType();
PropertyInfo property = type.GetProperty(strPropertyName);
bool flag = property == null;
if (flag)
{
throw new Exception("Object: " + target.ToString() + " does not have the property: " + strPropertyName);
}
Type propertyType = property.PropertyType;
bool flag2 = !Transition.m_mapManagedTypes.ContainsKey(propertyType);
if (flag2)
{
throw new Exception("Transition does not handle properties of type: " + propertyType.ToString());
}
bool flag3 = !property.CanRead || !property.CanWrite;
if (flag3)
{
throw new Exception("Property is not both gettable and settable: " + strPropertyName);
}
IManagedType managedType = Transition.m_mapManagedTypes[propertyType];
Transition.TransitionedPropertyInfo transitionedPropertyInfo = new Transition.TransitionedPropertyInfo();
transitionedPropertyInfo.endValue = destinationValue;
transitionedPropertyInfo.target = target;
transitionedPropertyInfo.propertyInfo = property;
transitionedPropertyInfo.managedType = managedType;
object @lock = this.m_Lock;
lock (@lock)
{
this.m_listTransitionedProperties.Add(transitionedPropertyInfo);
}
}
// Token: 0x06000146 RID: 326 RVA: 0x00013CDC File Offset: 0x00011EDC
public void run()
{
foreach (Transition.TransitionedPropertyInfo transitionedPropertyInfo in this.m_listTransitionedProperties)
{
object value = transitionedPropertyInfo.propertyInfo.GetValue(transitionedPropertyInfo.target, null);
transitionedPropertyInfo.startValue = transitionedPropertyInfo.managedType.copy(value);
}
this.m_Stopwatch.Reset();
this.m_Stopwatch.Start();
TransitionManager.getInstance().register(this);
}
// Token: 0x17000020 RID: 32
// (get) Token: 0x06000147 RID: 327 RVA: 0x00013D70 File Offset: 0x00011F70
internal IList<Transition.TransitionedPropertyInfo> TransitionedProperties
{
get
{
return this.m_listTransitionedProperties;
}
}
// Token: 0x06000148 RID: 328 RVA: 0x00013D88 File Offset: 0x00011F88
internal void removeProperty(Transition.TransitionedPropertyInfo info)
{
object @lock = this.m_Lock;
lock (@lock)
{
this.m_listTransitionedProperties.Remove(info);
}
}
// Token: 0x06000149 RID: 329 RVA: 0x00013DD4 File Offset: 0x00011FD4
internal void onTimer()
{
int num = (int)this.m_Stopwatch.ElapsedMilliseconds;
double num2;
bool flag;
this.m_TransitionMethod.onTimer(num, out num2, out flag);
IList<Transition.TransitionedPropertyInfo> list = new List<Transition.TransitionedPropertyInfo>();
object @lock = this.m_Lock;
lock (@lock)
{
foreach (Transition.TransitionedPropertyInfo transitionedPropertyInfo in this.m_listTransitionedProperties)
{
list.Add(transitionedPropertyInfo.copy());
}
}
foreach (Transition.TransitionedPropertyInfo transitionedPropertyInfo2 in list)
{
object intermediateValue = transitionedPropertyInfo2.managedType.getIntermediateValue(transitionedPropertyInfo2.startValue, transitionedPropertyInfo2.endValue, num2);
Transition.PropertyUpdateArgs propertyUpdateArgs = new Transition.PropertyUpdateArgs(transitionedPropertyInfo2.target, transitionedPropertyInfo2.propertyInfo, intermediateValue);
this.setProperty(this, propertyUpdateArgs);
}
bool flag3 = flag;
if (flag3)
{
this.m_Stopwatch.Stop();
Utility.raiseEvent<Transition.Args>(this.TransitionCompletedEvent, this, new Transition.Args());
}
}
// Token: 0x0600014A RID: 330 RVA: 0x00013F28 File Offset: 0x00012128
private void setProperty(object sender, Transition.PropertyUpdateArgs args)
{
try
{
bool flag = this.isDisposed(args.target);
if (!flag)
{
ISynchronizeInvoke synchronizeInvoke = args.target as ISynchronizeInvoke;
bool flag2 = synchronizeInvoke != null && synchronizeInvoke.InvokeRequired;
if (flag2)
{
IAsyncResult asyncResult = synchronizeInvoke.BeginInvoke(new EventHandler<Transition.PropertyUpdateArgs>(this.setProperty), new object[] { sender, args });
asyncResult.AsyncWaitHandle.WaitOne(50);
}
else
{
args.propertyInfo.SetValue(args.target, args.value, null);
}
}
}
catch (Exception)
{
}
}
// Token: 0x0600014B RID: 331 RVA: 0x00013FCC File Offset: 0x000121CC
private bool isDisposed(object target)
{
Control control = target as Control;
bool flag = control == null;
bool flag2;
if (flag)
{
flag2 = false;
}
else
{
bool flag3 = control.IsDisposed || control.Disposing;
flag2 = flag3;
}
return flag2;
}
// Token: 0x0600014C RID: 332 RVA: 0x00014010 File Offset: 0x00012210
private static void registerType(IManagedType transitionType)
{
Type managedType = transitionType.getManagedType();
Transition.m_mapManagedTypes[managedType] = transitionType;
}
// Token: 0x040000FA RID: 250
private static IDictionary<Type, IManagedType> m_mapManagedTypes = new Dictionary<Type, IManagedType>();
// Token: 0x040000FB RID: 251
private ITransitionType m_TransitionMethod = null;
// Token: 0x040000FC RID: 252
private IList<Transition.TransitionedPropertyInfo> m_listTransitionedProperties = new List<Transition.TransitionedPropertyInfo>();
// Token: 0x040000FD RID: 253
private Stopwatch m_Stopwatch = new Stopwatch();
// Token: 0x040000FE RID: 254
private object m_Lock = new object();
// Token: 0x02000045 RID: 69
public class Args : EventArgs
{
}
// Token: 0x02000046 RID: 70
internal class TransitionedPropertyInfo
{
// Token: 0x06000282 RID: 642 RVA: 0x00018094 File Offset: 0x00016294
public Transition.TransitionedPropertyInfo copy()
{
return new Transition.TransitionedPropertyInfo
{
startValue = this.startValue,
endValue = this.endValue,
target = this.target,
propertyInfo = this.propertyInfo,
managedType = this.managedType
};
}
// Token: 0x040001B4 RID: 436
public object startValue;
// Token: 0x040001B5 RID: 437
public object endValue;
// Token: 0x040001B6 RID: 438
public object target;
// Token: 0x040001B7 RID: 439
public PropertyInfo propertyInfo;
// Token: 0x040001B8 RID: 440
public IManagedType managedType;
}
// Token: 0x02000047 RID: 71
private class PropertyUpdateArgs : EventArgs
{
// Token: 0x06000284 RID: 644 RVA: 0x000180F2 File Offset: 0x000162F2
public PropertyUpdateArgs(object t, PropertyInfo pi, object v)
{
this.target = t;
this.propertyInfo = pi;
this.value = v;
}
// Token: 0x040001B9 RID: 441
public object target;
// Token: 0x040001BA RID: 442
public PropertyInfo propertyInfo;
// Token: 0x040001BB RID: 443
public object value;
}
}
}
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000014 RID: 20
internal class TransitionChain
{
// Token: 0x0600014D RID: 333 RVA: 0x00014034 File Offset: 0x00012234
public TransitionChain(params Transition[] transitions)
{
foreach (Transition transition in transitions)
{
this.m_listTransitions.AddLast(transition);
}
this.runNextTransition();
}
// Token: 0x0600014E RID: 334 RVA: 0x00014080 File Offset: 0x00012280
private void runNextTransition()
{
bool flag = this.m_listTransitions.Count == 0;
if (!flag)
{
Transition value = this.m_listTransitions.First.Value;
value.TransitionCompletedEvent += this.onTransitionCompleted;
value.run();
}
}
// Token: 0x0600014F RID: 335 RVA: 0x000140D0 File Offset: 0x000122D0
private void onTransitionCompleted(object sender, Transition.Args e)
{
Transition transition = (Transition)sender;
transition.TransitionCompletedEvent -= this.onTransitionCompleted;
this.m_listTransitions.RemoveFirst();
this.runNextTransition();
}
// Token: 0x040000FF RID: 255
private LinkedList<Transition> m_listTransitions = new LinkedList<Transition>();
}
}
@@ -0,0 +1,31 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000016 RID: 22
internal class TransitionElement
{
// Token: 0x06000150 RID: 336 RVA: 0x0001410B File Offset: 0x0001230B
public TransitionElement(double endTime, double endValue, InterpolationMethod interpolationMethod)
{
this.EndTime = endTime;
this.EndValue = endValue;
this.InterpolationMethod = interpolationMethod;
}
// Token: 0x17000021 RID: 33
// (get) Token: 0x06000151 RID: 337 RVA: 0x0001412D File Offset: 0x0001232D
// (set) Token: 0x06000152 RID: 338 RVA: 0x00014135 File Offset: 0x00012335
public double EndTime { get; set; }
// Token: 0x17000022 RID: 34
// (get) Token: 0x06000153 RID: 339 RVA: 0x0001413E File Offset: 0x0001233E
// (set) Token: 0x06000154 RID: 340 RVA: 0x00014146 File Offset: 0x00012346
public double EndValue { get; set; }
// Token: 0x17000023 RID: 35
// (get) Token: 0x06000155 RID: 341 RVA: 0x0001414F File Offset: 0x0001234F
// (set) Token: 0x06000156 RID: 342 RVA: 0x00014157 File Offset: 0x00012357
public InterpolationMethod InterpolationMethod { get; set; }
}
}
@@ -0,0 +1,118 @@
using System;
using System.Collections.Generic;
using System.Timers;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000017 RID: 23
internal class TransitionManager
{
// Token: 0x06000157 RID: 343 RVA: 0x00014160 File Offset: 0x00012360
public static TransitionManager getInstance()
{
bool flag = TransitionManager.m_Instance == null;
if (flag)
{
TransitionManager.m_Instance = new TransitionManager();
}
return TransitionManager.m_Instance;
}
// Token: 0x06000158 RID: 344 RVA: 0x00014190 File Offset: 0x00012390
public void register(Transition transition)
{
object @lock = this.m_Lock;
lock (@lock)
{
this.removeDuplicates(transition);
this.m_Transitions[transition] = true;
transition.TransitionCompletedEvent += this.onTransitionCompleted;
}
}
// Token: 0x06000159 RID: 345 RVA: 0x000141F8 File Offset: 0x000123F8
private void removeDuplicates(Transition transition)
{
foreach (KeyValuePair<Transition, bool> keyValuePair in this.m_Transitions)
{
this.removeDuplicates(transition, keyValuePair.Key);
}
}
// Token: 0x0600015A RID: 346 RVA: 0x00014254 File Offset: 0x00012454
private void removeDuplicates(Transition newTransition, Transition oldTransition)
{
IList<Transition.TransitionedPropertyInfo> transitionedProperties = newTransition.TransitionedProperties;
IList<Transition.TransitionedPropertyInfo> transitionedProperties2 = oldTransition.TransitionedProperties;
for (int i = transitionedProperties2.Count - 1; i >= 0; i--)
{
Transition.TransitionedPropertyInfo transitionedPropertyInfo = transitionedProperties2[i];
foreach (Transition.TransitionedPropertyInfo transitionedPropertyInfo2 in transitionedProperties)
{
bool flag = transitionedPropertyInfo.target == transitionedPropertyInfo2.target && transitionedPropertyInfo.propertyInfo == transitionedPropertyInfo2.propertyInfo;
if (flag)
{
oldTransition.removeProperty(transitionedPropertyInfo);
}
}
}
}
// Token: 0x0600015B RID: 347 RVA: 0x00014308 File Offset: 0x00012508
private TransitionManager()
{
this.m_Timer = new Timer(15.0);
this.m_Timer.Elapsed += this.onTimerElapsed;
this.m_Timer.Enabled = true;
}
// Token: 0x0600015C RID: 348 RVA: 0x00014374 File Offset: 0x00012574
private void onTimerElapsed(object sender, ElapsedEventArgs e)
{
bool flag = this.m_Timer == null;
if (!flag)
{
this.m_Timer.Enabled = false;
object @lock = this.m_Lock;
IList<Transition> list;
lock (@lock)
{
list = new List<Transition>();
foreach (KeyValuePair<Transition, bool> keyValuePair in this.m_Transitions)
{
list.Add(keyValuePair.Key);
}
}
foreach (Transition transition in list)
{
transition.onTimer();
}
this.m_Timer.Enabled = true;
}
}
// Token: 0x0600015D RID: 349 RVA: 0x00014478 File Offset: 0x00012678
private void onTransitionCompleted(object sender, Transition.Args e)
{
Transition transition = (Transition)sender;
transition.TransitionCompletedEvent -= this.onTransitionCompleted;
object @lock = this.m_Lock;
lock (@lock)
{
this.m_Transitions.Remove(transition);
}
}
// Token: 0x04000108 RID: 264
private static TransitionManager m_Instance;
// Token: 0x04000109 RID: 265
private IDictionary<Transition, bool> m_Transitions = new Dictionary<Transition, bool>();
// Token: 0x0400010A RID: 266
private Timer m_Timer = null;
// Token: 0x0400010B RID: 267
private object m_Lock = new object();
}
}
@@ -0,0 +1,39 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000018 RID: 24
internal class TransitionType_Acceleration : ITransitionType
{
// Token: 0x0600015E RID: 350 RVA: 0x000144E0 File Offset: 0x000126E0
public TransitionType_Acceleration(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x0600015F RID: 351 RVA: 0x00014524 File Offset: 0x00012724
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
dPercentage = num * num;
bool flag = num >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x0400010C RID: 268
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000019 RID: 25
internal class TransitionType_Bounce : TransitionType_UserDefined
{
// Token: 0x06000160 RID: 352 RVA: 0x0001456C File Offset: 0x0001276C
public TransitionType_Bounce(int iTransitionTime)
{
base.setup(new List<TransitionElement>
{
new TransitionElement(50.0, 100.0, InterpolationMethod.Accleration),
new TransitionElement(100.0, 0.0, InterpolationMethod.Deceleration)
}, iTransitionTime);
}
}
}
@@ -0,0 +1,39 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001A RID: 26
internal class TransitionType_CriticalDamping : ITransitionType
{
// Token: 0x06000161 RID: 353 RVA: 0x000145D0 File Offset: 0x000127D0
public TransitionType_CriticalDamping(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x06000162 RID: 354 RVA: 0x00014614 File Offset: 0x00012814
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
dPercentage = (1.0 - Math.Exp(-1.0 * num * 5.0)) / 0.993262053;
bool flag = num >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x0400010D RID: 269
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,39 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001B RID: 27
internal class TransitionType_Deceleration : ITransitionType
{
// Token: 0x06000163 RID: 355 RVA: 0x00014688 File Offset: 0x00012888
public TransitionType_Deceleration(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x06000164 RID: 356 RVA: 0x000146CC File Offset: 0x000128CC
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
dPercentage = num * (2.0 - num);
bool flag = num >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x0400010E RID: 270
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,39 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001C RID: 28
internal class TransitionType_EaseInEaseOut : ITransitionType
{
// Token: 0x06000165 RID: 357 RVA: 0x00014720 File Offset: 0x00012920
public TransitionType_EaseInEaseOut(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x06000166 RID: 358 RVA: 0x00014764 File Offset: 0x00012964
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
dPercentage = Utility.convertLinearToEaseInEaseOut(num);
bool flag = num >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x0400010F RID: 271
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001D RID: 29
internal class TransitionType_Flash : TransitionType_UserDefined
{
// Token: 0x06000167 RID: 359 RVA: 0x000147B0 File Offset: 0x000129B0
public TransitionType_Flash(int iNumberOfFlashes, int iFlashTime)
{
double num = 100.0 / (double)iNumberOfFlashes;
IList<TransitionElement> list = new List<TransitionElement>();
for (int i = 0; i < iNumberOfFlashes; i++)
{
double num2 = (double)i * num;
double num3 = num2 + num;
double num4 = (num2 + num3) / 2.0;
list.Add(new TransitionElement(num4, 100.0, InterpolationMethod.EaseInEaseOut));
list.Add(new TransitionElement(num3, 0.0, InterpolationMethod.EaseInEaseOut));
}
base.setup(list, iFlashTime * iNumberOfFlashes);
}
}
}
@@ -0,0 +1,38 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001E RID: 30
internal class TransitionType_Linear : ITransitionType
{
// Token: 0x06000168 RID: 360 RVA: 0x00014844 File Offset: 0x00012A44
public TransitionType_Linear(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x06000169 RID: 361 RVA: 0x00014888 File Offset: 0x00012A88
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
dPercentage = (double)iTime / this.m_dTransitionTime;
bool flag = dPercentage >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x04000110 RID: 272
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001F RID: 31
internal class TransitionType_ThrowAndCatch : TransitionType_UserDefined
{
// Token: 0x0600016A RID: 362 RVA: 0x000148CC File Offset: 0x00012ACC
public TransitionType_ThrowAndCatch(int iTransitionTime)
{
base.setup(new List<TransitionElement>
{
new TransitionElement(50.0, 100.0, InterpolationMethod.Deceleration),
new TransitionElement(100.0, 0.0, InterpolationMethod.Accleration)
}, iTransitionTime);
}
}
}
@@ -0,0 +1,120 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000020 RID: 32
internal class TransitionType_UserDefined : ITransitionType
{
// Token: 0x0600016B RID: 363 RVA: 0x0001492E File Offset: 0x00012B2E
public TransitionType_UserDefined()
{
}
// Token: 0x0600016C RID: 364 RVA: 0x00014955 File Offset: 0x00012B55
public TransitionType_UserDefined(IList<TransitionElement> elements, int iTransitionTime)
{
this.setup(elements, iTransitionTime);
}
// Token: 0x0600016D RID: 365 RVA: 0x00014988 File Offset: 0x00012B88
public void setup(IList<TransitionElement> elements, int iTransitionTime)
{
this.m_Elements = elements;
this.m_dTransitionTime = (double)iTransitionTime;
bool flag = elements.Count == 0;
if (flag)
{
throw new Exception("The list of elements passed to the constructor of TransitionType_UserDefined had zero elements. It must have at least one element.");
}
}
// Token: 0x0600016E RID: 366 RVA: 0x000149C0 File Offset: 0x00012BC0
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
double num2;
double num3;
double num4;
double num5;
InterpolationMethod interpolationMethod;
this.getElementInfo(num, out num2, out num3, out num4, out num5, out interpolationMethod);
double num6 = num3 - num2;
double num7 = num - num2;
double num8 = num7 / num6;
double num9;
switch (interpolationMethod)
{
case InterpolationMethod.Linear:
num9 = num8;
break;
case InterpolationMethod.Accleration:
num9 = Utility.convertLinearToAcceleration(num8);
break;
case InterpolationMethod.Deceleration:
num9 = Utility.convertLinearToDeceleration(num8);
break;
case InterpolationMethod.EaseInEaseOut:
num9 = Utility.convertLinearToEaseInEaseOut(num8);
break;
default:
throw new Exception("Interpolation method not handled: " + interpolationMethod.ToString());
}
dPercentage = Utility.interpolate(num4, num5, num9);
bool flag = (double)iTime >= this.m_dTransitionTime;
if (flag)
{
bCompleted = true;
dPercentage = num5;
}
else
{
bCompleted = false;
}
}
// Token: 0x0600016F RID: 367 RVA: 0x00014A90 File Offset: 0x00012C90
private void getElementInfo(double dTimeFraction, out double dStartTime, out double dEndTime, out double dStartValue, out double dEndValue, out InterpolationMethod eInterpolationMethod)
{
int count = this.m_Elements.Count;
while (this.m_iCurrentElement < count)
{
TransitionElement transitionElement = this.m_Elements[this.m_iCurrentElement];
double num = transitionElement.EndTime / 100.0;
bool flag = dTimeFraction < num;
if (flag)
{
break;
}
this.m_iCurrentElement++;
}
bool flag2 = this.m_iCurrentElement == count;
if (flag2)
{
this.m_iCurrentElement = count - 1;
}
dStartTime = 0.0;
dStartValue = 0.0;
bool flag3 = this.m_iCurrentElement > 0;
if (flag3)
{
TransitionElement transitionElement2 = this.m_Elements[this.m_iCurrentElement - 1];
dStartTime = transitionElement2.EndTime / 100.0;
dStartValue = transitionElement2.EndValue / 100.0;
}
TransitionElement transitionElement3 = this.m_Elements[this.m_iCurrentElement];
dEndTime = transitionElement3.EndTime / 100.0;
dEndValue = transitionElement3.EndValue / 100.0;
eInterpolationMethod = transitionElement3.InterpolationMethod;
}
// Token: 0x04000111 RID: 273
private IList<TransitionElement> m_Elements = null;
// Token: 0x04000112 RID: 274
private double m_dTransitionTime = 0.0;
// Token: 0x04000113 RID: 275
private int m_iCurrentElement = 0;
}
}
@@ -0,0 +1,104 @@
using System;
using System.ComponentModel;
using System.Reflection;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000021 RID: 33
internal class Utility
{
// Token: 0x06000170 RID: 368 RVA: 0x00014BBC File Offset: 0x00012DBC
public static object getValue(object target, string strPropertyName)
{
Type type = target.GetType();
PropertyInfo property = type.GetProperty(strPropertyName);
bool flag = property == null;
if (flag)
{
throw new Exception("Object: " + target.ToString() + " does not have the property: " + strPropertyName);
}
return property.GetValue(target, null);
}
// Token: 0x06000171 RID: 369 RVA: 0x00014C10 File Offset: 0x00012E10
public static void setValue(object target, string strPropertyName, object value)
{
Type type = target.GetType();
PropertyInfo property = type.GetProperty(strPropertyName);
bool flag = property == null;
if (flag)
{
throw new Exception("Object: " + target.ToString() + " does not have the property: " + strPropertyName);
}
property.SetValue(target, value, null);
}
// Token: 0x06000172 RID: 370 RVA: 0x00014C60 File Offset: 0x00012E60
public static double interpolate(double d1, double d2, double dPercentage)
{
double num = d2 - d1;
double num2 = num * dPercentage;
return d1 + num2;
}
// Token: 0x06000173 RID: 371 RVA: 0x00014C80 File Offset: 0x00012E80
public static int interpolate(int i1, int i2, double dPercentage)
{
return (int)Utility.interpolate((double)i1, (double)i2, dPercentage);
}
// Token: 0x06000174 RID: 372 RVA: 0x00014CA0 File Offset: 0x00012EA0
public static float interpolate(float f1, float f2, double dPercentage)
{
return (float)Utility.interpolate((double)f1, (double)f2, dPercentage);
}
// Token: 0x06000175 RID: 373 RVA: 0x00014CC0 File Offset: 0x00012EC0
public static double convertLinearToEaseInEaseOut(double dElapsed)
{
double num = ((dElapsed > 0.5) ? 0.5 : dElapsed);
double num2 = ((dElapsed > 0.5) ? (dElapsed - 0.5) : 0.0);
return 2.0 * num * num + 2.0 * num2 * (1.0 - num2);
}
// Token: 0x06000176 RID: 374 RVA: 0x00014D38 File Offset: 0x00012F38
public static double convertLinearToAcceleration(double dElapsed)
{
return dElapsed * dElapsed;
}
// Token: 0x06000177 RID: 375 RVA: 0x00014D50 File Offset: 0x00012F50
public static double convertLinearToDeceleration(double dElapsed)
{
return dElapsed * (2.0 - dElapsed);
}
// Token: 0x06000178 RID: 376 RVA: 0x00014D70 File Offset: 0x00012F70
public static void raiseEvent<T>(EventHandler<T> theEvent, object sender, T args) where T : EventArgs
{
bool flag = theEvent == null;
if (!flag)
{
foreach (EventHandler<T> eventHandler in theEvent.GetInvocationList())
{
try
{
ISynchronizeInvoke synchronizeInvoke = eventHandler.Target as ISynchronizeInvoke;
bool flag2 = synchronizeInvoke == null || !synchronizeInvoke.InvokeRequired;
if (flag2)
{
eventHandler(sender, args);
}
else
{
synchronizeInvoke.BeginInvoke(eventHandler, new object[] { sender, args });
}
}
catch (Exception)
{
}
}
}
}
}
}
+326
View File
@@ -0,0 +1,326 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x0200000A RID: 10
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class TrialBox : global::System.Windows.Forms.Form
{
// Token: 0x06000121 RID: 289 RVA: 0x00012530 File Offset: 0x00010730
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000122 RID: 290 RVA: 0x00012568 File Offset: 0x00010768
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.TrialBox));
this.lblDescription = new global::System.Windows.Forms.Label();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.lnkHome = new global::System.Windows.Forms.LinkLabel();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.btnApplyNewLicense = new global::System.Windows.Forms.Button();
this.pbPreview = new global::System.Windows.Forms.PictureBox();
this.lblFirstNoticeString = new global::System.Windows.Forms.Label();
this.lblLinksSeparator1 = new global::System.Windows.Forms.Label();
this.lblCopyright = new global::System.Windows.Forms.LinkLabel();
this.btnClose = new global::System.Windows.Forms.Button();
this.lblContainer = new global::System.Windows.Forms.Label();
this.brdLeftContainer = new global::System.Windows.Forms.Label();
this.brdBottomContainer = new global::System.Windows.Forms.Label();
this.brdTopContainer = new global::System.Windows.Forms.Label();
this.brdRightContainer = new global::System.Windows.Forms.Label();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.pbTitle = new global::System.Windows.Forms.PictureBox();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbPreview).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbTitle).BeginInit();
base.SuspendLayout();
this.lblDescription.AutoSize = true;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblDescription.ForeColor = global::System.Drawing.Color.Black;
this.lblDescription.Location = new global::System.Drawing.Point(23, 70);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(338, 80);
this.lblDescription.TabIndex = 6;
this.lblDescription.Text = "Bunifu Framework empowers developers to build \r\nfaster and more beautiful software products with \r\nless using a ready-made suite of customizable \r\ncontrols and powerful data visualization tools.";
this.toolTip.ShowAlways = true;
this.lnkHome.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.lnkHome.AutoSize = true;
this.lnkHome.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkHome.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkHome.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkHome.Location = new global::System.Drawing.Point(23, 234);
this.lnkHome.Name = "lnkHome";
this.lnkHome.Size = new global::System.Drawing.Size(116, 20);
this.lnkHome.TabIndex = 23;
this.lnkHome.TabStop = true;
this.lnkHome.Text = "Visit Homepage";
this.toolTip.SetToolTip(this.lnkHome, "Visit Bunifu Framework homepage");
this.lnkHome.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkHome_LinkClicked);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(613, 10);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 17);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 36;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Close");
this.pbClose.Click += new global::System.EventHandler(this.PbClose_Click);
this.btnApplyNewLicense.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnApplyNewLicense.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnApplyNewLicense.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnApplyNewLicense.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnApplyNewLicense.FlatAppearance.BorderSize = 2;
this.btnApplyNewLicense.FlatAppearance.MouseDownBackColor = global::System.Drawing.Color.FromArgb(40, 96, 144);
this.btnApplyNewLicense.FlatAppearance.MouseOverBackColor = global::System.Drawing.Color.FromArgb(105, 181, 255);
this.btnApplyNewLicense.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnApplyNewLicense.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnApplyNewLicense.ForeColor = global::System.Drawing.Color.White;
this.btnApplyNewLicense.Location = new global::System.Drawing.Point(367, 224);
this.btnApplyNewLicense.Name = "btnApplyNewLicense";
this.btnApplyNewLicense.Size = new global::System.Drawing.Size(173, 36);
this.btnApplyNewLicense.TabIndex = 41;
this.btnApplyNewLicense.Text = "Activate Premium";
this.toolTip.SetToolTip(this.btnApplyNewLicense, componentResourceManager.GetString("btnApplyNewLicense.ToolTip"));
this.btnApplyNewLicense.UseVisualStyleBackColor = false;
this.btnApplyNewLicense.Visible = false;
this.btnApplyNewLicense.Click += new global::System.EventHandler(this.btnActivatePremium_Click);
this.pbPreview.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbPreview.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbPreview.Image");
this.pbPreview.Location = new global::System.Drawing.Point(380, 51);
this.pbPreview.Name = "pbPreview";
this.pbPreview.Size = new global::System.Drawing.Size(255, 137);
this.pbPreview.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbPreview.TabIndex = 15;
this.pbPreview.TabStop = false;
this.lblFirstNoticeString.AutoSize = true;
this.lblFirstNoticeString.BackColor = global::System.Drawing.Color.FromArgb(255, 241, 240);
this.lblFirstNoticeString.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblFirstNoticeString.Font = new global::System.Drawing.Font("Segoe UI Semibold", 9.75f, global::System.Drawing.FontStyle.Bold);
this.lblFirstNoticeString.ForeColor = global::System.Drawing.Color.OrangeRed;
this.lblFirstNoticeString.Location = new global::System.Drawing.Point(32, 168);
this.lblFirstNoticeString.Name = "lblFirstNoticeString";
this.lblFirstNoticeString.Size = new global::System.Drawing.Size(295, 46);
this.lblFirstNoticeString.TabIndex = 16;
this.lblFirstNoticeString.Text = "This software was developed using a \r\ntrial version of Bunifu Framework.";
this.lblFirstNoticeString.Click += new global::System.EventHandler(this.LblHotStrings_Click);
this.lblLinksSeparator1.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.lblLinksSeparator1.AutoSize = true;
this.lblLinksSeparator1.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLinksSeparator1.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblLinksSeparator1.Location = new global::System.Drawing.Point(138, 235);
this.lblLinksSeparator1.Name = "lblLinksSeparator1";
this.lblLinksSeparator1.Size = new global::System.Drawing.Size(15, 20);
this.lblLinksSeparator1.TabIndex = 24;
this.lblLinksSeparator1.Text = "•";
this.lblCopyright.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.lblCopyright.AutoSize = true;
this.lblCopyright.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblCopyright.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lblCopyright.LinkColor = global::System.Drawing.Color.Gray;
this.lblCopyright.Location = new global::System.Drawing.Point(150, 235);
this.lblCopyright.Name = "lblCopyright";
this.lblCopyright.Size = new global::System.Drawing.Size(195, 20);
this.lblCopyright.TabIndex = 22;
this.lblCopyright.TabStop = true;
this.lblCopyright.Text = "© 2021 Bunifu Technologies";
this.btnClose.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnClose.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnClose.FlatAppearance.BorderColor = global::System.Drawing.Color.Silver;
this.btnClose.FlatAppearance.BorderSize = 2;
this.btnClose.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnClose.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnClose.ForeColor = global::System.Drawing.Color.DimGray;
this.btnClose.Location = new global::System.Drawing.Point(544, 224);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new global::System.Drawing.Size(92, 36);
this.btnClose.TabIndex = 31;
this.btnClose.Text = "Ok";
this.btnClose.UseVisualStyleBackColor = false;
this.btnClose.Click += new global::System.EventHandler(this.BtnCancel_Click);
this.lblContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 241, 240);
this.lblContainer.Location = new global::System.Drawing.Point(27, 163);
this.lblContainer.Name = "lblContainer";
this.lblContainer.Size = new global::System.Drawing.Size(298, 57);
this.lblContainer.TabIndex = 32;
this.brdLeftContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 163, 158);
this.brdLeftContainer.Location = new global::System.Drawing.Point(26, 162);
this.brdLeftContainer.Name = "brdLeftContainer";
this.brdLeftContainer.Size = new global::System.Drawing.Size(1, 58);
this.brdLeftContainer.TabIndex = 33;
this.brdBottomContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 163, 158);
this.brdBottomContainer.Location = new global::System.Drawing.Point(27, 219);
this.brdBottomContainer.Name = "brdBottomContainer";
this.brdBottomContainer.Size = new global::System.Drawing.Size(301, 1);
this.brdBottomContainer.TabIndex = 25;
this.brdTopContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 163, 158);
this.brdTopContainer.Location = new global::System.Drawing.Point(27, 162);
this.brdTopContainer.Name = "brdTopContainer";
this.brdTopContainer.Size = new global::System.Drawing.Size(300, 1);
this.brdTopContainer.TabIndex = 7;
this.brdRightContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 163, 158);
this.brdRightContainer.Location = new global::System.Drawing.Point(327, 162);
this.brdRightContainer.Name = "brdRightContainer";
this.brdRightContainer.Size = new global::System.Drawing.Size(1, 57);
this.brdRightContainer.TabIndex = 34;
this.bdrLeft.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 0);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 267);
this.bdrLeft.TabIndex = 35;
this.bdrRight.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(647, 0);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 267);
this.bdrRight.TabIndex = 37;
this.bdrTop.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(1, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(647, 1);
this.bdrTop.TabIndex = 38;
this.bdrBottom.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 266);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(647, 1);
this.bdrBottom.TabIndex = 39;
this.pbTitle.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbTitle.Image");
this.pbTitle.Location = new global::System.Drawing.Point(29, 11);
this.pbTitle.Name = "pbTitle";
this.pbTitle.Size = new global::System.Drawing.Size(271, 52);
this.pbTitle.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbTitle.TabIndex = 40;
this.pbTitle.TabStop = false;
this.pbTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
base.AcceptButton = this.btnClose;
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.None;
this.BackColor = global::System.Drawing.Color.White;
base.ClientSize = new global::System.Drawing.Size(648, 267);
base.Controls.Add(this.btnApplyNewLicense);
base.Controls.Add(this.pbTitle);
base.Controls.Add(this.bdrBottom);
base.Controls.Add(this.bdrTop);
base.Controls.Add(this.bdrRight);
base.Controls.Add(this.pbClose);
base.Controls.Add(this.bdrLeft);
base.Controls.Add(this.brdRightContainer);
base.Controls.Add(this.brdLeftContainer);
base.Controls.Add(this.btnClose);
base.Controls.Add(this.brdBottomContainer);
base.Controls.Add(this.lblLinksSeparator1);
base.Controls.Add(this.lblCopyright);
base.Controls.Add(this.lnkHome);
base.Controls.Add(this.lblFirstNoticeString);
base.Controls.Add(this.pbPreview);
base.Controls.Add(this.brdTopContainer);
base.Controls.Add(this.lblContainer);
base.Controls.Add(this.lblDescription);
this.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.ForeColor = global::System.Drawing.Color.Black;
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Name = "TrialBox";
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework Trial";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.TrialBox_Load);
base.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
base.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
base.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbPreview).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbTitle).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x040000E4 RID: 228
private global::System.ComponentModel.IContainer components = null;
// Token: 0x040000E5 RID: 229
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x040000E6 RID: 230
private global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x040000E7 RID: 231
private global::System.Windows.Forms.PictureBox pbPreview;
// Token: 0x040000E8 RID: 232
private global::System.Windows.Forms.Label lblFirstNoticeString;
// Token: 0x040000E9 RID: 233
private global::System.Windows.Forms.Label lblLinksSeparator1;
// Token: 0x040000EA RID: 234
private global::System.Windows.Forms.LinkLabel lnkHome;
// Token: 0x040000EB RID: 235
private global::System.Windows.Forms.LinkLabel lblCopyright;
// Token: 0x040000EC RID: 236
private global::System.Windows.Forms.Button btnClose;
// Token: 0x040000ED RID: 237
private global::System.Windows.Forms.Label lblContainer;
// Token: 0x040000EE RID: 238
private global::System.Windows.Forms.Label brdLeftContainer;
// Token: 0x040000EF RID: 239
private global::System.Windows.Forms.Label brdBottomContainer;
// Token: 0x040000F0 RID: 240
private global::System.Windows.Forms.Label brdTopContainer;
// Token: 0x040000F1 RID: 241
private global::System.Windows.Forms.Label brdRightContainer;
// Token: 0x040000F2 RID: 242
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x040000F3 RID: 243
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x040000F4 RID: 244
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x040000F5 RID: 245
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x040000F6 RID: 246
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x040000F7 RID: 247
private global::System.Windows.Forms.PictureBox pbTitle;
// Token: 0x040000F8 RID: 248
private global::System.Windows.Forms.Button btnApplyNewLicense;
}
}
+228
View File
@@ -0,0 +1,228 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Views.Transitions;
namespace Bunifu.Licensing.Views
{
// Token: 0x0200000A RID: 10
[DebuggerStepThrough]
internal partial class TrialBox : Form
{
// Token: 0x0600010B RID: 267 RVA: 0x00012118 File Offset: 0x00010318
public TrialBox()
{
this.InitializeComponent();
}
// Token: 0x1700001E RID: 30
// (get) Token: 0x0600010C RID: 268 RVA: 0x00012130 File Offset: 0x00010330
// (set) Token: 0x0600010D RID: 269 RVA: 0x00012138 File Offset: 0x00010338
public bool ShowApplyNewLicenseButton
{
get
{
return this._showApplyNewLicenseButton;
}
set
{
this._showApplyNewLicenseButton = value;
if (value)
{
this.btnApplyNewLicense.Show();
}
else
{
this.btnApplyNewLicense.Hide();
}
}
}
// Token: 0x1700001F RID: 31
// (get) Token: 0x0600010E RID: 270 RVA: 0x0001216C File Offset: 0x0001036C
// (set) Token: 0x0600010F RID: 271 RVA: 0x00012174 File Offset: 0x00010374
public Action OnClickActivatePremium { get; set; }
// Token: 0x06000110 RID: 272 RVA: 0x00012180 File Offset: 0x00010380
public new void Show()
{
base.Opacity = 0.0;
base.Show();
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 1.0);
transition.run();
}
// Token: 0x06000111 RID: 273 RVA: 0x000121D8 File Offset: 0x000103D8
public new DialogResult ShowDialog()
{
try
{
this.Show();
base.Opacity = 0.0;
base.StartPosition = FormStartPosition.Manual;
base.Hide();
Transition.run(this, "Opacity", 1.0, new TransitionType_EaseInEaseOut(220));
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x06000112 RID: 274 RVA: 0x00012254 File Offset: 0x00010454
public new void Close()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Close();
};
}
// Token: 0x06000113 RID: 275 RVA: 0x000122A8 File Offset: 0x000104A8
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x06000114 RID: 276 RVA: 0x000122FB File Offset: 0x000104FB
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x06000115 RID: 277 RVA: 0x0001230E File Offset: 0x0001050E
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x06000116 RID: 278 RVA: 0x00012324 File Offset: 0x00010524
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
}
}
// Token: 0x06000117 RID: 279 RVA: 0x000123A8 File Offset: 0x000105A8
private void TrialBox_Load(object sender, EventArgs e)
{
this.ApplyShadows();
}
// Token: 0x06000118 RID: 280 RVA: 0x000123B2 File Offset: 0x000105B2
private void LnkHome_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com");
}
// Token: 0x06000119 RID: 281 RVA: 0x000123C0 File Offset: 0x000105C0
private void PbClose_Click(object sender, EventArgs e)
{
this.Close();
}
// Token: 0x0600011A RID: 282 RVA: 0x000123CC File Offset: 0x000105CC
private void btnActivatePremium_Click(object sender, EventArgs e)
{
try
{
InformationBoxHelper.Show("This will allow you to activate a new license you have purchased. Once activated, kindly ensure you clean and build your project for the license changes to take effect.", "Activate Premium License", "", InformationBox.InformationBoxIcons.Information, "Okay", "");
base.Invoke(this.OnClickActivatePremium);
}
catch (Exception)
{
}
}
// Token: 0x0600011B RID: 283 RVA: 0x00012420 File Offset: 0x00010620
private void LblTrialLink_Click(object sender, EventArgs e)
{
Process.Start("https://bunifuframework.com/free-download/");
}
// Token: 0x0600011C RID: 284 RVA: 0x0001242E File Offset: 0x0001062E
private void LblHotStrings_Click(object sender, EventArgs e)
{
Process.Start("https://bunifuframework.com/pricing");
}
// Token: 0x0600011D RID: 285 RVA: 0x0001243C File Offset: 0x0001063C
private void BtnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
// Token: 0x0600011E RID: 286 RVA: 0x00012446 File Offset: 0x00010646
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x0600011F RID: 287 RVA: 0x0001245C File Offset: 0x0001065C
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x06000120 RID: 288 RVA: 0x000124D8 File Offset: 0x000106D8
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x040000DF RID: 223
private bool _drag;
// Token: 0x040000E0 RID: 224
private int _mousey;
// Token: 0x040000E1 RID: 225
private int _mousex;
// Token: 0x040000E2 RID: 226
private bool _showApplyNewLicenseButton;
}
}
Binary file not shown.