From 1cdbf9659b0153285bb56bd35ab58e0a70f4d632 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 4 Nov 2017 22:00:05 +0000 Subject: Final commit! --- Histacom2.Engine/UI/ClassicDropDown.cs | 13 ++++++++++++- Histacom2.Engine/UI/ClassicTextBox.Designer.cs | 8 ++++---- Histacom2.Engine/UI/ClassicTextbox.cs | 14 ++++++++++++-- 3 files changed, 28 insertions(+), 7 deletions(-) (limited to 'Histacom2.Engine/UI') diff --git a/Histacom2.Engine/UI/ClassicDropDown.cs b/Histacom2.Engine/UI/ClassicDropDown.cs index edf2268..e01ca2a 100644 --- a/Histacom2.Engine/UI/ClassicDropDown.cs +++ b/Histacom2.Engine/UI/ClassicDropDown.cs @@ -14,7 +14,6 @@ namespace Histacom2.Engine.UI public partial class ClassicDropDown : UserControl { public DropDownOverlay thisOverlay = new DropDownOverlay(); - public bool UseSystemPasswordChar { get; set; } public bool dropDownShown; public override string Text @@ -29,6 +28,18 @@ namespace Histacom2.Engine.UI } } + public bool UseSystemPasswordChar + { + get + { + return textBox1.UseSystemPasswordChar; + } + set + { + textBox1.UseSystemPasswordChar = value; + } + } + public static Color textboxcolor = Color.Black; public static Color _lightBack = Color.Silver; diff --git a/Histacom2.Engine/UI/ClassicTextBox.Designer.cs b/Histacom2.Engine/UI/ClassicTextBox.Designer.cs index af6b199..06df3fb 100644 --- a/Histacom2.Engine/UI/ClassicTextBox.Designer.cs +++ b/Histacom2.Engine/UI/ClassicTextBox.Designer.cs @@ -42,7 +42,7 @@ // bborder // this.bborder.Dock = System.Windows.Forms.DockStyle.Bottom; - this.bborder.Location = new System.Drawing.Point(2, 15); + this.bborder.Location = new System.Drawing.Point(2, 18); this.bborder.Name = "bborder"; this.bborder.Size = new System.Drawing.Size(96, 2); this.bborder.TabIndex = 0; @@ -53,7 +53,7 @@ this.lborder.Dock = System.Windows.Forms.DockStyle.Left; this.lborder.Location = new System.Drawing.Point(0, 0); this.lborder.Name = "lborder"; - this.lborder.Size = new System.Drawing.Size(2, 17); + this.lborder.Size = new System.Drawing.Size(2, 20); this.lborder.TabIndex = 1; this.lborder.TabStop = false; // @@ -62,7 +62,7 @@ this.rborder.Dock = System.Windows.Forms.DockStyle.Right; this.rborder.Location = new System.Drawing.Point(98, 0); this.rborder.Name = "rborder"; - this.rborder.Size = new System.Drawing.Size(2, 17); + this.rborder.Size = new System.Drawing.Size(2, 20); this.rborder.TabIndex = 2; this.rborder.TabStop = false; // @@ -94,7 +94,7 @@ this.Controls.Add(this.rborder); this.Controls.Add(this.lborder); this.Name = "ClassicTextBox"; - this.Size = new System.Drawing.Size(100, 17); + this.Size = new System.Drawing.Size(100, 20); ((System.ComponentModel.ISupportInitialize)(this.bborder)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lborder)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.rborder)).EndInit(); diff --git a/Histacom2.Engine/UI/ClassicTextbox.cs b/Histacom2.Engine/UI/ClassicTextbox.cs index f89df03..4847ed5 100644 --- a/Histacom2.Engine/UI/ClassicTextbox.cs +++ b/Histacom2.Engine/UI/ClassicTextbox.cs @@ -12,8 +12,6 @@ namespace Histacom2.Engine.UI { public partial class ClassicTextBox : UserControl { - public bool UseSystemPasswordChar { get; set; } - public static Color textboxcolor = Color.Black; public static Color _lightBack = Color.Silver; @@ -31,6 +29,18 @@ namespace Histacom2.Engine.UI } } + public bool UseSystemPasswordChar + { + get + { + return textBox1.UseSystemPasswordChar; + } + set + { + textBox1.UseSystemPasswordChar = value; + } + } + public ClassicTextBox() { InitializeComponent(); -- cgit v1.2.3