浏览代码

12.15.2023

phoenix.XLIX 1 年之前
父节点
当前提交
4c6fa73269
共有 3 个文件被更改,包括 23 次插入1 次删除
  1. 18 1
      ImpulseVision/FormAutorize.Designer.cs
  2. 5 0
      ImpulseVision/FormAutorize.cs
  3. 二进制
      ImpulseVision/bin/Debug/ImpulseVision.exe

+ 18 - 1
ImpulseVision/FormAutorize.Designer.cs

@@ -37,6 +37,7 @@
             this.LblUserID = new System.Windows.Forms.Label();
             this.BtnLogin = new System.Windows.Forms.Button();
             this.PanelAutorize = new ImpulseVision.RPanel();
+            this.CbxShowPass = new System.Windows.Forms.CheckBox();
             this.Card = new ImpulseVision.FDCard();
             this.TbxLogin = new ImpulseVision.EgoldsGoogleTextBox();
             this.TbxPassword = new ImpulseVision.EgoldsGoogleTextBox();
@@ -105,6 +106,7 @@
             this.PanelAutorize.BorderColorEnabled = false;
             this.PanelAutorize.BorderColorOnHover = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(229)))), ((int)(((byte)(233)))));
             this.PanelAutorize.BorderColorOnHoverEnabled = false;
+            this.PanelAutorize.Controls.Add(this.CbxShowPass);
             this.PanelAutorize.Controls.Add(this.Card);
             this.PanelAutorize.Controls.Add(this.TbxLogin);
             this.PanelAutorize.Controls.Add(this.BtnLogin);
@@ -124,6 +126,19 @@
             this.PanelAutorize.UseRippleEffect = true;
             this.PanelAutorize.UseZoomEffectOnHover = false;
             // 
+            // CbxShowPass
+            // 
+            this.CbxShowPass.AutoSize = true;
+            this.CbxShowPass.Font = new System.Drawing.Font("Segoe UI Variable Small Semibol", 12F, System.Drawing.FontStyle.Bold);
+            this.CbxShowPass.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(62)))), ((int)(((byte)(71)))));
+            this.CbxShowPass.Location = new System.Drawing.Point(291, 151);
+            this.CbxShowPass.Name = "CbxShowPass";
+            this.CbxShowPass.Size = new System.Drawing.Size(163, 25);
+            this.CbxShowPass.TabIndex = 4;
+            this.CbxShowPass.Text = "Показать пароль";
+            this.CbxShowPass.UseVisualStyleBackColor = true;
+            this.CbxShowPass.CheckedChanged += new System.EventHandler(this.CbxShowPass_CheckedChanged);
+            // 
             // Card
             // 
             this.Card.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(255)))), ((int)(((byte)(252)))));
@@ -179,7 +194,7 @@
             this.TbxPassword.TabIndex = 2;
             this.TbxPassword.TextInput = "";
             this.TbxPassword.TextPreview = "Пароль";
-            this.TbxPassword.UseSystemPasswordChar = false;
+            this.TbxPassword.UseSystemPasswordChar = true;
             // 
             // Notify
             // 
@@ -213,6 +228,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.impulseVisionAppDataSet1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             this.PanelAutorize.ResumeLayout(false);
+            this.PanelAutorize.PerformLayout();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -230,5 +246,6 @@
         private System.Windows.Forms.Label LblRole;
         private System.Windows.Forms.Label LblUserID;
         public System.Windows.Forms.NotifyIcon Notify;
+        private System.Windows.Forms.CheckBox CbxShowPass;
     }
 }

+ 5 - 0
ImpulseVision/FormAutorize.cs

@@ -230,5 +230,10 @@ from HistoryLogin";
             }
             Notify.Visible = true;
         }
+
+        private void CbxShowPass_CheckedChanged(object sender, EventArgs e)
+        {
+            TbxPassword.UseSystemPasswordChar = !CbxShowPass.Checked;
+        }
     }
 }

二进制
ImpulseVision/bin/Debug/ImpulseVision.exe