Update project to .NET 8 and code improvements

This commit is contained in:
Stone_Red
2023-11-16 19:27:21 +01:00
parent adfedcb876
commit 2c883787f7
43 changed files with 2168 additions and 2790 deletions
+26 -27
View File
@@ -1,35 +1,34 @@
namespace DesktopMagicPluginAPI.Inputs
{
/// <summary>
/// Represents a text box control.
/// </summary>
public class TextBox : Element
{
private string _value;
namespace DesktopMagicPluginAPI.Inputs;
/// <summary>
/// Gets or sets the text associated with this <see cref="TextBox"/>.
/// </summary>
public string Value
/// <summary>
/// Represents a text box control.
/// </summary>
public class TextBox : Element
{
private string _value;
/// <summary>
/// Gets or sets the text associated with this <see cref="TextBox"/>.
/// </summary>
public string Value
{
get => _value;
set
{
get => _value;
set
if (_value != value)
{
if (_value != value)
{
_value = value;
ValueChanged();
}
_value = value;
ValueChanged();
}
}
}
/// <summary>
/// Initializes a new instance of the <see cref="TextBox"/> class with the provided <paramref name="value"/>.
/// </summary>
/// <param name="value">The text associated with this control.</param>
public TextBox(string value)
{
Value = value;
}
/// <summary>
/// Initializes a new instance of the <see cref="TextBox"/> class with the provided <paramref name="value"/>.
/// </summary>
/// <param name="value">The text associated with this control.</param>
public TextBox(string value)
{
Value = value;
}
}