namespace DesktopMagic.Api.Settings; /// /// Represents a text box control. /// public class TextBox : Setting { private string _value = string.Empty; /// /// Gets or sets the text associated with this . /// public string Value { get => _value; set { if (_value != value) { _value = value; ValueChanged(); } } } /// /// Initializes a new instance of the class with the provided . /// /// The text associated with this control. public TextBox(string value) { Value = value; } internal override string GetJsonValue() { return Value; } internal override void SetJsonValue(string value) { Value = value; } }