1502 lines
66 KiB
C#
1502 lines
66 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
using System.Data;
|
|
using System.Text;
|
|
|
|
namespace GroundZero.KeyCodes
|
|
{
|
|
/// <summary>
|
|
/// Summary description for Form1.
|
|
/// </summary>
|
|
public class Form1 : System.Windows.Forms.Form
|
|
{
|
|
private System.Windows.Forms.Panel panel1;
|
|
private System.Windows.Forms.TextBox edOut;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.TextBox edRegTo;
|
|
private System.Windows.Forms.CheckBox ckWebInterface;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.MainMenu mainMenu1;
|
|
private System.Windows.Forms.MenuItem mnuReadKey;
|
|
private Label label5;
|
|
private CheckBox ckMBI;
|
|
private Label label7;
|
|
private ComboBox cbLicenseType;
|
|
private DateTimePicker dtExpiry;
|
|
private CheckBox ckLite;
|
|
private MenuItem menuItem1;
|
|
private MenuItem mnuEditMessages;
|
|
private CheckBox ckImportExportCSV;
|
|
private CheckBox ckAyaNovaOLI;
|
|
private CheckBox ckOutlookSchedule;
|
|
private CheckBox ckExportToXls;
|
|
private CheckBox ckQuickNotification;
|
|
private CheckBox ckPTI;
|
|
private CheckBox ckQBI;
|
|
private CheckBox ckRI;
|
|
private DateTimePicker dtQuickNotify;
|
|
private DateTimePicker dtPTI;
|
|
private DateTimePicker dtQBI;
|
|
private DateTimePicker dtRI;
|
|
private DateTimePicker dtMBI;
|
|
private DateTimePicker dtWBI;
|
|
private Label label10;
|
|
private Label label9;
|
|
private Label label8;
|
|
private Label label4;
|
|
private DateTimePicker dtImportExportCSV;
|
|
private DateTimePicker dtOLI;
|
|
private DateTimePicker dtOutlookSchedule;
|
|
private DateTimePicker dtExportToXls;
|
|
private ComboBox cbUsers;
|
|
private MenuItem mnuSelectAll;
|
|
private DateTimePicker dtLockoutDate;
|
|
private CheckBox ckLockout;
|
|
private MenuItem mnuPlusOne;
|
|
private Button btnPlusOne;
|
|
private Button button1;
|
|
private Button button3;
|
|
private Button button2;
|
|
private Button button10;
|
|
private Button button9;
|
|
private Button button8;
|
|
private Button button7;
|
|
private Button button6;
|
|
private Button button5;
|
|
private Button button4;
|
|
private MenuItem mnuTEST;
|
|
private MenuItem menuItem3;
|
|
private MenuItem mnuGenKeyXML;
|
|
private MenuItem mnuGenKeyJSON;
|
|
private MenuItem mnuRequestsXML;
|
|
private MenuItem mnuRequestsJSON;
|
|
private Button button11;
|
|
private DateTimePicker dtQBOI;
|
|
private CheckBox ckQBOI;
|
|
private Label label6;
|
|
private IContainer components;
|
|
|
|
public Form1()
|
|
{
|
|
//
|
|
// Required for Windows Form Designer support
|
|
//
|
|
InitializeComponent();
|
|
|
|
//
|
|
// TODO: Add any constructor code after InitializeComponent call
|
|
//
|
|
}
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing)
|
|
{
|
|
if (components != null)
|
|
{
|
|
components.Dispose();
|
|
}
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
this.button11 = new System.Windows.Forms.Button();
|
|
this.dtQBOI = new System.Windows.Forms.DateTimePicker();
|
|
this.ckQBOI = new System.Windows.Forms.CheckBox();
|
|
this.button10 = new System.Windows.Forms.Button();
|
|
this.button9 = new System.Windows.Forms.Button();
|
|
this.button8 = new System.Windows.Forms.Button();
|
|
this.button7 = new System.Windows.Forms.Button();
|
|
this.button6 = new System.Windows.Forms.Button();
|
|
this.button5 = new System.Windows.Forms.Button();
|
|
this.button4 = new System.Windows.Forms.Button();
|
|
this.button3 = new System.Windows.Forms.Button();
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
this.btnPlusOne = new System.Windows.Forms.Button();
|
|
this.edOut = new System.Windows.Forms.TextBox();
|
|
this.dtLockoutDate = new System.Windows.Forms.DateTimePicker();
|
|
this.ckLockout = new System.Windows.Forms.CheckBox();
|
|
this.cbUsers = new System.Windows.Forms.ComboBox();
|
|
this.label10 = new System.Windows.Forms.Label();
|
|
this.label9 = new System.Windows.Forms.Label();
|
|
this.label8 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.dtImportExportCSV = new System.Windows.Forms.DateTimePicker();
|
|
this.dtOLI = new System.Windows.Forms.DateTimePicker();
|
|
this.dtOutlookSchedule = new System.Windows.Forms.DateTimePicker();
|
|
this.dtExportToXls = new System.Windows.Forms.DateTimePicker();
|
|
this.dtQuickNotify = new System.Windows.Forms.DateTimePicker();
|
|
this.dtPTI = new System.Windows.Forms.DateTimePicker();
|
|
this.dtQBI = new System.Windows.Forms.DateTimePicker();
|
|
this.dtRI = new System.Windows.Forms.DateTimePicker();
|
|
this.dtMBI = new System.Windows.Forms.DateTimePicker();
|
|
this.dtWBI = new System.Windows.Forms.DateTimePicker();
|
|
this.ckImportExportCSV = new System.Windows.Forms.CheckBox();
|
|
this.ckAyaNovaOLI = new System.Windows.Forms.CheckBox();
|
|
this.ckOutlookSchedule = new System.Windows.Forms.CheckBox();
|
|
this.ckExportToXls = new System.Windows.Forms.CheckBox();
|
|
this.ckQuickNotification = new System.Windows.Forms.CheckBox();
|
|
this.ckPTI = new System.Windows.Forms.CheckBox();
|
|
this.ckQBI = new System.Windows.Forms.CheckBox();
|
|
this.ckRI = new System.Windows.Forms.CheckBox();
|
|
this.ckLite = new System.Windows.Forms.CheckBox();
|
|
this.dtExpiry = new System.Windows.Forms.DateTimePicker();
|
|
this.label7 = new System.Windows.Forms.Label();
|
|
this.cbLicenseType = new System.Windows.Forms.ComboBox();
|
|
this.ckMBI = new System.Windows.Forms.CheckBox();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.ckWebInterface = new System.Windows.Forms.CheckBox();
|
|
this.edRegTo = new System.Windows.Forms.TextBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components);
|
|
this.menuItem3 = new System.Windows.Forms.MenuItem();
|
|
this.mnuGenKeyXML = new System.Windows.Forms.MenuItem();
|
|
this.mnuGenKeyJSON = new System.Windows.Forms.MenuItem();
|
|
this.menuItem1 = new System.Windows.Forms.MenuItem();
|
|
this.mnuRequestsXML = new System.Windows.Forms.MenuItem();
|
|
this.mnuRequestsJSON = new System.Windows.Forms.MenuItem();
|
|
this.mnuSelectAll = new System.Windows.Forms.MenuItem();
|
|
this.mnuPlusOne = new System.Windows.Forms.MenuItem();
|
|
this.mnuReadKey = new System.Windows.Forms.MenuItem();
|
|
this.mnuEditMessages = new System.Windows.Forms.MenuItem();
|
|
this.mnuTEST = new System.Windows.Forms.MenuItem();
|
|
this.panel1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// panel1
|
|
//
|
|
this.panel1.Controls.Add(this.label6);
|
|
this.panel1.Controls.Add(this.button11);
|
|
this.panel1.Controls.Add(this.dtQBOI);
|
|
this.panel1.Controls.Add(this.ckQBOI);
|
|
this.panel1.Controls.Add(this.button10);
|
|
this.panel1.Controls.Add(this.button9);
|
|
this.panel1.Controls.Add(this.button8);
|
|
this.panel1.Controls.Add(this.button7);
|
|
this.panel1.Controls.Add(this.button6);
|
|
this.panel1.Controls.Add(this.button5);
|
|
this.panel1.Controls.Add(this.button4);
|
|
this.panel1.Controls.Add(this.button3);
|
|
this.panel1.Controls.Add(this.button2);
|
|
this.panel1.Controls.Add(this.button1);
|
|
this.panel1.Controls.Add(this.btnPlusOne);
|
|
this.panel1.Controls.Add(this.edOut);
|
|
this.panel1.Controls.Add(this.dtLockoutDate);
|
|
this.panel1.Controls.Add(this.ckLockout);
|
|
this.panel1.Controls.Add(this.cbUsers);
|
|
this.panel1.Controls.Add(this.label10);
|
|
this.panel1.Controls.Add(this.label9);
|
|
this.panel1.Controls.Add(this.label8);
|
|
this.panel1.Controls.Add(this.label4);
|
|
this.panel1.Controls.Add(this.dtImportExportCSV);
|
|
this.panel1.Controls.Add(this.dtOLI);
|
|
this.panel1.Controls.Add(this.dtOutlookSchedule);
|
|
this.panel1.Controls.Add(this.dtExportToXls);
|
|
this.panel1.Controls.Add(this.dtQuickNotify);
|
|
this.panel1.Controls.Add(this.dtPTI);
|
|
this.panel1.Controls.Add(this.dtQBI);
|
|
this.panel1.Controls.Add(this.dtRI);
|
|
this.panel1.Controls.Add(this.dtMBI);
|
|
this.panel1.Controls.Add(this.dtWBI);
|
|
this.panel1.Controls.Add(this.ckImportExportCSV);
|
|
this.panel1.Controls.Add(this.ckAyaNovaOLI);
|
|
this.panel1.Controls.Add(this.ckOutlookSchedule);
|
|
this.panel1.Controls.Add(this.ckExportToXls);
|
|
this.panel1.Controls.Add(this.ckQuickNotification);
|
|
this.panel1.Controls.Add(this.ckPTI);
|
|
this.panel1.Controls.Add(this.ckQBI);
|
|
this.panel1.Controls.Add(this.ckRI);
|
|
this.panel1.Controls.Add(this.ckLite);
|
|
this.panel1.Controls.Add(this.dtExpiry);
|
|
this.panel1.Controls.Add(this.label7);
|
|
this.panel1.Controls.Add(this.cbLicenseType);
|
|
this.panel1.Controls.Add(this.ckMBI);
|
|
this.panel1.Controls.Add(this.label5);
|
|
this.panel1.Controls.Add(this.label3);
|
|
this.panel1.Controls.Add(this.label2);
|
|
this.panel1.Controls.Add(this.ckWebInterface);
|
|
this.panel1.Controls.Add(this.edRegTo);
|
|
this.panel1.Controls.Add(this.label1);
|
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.panel1.Location = new System.Drawing.Point(0, 0);
|
|
this.panel1.Name = "panel1";
|
|
this.panel1.Size = new System.Drawing.Size(1298, 651);
|
|
this.panel1.TabIndex = 0;
|
|
//
|
|
// label6
|
|
//
|
|
this.label6.AutoSize = true;
|
|
this.label6.ForeColor = System.Drawing.Color.Green;
|
|
this.label6.Location = new System.Drawing.Point(33, 604);
|
|
this.label6.Name = "label6";
|
|
this.label6.Size = new System.Drawing.Size(189, 17);
|
|
this.label6.TabIndex = 64;
|
|
this.label6.Text = "*QBOI - Quickbooks ONLINE";
|
|
//
|
|
// button11
|
|
//
|
|
this.button11.AutoSize = true;
|
|
this.button11.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button11.ForeColor = System.Drawing.Color.Green;
|
|
this.button11.Location = new System.Drawing.Point(267, 568);
|
|
this.button11.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button11.Name = "button11";
|
|
this.button11.Size = new System.Drawing.Size(48, 29);
|
|
this.button11.TabIndex = 63;
|
|
this.button11.TabStop = false;
|
|
this.button11.Tag = "dtQBI";
|
|
this.button11.Text = "+1yr";
|
|
this.button11.UseVisualStyleBackColor = true;
|
|
this.button11.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// dtQBOI
|
|
//
|
|
this.dtQBOI.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtQBOI.Location = new System.Drawing.Point(117, 576);
|
|
this.dtQBOI.Name = "dtQBOI";
|
|
this.dtQBOI.Size = new System.Drawing.Size(141, 22);
|
|
this.dtQBOI.TabIndex = 62;
|
|
//
|
|
// ckQBOI
|
|
//
|
|
this.ckQBOI.AutoSize = true;
|
|
this.ckQBOI.ForeColor = System.Drawing.Color.DarkGreen;
|
|
this.ckQBOI.Location = new System.Drawing.Point(29, 576);
|
|
this.ckQBOI.Name = "ckQBOI";
|
|
this.ckQBOI.Size = new System.Drawing.Size(64, 21);
|
|
this.ckQBOI.TabIndex = 61;
|
|
this.ckQBOI.Text = "QBOI";
|
|
//
|
|
// button10
|
|
//
|
|
this.button10.AutoSize = true;
|
|
this.button10.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button10.Location = new System.Drawing.Point(675, 484);
|
|
this.button10.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button10.Name = "button10";
|
|
this.button10.Size = new System.Drawing.Size(48, 29);
|
|
this.button10.TabIndex = 60;
|
|
this.button10.TabStop = false;
|
|
this.button10.Tag = "dtOLI";
|
|
this.button10.Text = "+1yr";
|
|
this.button10.UseVisualStyleBackColor = true;
|
|
this.button10.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button9
|
|
//
|
|
this.button9.AutoSize = true;
|
|
this.button9.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button9.Location = new System.Drawing.Point(675, 397);
|
|
this.button9.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button9.Name = "button9";
|
|
this.button9.Size = new System.Drawing.Size(48, 29);
|
|
this.button9.TabIndex = 59;
|
|
this.button9.TabStop = false;
|
|
this.button9.Tag = "dtExportToXls";
|
|
this.button9.Text = "+1yr";
|
|
this.button9.UseVisualStyleBackColor = true;
|
|
this.button9.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button8
|
|
//
|
|
this.button8.AutoSize = true;
|
|
this.button8.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button8.Location = new System.Drawing.Point(675, 440);
|
|
this.button8.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button8.Name = "button8";
|
|
this.button8.Size = new System.Drawing.Size(48, 29);
|
|
this.button8.TabIndex = 58;
|
|
this.button8.TabStop = false;
|
|
this.button8.Tag = "dtOutlookSchedule";
|
|
this.button8.Text = "+1yr";
|
|
this.button8.UseVisualStyleBackColor = true;
|
|
this.button8.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button7
|
|
//
|
|
this.button7.AutoSize = true;
|
|
this.button7.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button7.Location = new System.Drawing.Point(675, 527);
|
|
this.button7.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button7.Name = "button7";
|
|
this.button7.Size = new System.Drawing.Size(48, 29);
|
|
this.button7.TabIndex = 57;
|
|
this.button7.TabStop = false;
|
|
this.button7.Tag = "dtImportExportCSV";
|
|
this.button7.Text = "+1yr";
|
|
this.button7.UseVisualStyleBackColor = true;
|
|
this.button7.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button6
|
|
//
|
|
this.button6.AutoSize = true;
|
|
this.button6.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button6.Location = new System.Drawing.Point(675, 351);
|
|
this.button6.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button6.Name = "button6";
|
|
this.button6.Size = new System.Drawing.Size(48, 29);
|
|
this.button6.TabIndex = 56;
|
|
this.button6.TabStop = false;
|
|
this.button6.Tag = "dtQuickNotify";
|
|
this.button6.Text = "+1yr";
|
|
this.button6.UseVisualStyleBackColor = true;
|
|
this.button6.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button5
|
|
//
|
|
this.button5.AutoSize = true;
|
|
this.button5.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button5.Location = new System.Drawing.Point(267, 526);
|
|
this.button5.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button5.Name = "button5";
|
|
this.button5.Size = new System.Drawing.Size(48, 29);
|
|
this.button5.TabIndex = 55;
|
|
this.button5.TabStop = false;
|
|
this.button5.Tag = "dtPTI";
|
|
this.button5.Text = "+1yr";
|
|
this.button5.UseVisualStyleBackColor = true;
|
|
this.button5.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button4
|
|
//
|
|
this.button4.AutoSize = true;
|
|
this.button4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button4.Location = new System.Drawing.Point(267, 483);
|
|
this.button4.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button4.Name = "button4";
|
|
this.button4.Size = new System.Drawing.Size(48, 29);
|
|
this.button4.TabIndex = 54;
|
|
this.button4.TabStop = false;
|
|
this.button4.Tag = "dtQBI";
|
|
this.button4.Text = "+1yr";
|
|
this.button4.UseVisualStyleBackColor = true;
|
|
this.button4.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button3
|
|
//
|
|
this.button3.AutoSize = true;
|
|
this.button3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button3.Location = new System.Drawing.Point(267, 440);
|
|
this.button3.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button3.Name = "button3";
|
|
this.button3.Size = new System.Drawing.Size(48, 29);
|
|
this.button3.TabIndex = 53;
|
|
this.button3.TabStop = false;
|
|
this.button3.Tag = "dtRI";
|
|
this.button3.Text = "+1yr";
|
|
this.button3.UseVisualStyleBackColor = true;
|
|
this.button3.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button2
|
|
//
|
|
this.button2.AutoSize = true;
|
|
this.button2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button2.Location = new System.Drawing.Point(267, 396);
|
|
this.button2.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button2.Name = "button2";
|
|
this.button2.Size = new System.Drawing.Size(48, 29);
|
|
this.button2.TabIndex = 52;
|
|
this.button2.TabStop = false;
|
|
this.button2.Tag = "dtMBI";
|
|
this.button2.Text = "+1yr";
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
this.button2.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// button1
|
|
//
|
|
this.button1.AutoSize = true;
|
|
this.button1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button1.Location = new System.Drawing.Point(267, 350);
|
|
this.button1.Margin = new System.Windows.Forms.Padding(0);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new System.Drawing.Size(48, 29);
|
|
this.button1.TabIndex = 51;
|
|
this.button1.TabStop = false;
|
|
this.button1.Tag = "dtWBI";
|
|
this.button1.Text = "+1yr";
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
this.button1.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// btnPlusOne
|
|
//
|
|
this.btnPlusOne.AutoSize = true;
|
|
this.btnPlusOne.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.btnPlusOne.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnPlusOne.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnPlusOne.Location = new System.Drawing.Point(176, 241);
|
|
this.btnPlusOne.Margin = new System.Windows.Forms.Padding(0);
|
|
this.btnPlusOne.Name = "btnPlusOne";
|
|
this.btnPlusOne.Size = new System.Drawing.Size(48, 29);
|
|
this.btnPlusOne.TabIndex = 50;
|
|
this.btnPlusOne.TabStop = false;
|
|
this.btnPlusOne.Tag = "dtExpiry";
|
|
this.btnPlusOne.Text = "+1yr";
|
|
this.btnPlusOne.UseVisualStyleBackColor = true;
|
|
this.btnPlusOne.Click += new System.EventHandler(this.btnPlusOne_Click);
|
|
//
|
|
// edOut
|
|
//
|
|
this.edOut.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.edOut.Location = new System.Drawing.Point(769, 36);
|
|
this.edOut.Multiline = true;
|
|
this.edOut.Name = "edOut";
|
|
this.edOut.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
|
this.edOut.Size = new System.Drawing.Size(529, 615);
|
|
this.edOut.TabIndex = 1;
|
|
//
|
|
// dtLockoutDate
|
|
//
|
|
this.dtLockoutDate.CalendarForeColor = System.Drawing.Color.Maroon;
|
|
this.dtLockoutDate.Enabled = false;
|
|
this.dtLockoutDate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtLockoutDate.Location = new System.Drawing.Point(29, 69);
|
|
this.dtLockoutDate.Name = "dtLockoutDate";
|
|
this.dtLockoutDate.Size = new System.Drawing.Size(141, 22);
|
|
this.dtLockoutDate.TabIndex = 47;
|
|
//
|
|
// ckLockout
|
|
//
|
|
this.ckLockout.AutoSize = true;
|
|
this.ckLockout.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.ckLockout.ForeColor = System.Drawing.Color.Maroon;
|
|
this.ckLockout.Location = new System.Drawing.Point(29, 39);
|
|
this.ckLockout.Name = "ckLockout";
|
|
this.ckLockout.Size = new System.Drawing.Size(282, 24);
|
|
this.ckLockout.TabIndex = 49;
|
|
this.ckLockout.Text = "Expiring test key lockout after";
|
|
this.ckLockout.CheckedChanged += new System.EventHandler(this.ckTempKey_CheckedChanged);
|
|
//
|
|
// cbUsers
|
|
//
|
|
this.cbUsers.FormattingEnabled = true;
|
|
this.cbUsers.Items.AddRange(new object[] {
|
|
"1",
|
|
"Up to 5",
|
|
"Up to 10",
|
|
"Up to 20",
|
|
"Up to 50",
|
|
"Unlimited (999)"});
|
|
this.cbUsers.Location = new System.Drawing.Point(494, 191);
|
|
this.cbUsers.Name = "cbUsers";
|
|
this.cbUsers.Size = new System.Drawing.Size(127, 24);
|
|
this.cbUsers.TabIndex = 46;
|
|
//
|
|
// label10
|
|
//
|
|
this.label10.AutoSize = true;
|
|
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label10.Location = new System.Drawing.Point(29, 223);
|
|
this.label10.Name = "label10";
|
|
this.label10.Size = new System.Drawing.Size(126, 20);
|
|
this.label10.TabIndex = 45;
|
|
this.label10.Text = "Support expires";
|
|
//
|
|
// label9
|
|
//
|
|
this.label9.AutoSize = true;
|
|
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label9.Location = new System.Drawing.Point(520, 319);
|
|
this.label9.Name = "label9";
|
|
this.label9.Size = new System.Drawing.Size(126, 20);
|
|
this.label9.TabIndex = 44;
|
|
this.label9.Text = "Support expires";
|
|
//
|
|
// label8
|
|
//
|
|
this.label8.AutoSize = true;
|
|
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label8.Location = new System.Drawing.Point(113, 319);
|
|
this.label8.Name = "label8";
|
|
this.label8.Size = new System.Drawing.Size(126, 20);
|
|
this.label8.TabIndex = 43;
|
|
this.label8.Text = "Support expires";
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label4.Location = new System.Drawing.Point(362, 319);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(61, 20);
|
|
this.label4.TabIndex = 42;
|
|
this.label4.Text = "Add on";
|
|
//
|
|
// dtImportExportCSV
|
|
//
|
|
this.dtImportExportCSV.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtImportExportCSV.Location = new System.Drawing.Point(525, 534);
|
|
this.dtImportExportCSV.Name = "dtImportExportCSV";
|
|
this.dtImportExportCSV.Size = new System.Drawing.Size(141, 22);
|
|
this.dtImportExportCSV.TabIndex = 41;
|
|
//
|
|
// dtOLI
|
|
//
|
|
this.dtOLI.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtOLI.Location = new System.Drawing.Point(525, 491);
|
|
this.dtOLI.Name = "dtOLI";
|
|
this.dtOLI.Size = new System.Drawing.Size(141, 22);
|
|
this.dtOLI.TabIndex = 40;
|
|
//
|
|
// dtOutlookSchedule
|
|
//
|
|
this.dtOutlookSchedule.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtOutlookSchedule.Location = new System.Drawing.Point(525, 448);
|
|
this.dtOutlookSchedule.Name = "dtOutlookSchedule";
|
|
this.dtOutlookSchedule.Size = new System.Drawing.Size(141, 22);
|
|
this.dtOutlookSchedule.TabIndex = 39;
|
|
//
|
|
// dtExportToXls
|
|
//
|
|
this.dtExportToXls.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtExportToXls.Location = new System.Drawing.Point(525, 404);
|
|
this.dtExportToXls.Name = "dtExportToXls";
|
|
this.dtExportToXls.Size = new System.Drawing.Size(141, 22);
|
|
this.dtExportToXls.TabIndex = 38;
|
|
//
|
|
// dtQuickNotify
|
|
//
|
|
this.dtQuickNotify.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtQuickNotify.Location = new System.Drawing.Point(525, 358);
|
|
this.dtQuickNotify.Name = "dtQuickNotify";
|
|
this.dtQuickNotify.Size = new System.Drawing.Size(141, 22);
|
|
this.dtQuickNotify.TabIndex = 37;
|
|
//
|
|
// dtPTI
|
|
//
|
|
this.dtPTI.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtPTI.Location = new System.Drawing.Point(117, 534);
|
|
this.dtPTI.Name = "dtPTI";
|
|
this.dtPTI.Size = new System.Drawing.Size(141, 22);
|
|
this.dtPTI.TabIndex = 36;
|
|
//
|
|
// dtQBI
|
|
//
|
|
this.dtQBI.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtQBI.Location = new System.Drawing.Point(117, 491);
|
|
this.dtQBI.Name = "dtQBI";
|
|
this.dtQBI.Size = new System.Drawing.Size(141, 22);
|
|
this.dtQBI.TabIndex = 35;
|
|
//
|
|
// dtRI
|
|
//
|
|
this.dtRI.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtRI.Location = new System.Drawing.Point(117, 448);
|
|
this.dtRI.Name = "dtRI";
|
|
this.dtRI.Size = new System.Drawing.Size(141, 22);
|
|
this.dtRI.TabIndex = 34;
|
|
//
|
|
// dtMBI
|
|
//
|
|
this.dtMBI.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtMBI.Location = new System.Drawing.Point(117, 404);
|
|
this.dtMBI.Name = "dtMBI";
|
|
this.dtMBI.Size = new System.Drawing.Size(141, 22);
|
|
this.dtMBI.TabIndex = 33;
|
|
//
|
|
// dtWBI
|
|
//
|
|
this.dtWBI.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtWBI.Location = new System.Drawing.Point(117, 358);
|
|
this.dtWBI.Name = "dtWBI";
|
|
this.dtWBI.Size = new System.Drawing.Size(141, 22);
|
|
this.dtWBI.TabIndex = 32;
|
|
//
|
|
// ckImportExportCSV
|
|
//
|
|
this.ckImportExportCSV.AutoSize = true;
|
|
this.ckImportExportCSV.Location = new System.Drawing.Point(367, 534);
|
|
this.ckImportExportCSV.Name = "ckImportExportCSV";
|
|
this.ckImportExportCSV.Size = new System.Drawing.Size(195, 21);
|
|
this.ckImportExportCSV.TabIndex = 31;
|
|
this.ckImportExportCSV.Text = "ImportExportCSVDuplicate";
|
|
//
|
|
// ckAyaNovaOLI
|
|
//
|
|
this.ckAyaNovaOLI.AutoSize = true;
|
|
this.ckAyaNovaOLI.Location = new System.Drawing.Point(367, 491);
|
|
this.ckAyaNovaOLI.Name = "ckAyaNovaOLI";
|
|
this.ckAyaNovaOLI.Size = new System.Drawing.Size(52, 21);
|
|
this.ckAyaNovaOLI.TabIndex = 30;
|
|
this.ckAyaNovaOLI.Text = "OLI";
|
|
//
|
|
// ckOutlookSchedule
|
|
//
|
|
this.ckOutlookSchedule.AutoSize = true;
|
|
this.ckOutlookSchedule.Location = new System.Drawing.Point(367, 448);
|
|
this.ckOutlookSchedule.Name = "ckOutlookSchedule";
|
|
this.ckOutlookSchedule.Size = new System.Drawing.Size(142, 21);
|
|
this.ckOutlookSchedule.TabIndex = 29;
|
|
this.ckOutlookSchedule.Text = "Outlook Schedule";
|
|
//
|
|
// ckExportToXls
|
|
//
|
|
this.ckExportToXls.AutoSize = true;
|
|
this.ckExportToXls.Location = new System.Drawing.Point(367, 404);
|
|
this.ckExportToXls.Name = "ckExportToXls";
|
|
this.ckExportToXls.Size = new System.Drawing.Size(114, 21);
|
|
this.ckExportToXls.TabIndex = 28;
|
|
this.ckExportToXls.Text = "Export To Xls";
|
|
//
|
|
// ckQuickNotification
|
|
//
|
|
this.ckQuickNotification.AutoSize = true;
|
|
this.ckQuickNotification.Location = new System.Drawing.Point(367, 358);
|
|
this.ckQuickNotification.Name = "ckQuickNotification";
|
|
this.ckQuickNotification.Size = new System.Drawing.Size(140, 21);
|
|
this.ckQuickNotification.TabIndex = 27;
|
|
this.ckQuickNotification.Text = "Quick Notification";
|
|
//
|
|
// ckPTI
|
|
//
|
|
this.ckPTI.AutoSize = true;
|
|
this.ckPTI.Location = new System.Drawing.Point(29, 534);
|
|
this.ckPTI.Name = "ckPTI";
|
|
this.ckPTI.Size = new System.Drawing.Size(51, 21);
|
|
this.ckPTI.TabIndex = 26;
|
|
this.ckPTI.Text = "PTI";
|
|
//
|
|
// ckQBI
|
|
//
|
|
this.ckQBI.AutoSize = true;
|
|
this.ckQBI.Location = new System.Drawing.Point(29, 491);
|
|
this.ckQBI.Name = "ckQBI";
|
|
this.ckQBI.Size = new System.Drawing.Size(53, 21);
|
|
this.ckQBI.TabIndex = 25;
|
|
this.ckQBI.Text = "QBI";
|
|
//
|
|
// ckRI
|
|
//
|
|
this.ckRI.AutoSize = true;
|
|
this.ckRI.Location = new System.Drawing.Point(29, 448);
|
|
this.ckRI.Name = "ckRI";
|
|
this.ckRI.Size = new System.Drawing.Size(43, 21);
|
|
this.ckRI.TabIndex = 24;
|
|
this.ckRI.Text = "RI";
|
|
//
|
|
// ckLite
|
|
//
|
|
this.ckLite.AutoSize = true;
|
|
this.ckLite.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.ckLite.ForeColor = System.Drawing.Color.Black;
|
|
this.ckLite.Location = new System.Drawing.Point(29, 131);
|
|
this.ckLite.Name = "ckLite";
|
|
this.ckLite.Size = new System.Drawing.Size(129, 24);
|
|
this.ckLite.TabIndex = 23;
|
|
this.ckLite.Text = "Lite license";
|
|
this.ckLite.CheckedChanged += new System.EventHandler(this.ckLite_CheckedChanged);
|
|
//
|
|
// dtExpiry
|
|
//
|
|
this.dtExpiry.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
|
this.dtExpiry.Location = new System.Drawing.Point(29, 246);
|
|
this.dtExpiry.Name = "dtExpiry";
|
|
this.dtExpiry.Size = new System.Drawing.Size(141, 22);
|
|
this.dtExpiry.TabIndex = 21;
|
|
//
|
|
// label7
|
|
//
|
|
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label7.Location = new System.Drawing.Point(29, 167);
|
|
this.label7.Name = "label7";
|
|
this.label7.Size = new System.Drawing.Size(120, 20);
|
|
this.label7.TabIndex = 19;
|
|
this.label7.Text = "License type:";
|
|
//
|
|
// cbLicenseType
|
|
//
|
|
this.cbLicenseType.FormattingEnabled = true;
|
|
this.cbLicenseType.Items.AddRange(new object[] {
|
|
"New",
|
|
"Add on",
|
|
"Licensed trial",
|
|
"Web requested trial"});
|
|
this.cbLicenseType.Location = new System.Drawing.Point(29, 190);
|
|
this.cbLicenseType.Name = "cbLicenseType";
|
|
this.cbLicenseType.Size = new System.Drawing.Size(148, 24);
|
|
this.cbLicenseType.TabIndex = 18;
|
|
this.cbLicenseType.SelectedIndexChanged += new System.EventHandler(this.cbLicenseType_SelectedIndexChanged);
|
|
//
|
|
// ckMBI
|
|
//
|
|
this.ckMBI.AutoSize = true;
|
|
this.ckMBI.Location = new System.Drawing.Point(29, 404);
|
|
this.ckMBI.Name = "ckMBI";
|
|
this.ckMBI.Size = new System.Drawing.Size(53, 21);
|
|
this.ckMBI.TabIndex = 14;
|
|
this.ckMBI.Text = "MBI";
|
|
this.ckMBI.CheckedChanged += new System.EventHandler(this.ckMBI_CheckedChanged);
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.BackColor = System.Drawing.Color.Black;
|
|
this.label5.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.label5.Font = new System.Drawing.Font("Arial Black", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label5.ForeColor = System.Drawing.Color.Orchid;
|
|
this.label5.Location = new System.Drawing.Point(0, 0);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(1298, 36);
|
|
this.label5.TabIndex = 13;
|
|
this.label5.Text = "*** AyaNova 7.4 + ***";
|
|
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label3.Location = new System.Drawing.Point(493, 167);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(58, 20);
|
|
this.label3.TabIndex = 4;
|
|
this.label3.Text = "Users";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label2.Location = new System.Drawing.Point(29, 319);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(61, 20);
|
|
this.label2.TabIndex = 3;
|
|
this.label2.Text = "Add on";
|
|
//
|
|
// ckWebInterface
|
|
//
|
|
this.ckWebInterface.AutoSize = true;
|
|
this.ckWebInterface.Location = new System.Drawing.Point(29, 358);
|
|
this.ckWebInterface.Name = "ckWebInterface";
|
|
this.ckWebInterface.Size = new System.Drawing.Size(55, 21);
|
|
this.ckWebInterface.TabIndex = 2;
|
|
this.ckWebInterface.Text = "WBI";
|
|
this.ckWebInterface.CheckedChanged += new System.EventHandler(this.ckWebInterface_CheckedChanged);
|
|
//
|
|
// edRegTo
|
|
//
|
|
this.edRegTo.Location = new System.Drawing.Point(195, 191);
|
|
this.edRegTo.Name = "edRegTo";
|
|
this.edRegTo.Size = new System.Drawing.Size(290, 22);
|
|
this.edRegTo.TabIndex = 1;
|
|
this.edRegTo.Text = "Unregistered trial";
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label1.Location = new System.Drawing.Point(195, 167);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(120, 20);
|
|
this.label1.TabIndex = 0;
|
|
this.label1.Text = "Registered to:";
|
|
//
|
|
// mainMenu1
|
|
//
|
|
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
|
this.menuItem3,
|
|
this.menuItem1,
|
|
this.mnuSelectAll,
|
|
this.mnuPlusOne,
|
|
this.mnuReadKey,
|
|
this.mnuEditMessages,
|
|
this.mnuTEST});
|
|
//
|
|
// menuItem3
|
|
//
|
|
this.menuItem3.Index = 0;
|
|
this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
|
this.mnuGenKeyXML,
|
|
this.mnuGenKeyJSON});
|
|
this.menuItem3.Text = "Generate Key";
|
|
//
|
|
// mnuGenKeyXML
|
|
//
|
|
this.mnuGenKeyXML.Index = 0;
|
|
this.mnuGenKeyXML.Text = "Original (XML)";
|
|
this.mnuGenKeyXML.Click += new System.EventHandler(this.mnuGenKeyXML_Click);
|
|
//
|
|
// mnuGenKeyJSON
|
|
//
|
|
this.mnuGenKeyJSON.Index = 1;
|
|
this.mnuGenKeyJSON.Text = "New (JSON)";
|
|
this.mnuGenKeyJSON.Click += new System.EventHandler(this.mnuGenKeyJSON_Click);
|
|
//
|
|
// menuItem1
|
|
//
|
|
this.menuItem1.Index = 1;
|
|
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
|
this.mnuRequestsXML,
|
|
this.mnuRequestsJSON});
|
|
this.menuItem1.Text = "&Requests";
|
|
//
|
|
// mnuRequestsXML
|
|
//
|
|
this.mnuRequestsXML.Index = 0;
|
|
this.mnuRequestsXML.Text = "Original (xml)";
|
|
this.mnuRequestsXML.Click += new System.EventHandler(this.mnuRequestsXML_Click);
|
|
//
|
|
// mnuRequestsJSON
|
|
//
|
|
this.mnuRequestsJSON.Index = 1;
|
|
this.mnuRequestsJSON.Text = "New (JSON)";
|
|
this.mnuRequestsJSON.Click += new System.EventHandler(this.mnuRequestsJSON_Click);
|
|
//
|
|
// mnuSelectAll
|
|
//
|
|
this.mnuSelectAll.Index = 2;
|
|
this.mnuSelectAll.Text = "Select all Addons";
|
|
this.mnuSelectAll.Click += new System.EventHandler(this.mnuSelectAll_Click);
|
|
//
|
|
// mnuPlusOne
|
|
//
|
|
this.mnuPlusOne.Index = 3;
|
|
this.mnuPlusOne.Text = "+&1yr from now all dates";
|
|
this.mnuPlusOne.Click += new System.EventHandler(this.mnuPlusOne_Click);
|
|
//
|
|
// mnuReadKey
|
|
//
|
|
this.mnuReadKey.Index = 4;
|
|
this.mnuReadKey.Text = "Validate key";
|
|
this.mnuReadKey.Click += new System.EventHandler(this.mnuReadKey_Click);
|
|
//
|
|
// mnuEditMessages
|
|
//
|
|
this.mnuEditMessages.Index = 5;
|
|
this.mnuEditMessages.Text = "&Edit messages";
|
|
this.mnuEditMessages.Click += new System.EventHandler(this.mnuEditMessages_Click);
|
|
//
|
|
// mnuTEST
|
|
//
|
|
this.mnuTEST.Index = 6;
|
|
this.mnuTEST.Text = "TEST";
|
|
this.mnuTEST.Visible = false;
|
|
this.mnuTEST.Click += new System.EventHandler(this.mnuTEST_Click);
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
|
|
this.ClientSize = new System.Drawing.Size(1298, 651);
|
|
this.Controls.Add(this.panel1);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.Menu = this.mainMenu1;
|
|
this.Name = "Form1";
|
|
this.Text = "AyaNova Subscription key generator 5/9/2017";
|
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
this.panel1.ResumeLayout(false);
|
|
this.panel1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Application.Run(new Form1());
|
|
}
|
|
|
|
|
|
private void mnuGenKeyXML_Click(object sender, EventArgs e)
|
|
{
|
|
GenKey(true);
|
|
}
|
|
|
|
private void mnuGenKeyJSON_Click(object sender, EventArgs e)
|
|
{
|
|
GenKey(false);
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// Generate key
|
|
/// </summary>
|
|
private void GenKey(bool XMLFormat)
|
|
{
|
|
if (string.IsNullOrEmpty(cbLicenseType.Text))
|
|
{
|
|
MessageBox.Show("Select a license type to proceed");
|
|
return;
|
|
}
|
|
|
|
//get all checkboxed plugins into dtPlugins
|
|
dtPlugins.Rows.Clear();
|
|
|
|
if (ckMBI.Checked) AddPlugin("MBI");
|
|
if (ckWebInterface.Checked) AddPlugin("WBI");
|
|
if (ckQBI.Checked) AddPlugin("QBI");
|
|
if (ckQBOI.Checked) AddPlugin("QBOI");
|
|
if (ckPTI.Checked) AddPlugin("PTI");
|
|
if (ckQuickNotification.Checked) AddPlugin("QuickNotification");
|
|
if (ckExportToXls.Checked) AddPlugin("ExportToXls");
|
|
if (ckOutlookSchedule.Checked) AddPlugin("OutlookSchedule");
|
|
if (ckAyaNovaOLI.Checked) AddPlugin("AyaNovaOLI");
|
|
if (ckImportExportCSV.Checked) AddPlugin("ImportExportCSVDuplicate");
|
|
if (ckRI.Checked) AddPlugin("RI");
|
|
|
|
KeyGen kg = new KeyGen();
|
|
//"New",
|
|
//"Add on",
|
|
//"Licensed trial",
|
|
//"Web requested trial"
|
|
kg.SelectedLicenseType = cbLicenseType.Text;
|
|
kg.Plugins = dtPlugins;
|
|
kg.Lite = this.ckLite.Checked;//case 1172
|
|
kg.RegisteredTo = this.edRegTo.Text;
|
|
switch (this.cbUsers.SelectedItem.ToString())
|
|
{
|
|
case "1":
|
|
kg.ScheduleableUsers = 1;
|
|
break;
|
|
case "Up to 5":
|
|
kg.ScheduleableUsers = 5;
|
|
break;
|
|
case "Up to 10":
|
|
kg.ScheduleableUsers = 10;
|
|
break;
|
|
case "Up to 20":
|
|
kg.ScheduleableUsers = 20;
|
|
break;
|
|
case "Up to 50":
|
|
kg.ScheduleableUsers = 50;
|
|
break;
|
|
case "Unlimited (999)":
|
|
kg.ScheduleableUsers = 999;
|
|
break;
|
|
}
|
|
|
|
|
|
kg.Expires = dtExpiry.Value;
|
|
kg.WillExpire = true;
|
|
|
|
|
|
if (kg.SelectedLicenseType == "Web requested trial")
|
|
kg.RequestedTrial = true;
|
|
else
|
|
kg.RequestedTrial = false;
|
|
|
|
if (kg.SelectedLicenseType == "Web requested trial" || kg.SelectedLicenseType == "Licensed trial")
|
|
{
|
|
if (!ckLockout.Checked)
|
|
MessageBox.Show("WARNING: You selected a trial type license but didn't select the LOCKOUT option");
|
|
}
|
|
|
|
//case 2094
|
|
if (ckLockout.Checked)
|
|
{
|
|
kg.LockOut = true;
|
|
kg.LockoutDate = dtLockoutDate.Value;
|
|
}
|
|
|
|
|
|
string strKey = "";
|
|
strKey = MsgGen.FormatMessage(kg, XMLFormat);
|
|
|
|
edOut.Text = strKey;
|
|
edOut.SelectAll();
|
|
edOut.Copy();
|
|
}
|
|
|
|
|
|
|
|
|
|
private void mnuReadKey_Click(object sender, System.EventArgs e)
|
|
{
|
|
KeyReader kr = new KeyReader(edOut.Text);
|
|
if (!kr.IsValid)
|
|
MessageBox.Show(kr.Status);
|
|
else
|
|
{
|
|
//reset all options
|
|
ckLockout.Checked = false;
|
|
ckAyaNovaOLI.Checked = false;
|
|
ckExportToXls.Checked = false;
|
|
ckImportExportCSV.Checked = false;
|
|
ckOutlookSchedule.Checked = false;
|
|
ckPTI.Checked = false;
|
|
ckQBI.Checked = false;
|
|
ckQBOI.Checked = false;
|
|
ckQuickNotification.Checked = false;
|
|
ckMBI.Checked = false;
|
|
ckWebInterface.Checked = false;
|
|
ckRI.Checked = false;
|
|
|
|
|
|
|
|
//populate form based on values in kr
|
|
ckLite.Checked = kr.Lite;
|
|
|
|
//License type
|
|
//actually can't tell most kinds except a requested trial so
|
|
if (kr.RequestedTrial)
|
|
{
|
|
cbLicenseType.SelectedIndex = 3;
|
|
}
|
|
else
|
|
{
|
|
//all others we'll treat as an add on
|
|
cbLicenseType.SelectedIndex = 1;
|
|
}
|
|
|
|
|
|
edRegTo.Text = kr.RegisteredTo;
|
|
|
|
if (kr.ScheduleableUsers == 1)
|
|
cbUsers.SelectedIndex=0;
|
|
|
|
if (kr.ScheduleableUsers < 6 && kr.ScheduleableUsers > 1)
|
|
cbUsers.SelectedIndex=1;
|
|
|
|
if (kr.ScheduleableUsers < 11 && kr.ScheduleableUsers > 5)
|
|
cbUsers.SelectedIndex=2;
|
|
|
|
if (kr.ScheduleableUsers < 21 && kr.ScheduleableUsers > 10)
|
|
cbUsers.SelectedIndex=3;
|
|
|
|
if (kr.ScheduleableUsers < 51 && kr.ScheduleableUsers > 20)
|
|
cbUsers.SelectedIndex=4;
|
|
|
|
if (kr.ScheduleableUsers > 50)
|
|
cbUsers.SelectedIndex=5;
|
|
|
|
|
|
//cbUsers=???
|
|
if (kr.Expires == null)
|
|
dtExpiry.Value = DateTime.MaxValue;
|
|
else
|
|
dtExpiry.Value = (DateTime)kr.Expires;
|
|
|
|
ckLockout.Checked = kr.Lockout;
|
|
if(kr.Lockout)
|
|
dtLockoutDate.Value = kr.LockoutDate;
|
|
|
|
|
|
|
|
|
|
//plugins
|
|
foreach (DataRow dr in kr.Plugins.Rows)
|
|
{
|
|
switch (dr["Plugin"].ToString())
|
|
{
|
|
case "QBI - QuickBooks interface":
|
|
ckQBI.Checked = true;
|
|
dtQBI.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "QBOI - QuickBooks Online interface":
|
|
ckQBOI.Checked = true;
|
|
dtQBOI.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "PTI - US Sage 50/Peachtree interface":
|
|
case "PTI - Peachtree interface":
|
|
this.ckPTI.Checked = true;
|
|
dtPTI.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "QuickNotification":
|
|
this.ckQuickNotification.Checked = true;
|
|
this.dtQuickNotify.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "ExportToXls":
|
|
this.ckExportToXls.Checked = true;
|
|
this.dtExportToXls.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "OutlookSchedule":
|
|
this.ckOutlookSchedule.Checked = true;
|
|
this.dtOutlookSchedule.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "AyaNovaOLI":
|
|
this.ckAyaNovaOLI.Checked = true;
|
|
this.dtOLI.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "ImportExportCSVDuplicate":
|
|
case "ImportExportCSV":
|
|
this.ckImportExportCSV.Checked = true;
|
|
this.dtImportExportCSV.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "RI - Responsive Interface":
|
|
ckRI.Checked = true;
|
|
dtRI.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "MBI - Minimal browser interface":
|
|
ckMBI.Checked = true;
|
|
dtMBI.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
case "WBI - Web browser interface":
|
|
ckWebInterface.Checked = true;
|
|
dtWBI.Value = DateTime.Parse(dr["SubscriptionExpires"].ToString());
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private DataTable dtPlugins;
|
|
private void Form1_Load(object sender, System.EventArgs e)
|
|
{
|
|
dtPlugins = new DataTable();
|
|
dtPlugins.Columns.Add("Plugin");
|
|
dtPlugins.Columns.Add("Version");
|
|
dtPlugins.Columns.Add("SubscriptionExpires");
|
|
DateTime OneYearFromNow = System.DateTime.Now.AddYears(1);
|
|
SetAllDatesTo(OneYearFromNow);
|
|
|
|
cbUsers.SelectedIndex = 0;
|
|
|
|
cbLicenseType.SelectedIndex = 0;
|
|
}
|
|
|
|
private void SetAllDatesTo(DateTime dt)
|
|
{
|
|
dtExpiry.Value = dt;
|
|
dtExportToXls.Value = dt;
|
|
|
|
dtImportExportCSV.Value = dt;
|
|
dtMBI.Value = dt;
|
|
dtOLI.Value = dt;
|
|
dtOutlookSchedule.Value = dt;
|
|
dtPTI.Value = dt;
|
|
dtQBI.Value = dt;
|
|
dtQBOI.Value = dt;
|
|
dtQuickNotify.Value = dt;
|
|
dtRI.Value = dt;
|
|
dtWBI.Value = dt;
|
|
}
|
|
|
|
|
|
private void AddPlugin(string pluginKey)
|
|
{
|
|
DataRow dr = dtPlugins.NewRow();
|
|
switch (pluginKey)
|
|
{
|
|
case "WBI":
|
|
dr["Plugin"] = "WBI - Web browser interface";
|
|
dr["Version"] = "7";
|
|
dr["SubscriptionExpires"] = dtWBI.Value.Date;
|
|
break;
|
|
case "MBI":
|
|
dr["Plugin"] = "MBI - Minimal browser interface";
|
|
dr["Version"] = "7";
|
|
dr["SubscriptionExpires"] = dtMBI.Value.Date;
|
|
break;
|
|
|
|
case "QBI":
|
|
dr["Plugin"] = "QBI - QuickBooks interface";
|
|
dr["Version"] = "7";
|
|
dr["SubscriptionExpires"] = dtQBI.Value.Date;
|
|
break;
|
|
|
|
case "QBOI":
|
|
dr["Plugin"] = "QBOI - QuickBooks Online interface";
|
|
dr["Version"] = "7";
|
|
dr["SubscriptionExpires"] = dtQBOI.Value.Date;
|
|
break;
|
|
|
|
case "PTI":
|
|
dr["Plugin"] = "PTI - US Sage 50/Peachtree interface";
|
|
dr["Version"] = "7";
|
|
dr["SubscriptionExpires"] = dtPTI.Value.Date;
|
|
break;
|
|
case "QuickNotification":
|
|
dr["Plugin"] = "QuickNotification";
|
|
dr["Version"] = "Licensed";
|
|
dr["SubscriptionExpires"] = this.dtQuickNotify.Value.Date;
|
|
break;
|
|
case "ExportToXls":
|
|
dr["Plugin"] = "ExportToXls";
|
|
dr["Version"] = "Licensed";
|
|
dr["SubscriptionExpires"] = this.dtExportToXls.Value.Date;
|
|
break;
|
|
case "OutlookSchedule":
|
|
dr["Plugin"] = "OutlookSchedule";
|
|
dr["Version"] = "Licensed";
|
|
dr["SubscriptionExpires"] = this.dtOutlookSchedule.Value.Date;
|
|
break;
|
|
case "AyaNovaOLI":
|
|
dr["Plugin"] = "AyaNovaOLI";
|
|
dr["Version"] = "Licensed";
|
|
dr["SubscriptionExpires"] = this.dtOLI.Value.Date;
|
|
break;
|
|
case "ImportExportCSVDuplicate":
|
|
dr["Plugin"] = "ImportExportCSVDuplicate";
|
|
dr["Version"] = "Licensed";
|
|
dr["SubscriptionExpires"] = this.dtImportExportCSV.Value.Date;
|
|
break;
|
|
case "RI":
|
|
dr["Plugin"] = "RI - Responsive Interface";
|
|
dr["Version"] = "7";
|
|
dr["SubscriptionExpires"] = this.dtRI.Value.Date;
|
|
break;
|
|
}
|
|
dtPlugins.Rows.Add(dr);
|
|
}
|
|
|
|
|
|
private void cbLicenseType_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
// "New",
|
|
//"Add on",
|
|
//"Licensed trial",
|
|
//"Web requested trial"
|
|
DateTime OneMonthFromNow = System.DateTime.Now.AddMonths(1);
|
|
switch (cbLicenseType.Text)
|
|
{
|
|
case "Licensed trial":
|
|
this.ckLockout.Checked = true;
|
|
this.dtLockoutDate.Value = OneMonthFromNow;
|
|
break;
|
|
case "Web requested trial":
|
|
this.ckLockout.Checked = true;
|
|
this.dtLockoutDate.Value = OneMonthFromNow;
|
|
//case 1316
|
|
ckAyaNovaOLI.Checked = true;
|
|
ckExportToXls.Checked = true;
|
|
ckImportExportCSV.Checked = true;
|
|
|
|
ckOutlookSchedule.Checked = true;
|
|
ckPTI.Checked = true;
|
|
ckQBI.Checked = true;
|
|
ckQBOI.Checked = true;
|
|
if (!ckLite.Checked)
|
|
{
|
|
ckQuickNotification.Checked = true;
|
|
ckMBI.Checked = true;
|
|
ckWebInterface.Checked = true;
|
|
ckRI.Checked = true;
|
|
}
|
|
else
|
|
{
|
|
ckQuickNotification.Checked = false;
|
|
ckMBI.Checked = false;
|
|
ckWebInterface.Checked = false;
|
|
ckRI.Checked = false;
|
|
}
|
|
|
|
//set all the expiry dates to one month
|
|
|
|
SetAllDatesTo(OneMonthFromNow);
|
|
|
|
//if (!ckLite.Checked)
|
|
//{
|
|
// ckMBI.Checked = true;
|
|
// ckWebInterface.Checked = true;
|
|
//}
|
|
//for (int x = 0; x < cbPlugins.Items.Count; x++)
|
|
//{
|
|
// if (!(ckLite.Checked && cbPlugins.Items[x].ToString() == "QuickNotification"))
|
|
// cbPlugins.SelectedIndex = x;
|
|
//}
|
|
break;
|
|
|
|
default:
|
|
this.ckLockout.Checked = false;
|
|
ckAyaNovaOLI.Checked = false;
|
|
ckExportToXls.Checked = false;
|
|
ckImportExportCSV.Checked = false;
|
|
ckOutlookSchedule.Checked = false;
|
|
ckPTI.Checked = false;
|
|
ckQBI.Checked = false;
|
|
ckQBOI.Checked = false;
|
|
ckQuickNotification.Checked = false;
|
|
ckMBI.Checked = false;
|
|
ckWebInterface.Checked = false;
|
|
ckRI.Checked = false;
|
|
DateTime OneYearFromNow = System.DateTime.Now.AddYears(1);
|
|
SetAllDatesTo(OneYearFromNow);
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//case 1172
|
|
private void ckLite_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
bool isLite = ckLite.Checked;
|
|
|
|
cbUsers.SelectedIndex = 0;//or is it zero
|
|
//edSchedUsers.Text = "1";
|
|
//edSchedUsers.Enabled = !ckLite.Checked;
|
|
if (isLite)
|
|
{
|
|
ckWebInterface.Checked = false;
|
|
ckMBI.Checked = false;
|
|
ckRI.Checked = false;
|
|
ckQuickNotification.Checked = false;
|
|
}
|
|
ckWebInterface.Enabled = !isLite;
|
|
ckMBI.Enabled = !isLite;
|
|
ckRI.Enabled = !isLite;
|
|
ckQuickNotification.Enabled = !isLite;
|
|
cbUsers.Enabled = !isLite;
|
|
|
|
}
|
|
|
|
private void ckWebInterface_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
private void mnuRequestsXML_Click(object sender, EventArgs e)
|
|
{
|
|
ALRequests a = new ALRequests(true);
|
|
a.Show();
|
|
}
|
|
|
|
private void mnuRequestsJSON_Click(object sender, EventArgs e)
|
|
{
|
|
ALRequests a = new ALRequests(false);
|
|
a.Show();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void mnuEditMessages_Click(object sender, EventArgs e)
|
|
{
|
|
MsgEditor d = new MsgEditor();
|
|
d.ShowDialog();
|
|
|
|
}
|
|
|
|
private void ckMBI_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void mnuSelectAll_Click(object sender, EventArgs e)
|
|
{
|
|
ckAyaNovaOLI.Checked = true;
|
|
ckExportToXls.Checked = true;
|
|
ckImportExportCSV.Checked = true;
|
|
|
|
ckOutlookSchedule.Checked = true;
|
|
ckPTI.Checked = true;
|
|
ckQBI.Checked = true;
|
|
ckQBOI.Checked = true;
|
|
|
|
ckQuickNotification.Checked = true;
|
|
ckMBI.Checked = true;
|
|
ckWebInterface.Checked = true;
|
|
ckRI.Checked = true;
|
|
}
|
|
|
|
private void ckTempKey_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
this.dtLockoutDate.Enabled = ckLockout.Checked;
|
|
}
|
|
|
|
private void mnuPlusOne_Click(object sender, EventArgs e)
|
|
{
|
|
SetAllDatesTo(DateTime.Now.AddYears(1));
|
|
}
|
|
|
|
private void btnPlusOne_Click(object sender, EventArgs e)
|
|
{
|
|
DateTime dt = DateTime.Now.AddYears(1);
|
|
Button b = (Button)sender;
|
|
string dts = b.Tag.ToString();
|
|
switch (dts)
|
|
{
|
|
case "dtExpiry":
|
|
dtExpiry.Value = dt;
|
|
break;
|
|
case "dtWBI":
|
|
dtWBI.Value = dt;
|
|
break;
|
|
case "dtMBI":
|
|
dtMBI.Value = dt;
|
|
break;
|
|
case "dtRI":
|
|
dtRI.Value = dt;
|
|
break;
|
|
case "dtQBI":
|
|
dtQBI.Value = dt;
|
|
break;
|
|
case "dtQBOI":
|
|
dtQBOI.Value = dt;
|
|
break;
|
|
case "dtPTI":
|
|
dtPTI.Value = dt;
|
|
break;
|
|
case "dtQuickNotify":
|
|
dtQuickNotify.Value = dt;
|
|
break;
|
|
case "dtExportToXls":
|
|
dtExportToXls.Value = dt;
|
|
break;
|
|
case "dtOutlookSchedule":
|
|
dtOutlookSchedule.Value = dt;
|
|
break;
|
|
case "dtOLI":
|
|
dtOLI.Value = dt;
|
|
break;
|
|
case "dtImportExportCSV":
|
|
dtImportExportCSV.Value = dt;
|
|
break;
|
|
}
|
|
|
|
}
|
|
|
|
private void mnuTEST_Click(object sender, EventArgs e)
|
|
{
|
|
KeyGen kg = new KeyGen();
|
|
kg.GenTest();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|