Skip to content

Commit

Permalink
remove unnecessary suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
wolframhaussig committed Feb 25, 2024
1 parent a8a463c commit 16ebf37
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand All @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit 16ebf37

Please sign in to comment.