Inserito primo test di AUTH e QR-CODE

This commit is contained in:
Samuele E. Locatelli
2019-02-28 16:07:13 +01:00
parent a403176d67
commit 695dbf2554
6 changed files with 299 additions and 129 deletions
+27 -72
View File
@@ -33,9 +33,8 @@
this.toolStripProgressBar1 = new System.Windows.Forms.ToolStripProgressBar();
this.lblClock = new System.Windows.Forms.ToolStripStatusLabel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.chkEnrolled = new System.Windows.Forms.CheckBox();
this.chkLocalOk = new System.Windows.Forms.CheckBox();
this.chkCloudOk = new System.Windows.Forms.CheckBox();
this.txtClientID = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.txtConnParam = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.chkTestMode = new System.Windows.Forms.CheckBox();
@@ -54,16 +53,14 @@
this.label5 = new System.Windows.Forms.Label();
this.lblReqStatus = new System.Windows.Forms.Label();
this.lblRetData = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictBox = new System.Windows.Forms.PictureBox();
this.label6 = new System.Windows.Forms.Label();
this.lblConsole = new System.Windows.Forms.Label();
this.txtClientID = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.statusStrip1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictBox)).BeginInit();
this.SuspendLayout();
//
// statusStrip1
@@ -104,9 +101,6 @@
this.groupBox1.AutoSize = true;
this.groupBox1.Controls.Add(this.txtClientID);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.chkEnrolled);
this.groupBox1.Controls.Add(this.chkLocalOk);
this.groupBox1.Controls.Add(this.chkCloudOk);
this.groupBox1.Controls.Add(this.txtConnParam);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.chkTestMode);
@@ -119,42 +113,21 @@
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Connection Parameters";
//
// chkEnrolled
// txtClientID
//
this.chkEnrolled.AutoSize = true;
this.chkEnrolled.Location = new System.Drawing.Point(665, 58);
this.chkEnrolled.Name = "chkEnrolled";
this.chkEnrolled.Size = new System.Drawing.Size(110, 21);
this.chkEnrolled.TabIndex = 18;
this.chkEnrolled.Text = "Enroll Status";
this.chkEnrolled.UseVisualStyleBackColor = true;
this.chkEnrolled.Click += new System.EventHandler(this.chkEnrolled_Click);
this.txtClientID.Location = new System.Drawing.Point(354, 30);
this.txtClientID.Name = "txtClientID";
this.txtClientID.Size = new System.Drawing.Size(168, 22);
this.txtClientID.TabIndex = 20;
//
// chkLocalOk
// label7
//
this.chkLocalOk.AutoSize = true;
this.chkLocalOk.Checked = true;
this.chkLocalOk.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkLocalOk.Location = new System.Drawing.Point(805, 29);
this.chkLocalOk.Name = "chkLocalOk";
this.chkLocalOk.Size = new System.Drawing.Size(108, 21);
this.chkLocalOk.TabIndex = 17;
this.chkLocalOk.Text = "Local Status";
this.chkLocalOk.UseVisualStyleBackColor = true;
this.chkLocalOk.Click += new System.EventHandler(this.chkLocalOk_Click);
//
// chkCloudOk
//
this.chkCloudOk.AutoSize = true;
this.chkCloudOk.Checked = true;
this.chkCloudOk.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkCloudOk.Location = new System.Drawing.Point(665, 29);
this.chkCloudOk.Name = "chkCloudOk";
this.chkCloudOk.Size = new System.Drawing.Size(110, 21);
this.chkCloudOk.TabIndex = 16;
this.chkCloudOk.Text = "Cloud Status";
this.chkCloudOk.UseVisualStyleBackColor = true;
this.chkCloudOk.Click += new System.EventHandler(this.chkCloudOk_Click);
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(295, 33);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(56, 17);
this.label7.TabIndex = 19;
this.label7.Text = "ClientID";
//
// txtConnParam
//
@@ -251,6 +224,7 @@
this.btnTryAuth.TabIndex = 16;
this.btnTryAuth.Text = "tryAuthorize";
this.btnTryAuth.UseVisualStyleBackColor = true;
this.btnTryAuth.Click += new System.EventHandler(this.btnTryAuth_Click);
//
// btnInit
//
@@ -287,7 +261,7 @@
this.tableLayoutPanel1.Controls.Add(this.label5, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.lblReqStatus, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.lblRetData, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.pictureBox1, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.pictBox, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.label6, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.lblConsole, 3, 1);
this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 225);
@@ -343,14 +317,14 @@
this.lblRetData.TabIndex = 4;
this.lblRetData.Text = "...";
//
// pictureBox1
// pictBox
//
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Location = new System.Drawing.Point(395, 52);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(288, 402);
this.pictureBox1.TabIndex = 5;
this.pictureBox1.TabStop = false;
this.pictBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictBox.Location = new System.Drawing.Point(395, 52);
this.pictBox.Name = "pictBox";
this.pictBox.Size = new System.Drawing.Size(288, 402);
this.pictBox.TabIndex = 5;
this.pictBox.TabStop = false;
//
// label6
//
@@ -373,22 +347,6 @@
this.lblConsole.TabIndex = 7;
this.lblConsole.Text = "...";
//
// txtClientID
//
this.txtClientID.Location = new System.Drawing.Point(354, 30);
this.txtClientID.Name = "txtClientID";
this.txtClientID.Size = new System.Drawing.Size(168, 22);
this.txtClientID.TabIndex = 20;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(295, 33);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(56, 17);
this.label7.TabIndex = 19;
this.label7.Text = "ClientID";
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@@ -407,7 +365,7 @@
this.groupBox2.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictBox)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -427,9 +385,6 @@
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Button btnInit;
private System.Windows.Forms.Button btnResetParam;
private System.Windows.Forms.CheckBox chkCloudOk;
private System.Windows.Forms.CheckBox chkLocalOk;
private System.Windows.Forms.CheckBox chkEnrolled;
private System.Windows.Forms.Button btnTryUserLogin;
private System.Windows.Forms.Button btnGetUserList;
private System.Windows.Forms.Button btnGetOrgCode;
@@ -440,7 +395,7 @@
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label lblReqStatus;
private System.Windows.Forms.Label lblRetData;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictBox;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label lblConsole;
private System.Windows.Forms.TextBox txtClientID;