From 6ab1468786f1e865e9ff408d32149f9c9620d844 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 4 Nov 2017 09:43:02 +0000 Subject: Fix bugs ...and get rid of all == false and == true --- Histacom2.Engine/UI/ClassicDropDown.cs | 12 ++++++++++++ Histacom2.Engine/UI/ClassicTextbox.cs | 12 ++++++++++++ 2 files changed, 24 insertions(+) (limited to 'Histacom2.Engine/UI') diff --git a/Histacom2.Engine/UI/ClassicDropDown.cs b/Histacom2.Engine/UI/ClassicDropDown.cs index 0b56cb9..93b4a62 100644 --- a/Histacom2.Engine/UI/ClassicDropDown.cs +++ b/Histacom2.Engine/UI/ClassicDropDown.cs @@ -17,6 +17,18 @@ namespace Histacom2.Engine.UI public bool UseSystemPasswordChar { get; set; } public bool dropDownShown; + public override string Text + { + get + { + return textBox1.Text; + } + set + { + textBox1.Text = value; + } + } + public static Color textboxcolor = Color.Black; public static Color _lightBack = Color.Silver; diff --git a/Histacom2.Engine/UI/ClassicTextbox.cs b/Histacom2.Engine/UI/ClassicTextbox.cs index 8f1f9c3..f89df03 100644 --- a/Histacom2.Engine/UI/ClassicTextbox.cs +++ b/Histacom2.Engine/UI/ClassicTextbox.cs @@ -19,6 +19,18 @@ namespace Histacom2.Engine.UI public static Color _lightBack = Color.Silver; public static Color _darkBack = Color.Silver; + public override string Text + { + get + { + return textBox1.Text; + } + set + { + textBox1.Text = value; + } + } + public ClassicTextBox() { InitializeComponent(); -- cgit v1.2.3