From 16ebf37a69163232cb4800e53619ccd84a13dc60 Mon Sep 17 00:00:00 2001 From: "13997737+wolframhaussig@users.noreply.github.com" <13997737+wolframhaussig@users.noreply.github.com> Date: Sun, 25 Feb 2024 17:09:31 +0100 Subject: [PATCH] remove unnecessary suppressions --- .../StylableWinFormsControls/Controls/StylableTextBox.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/StylableWinFormsControls/StylableWinFormsControls/Controls/StylableTextBox.cs b/StylableWinFormsControls/StylableWinFormsControls/Controls/StylableTextBox.cs index 32b80f1..4e6b8c1 100644 --- a/StylableWinFormsControls/StylableWinFormsControls/Controls/StylableTextBox.cs +++ b/StylableWinFormsControls/StylableWinFormsControls/Controls/StylableTextBox.cs @@ -172,9 +172,7 @@ private void onTextChanged(object? sender, EventArgs e) { //The text change either comes from the user or the application setting a default value IsHintActive = false; -#pragma warning disable CS0618 //Obsolete ForeColor = TextForeColor; -#pragma warning restore CS0618 //Obsolete } } @@ -184,9 +182,7 @@ protected override void OnLostFocus(EventArgs e) { IsHintActive = true; _hintRefresh = true; -#pragma warning disable CS0618 //Obsolete ForeColor = HintForeColor; -#pragma warning restore CS0618 //Obsolete base.Text = Hint; _hintRefresh = false; if (_hintActiveChanged is not null) @@ -203,9 +199,7 @@ protected override void OnGotFocus(EventArgs e) if (IsHintActive && !string.IsNullOrEmpty(base.Text)) { IsHintActive = false; -#pragma warning disable CS0618 //Obsolete ForeColor = TextForeColor; -#pragma warning restore CS0618 //Obsolete _hintRefresh = true; base.Text = string.Empty;