mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
18 lines
571 B
C#
18 lines
571 B
C#
using Artemis.Core.Plugins.Abstract.DataModels.Attributes;
|
|
using Artemis.UI.Shared.DataModelVisualization;
|
|
|
|
namespace Artemis.UI.DataModelVisualization.Input
|
|
{
|
|
public class StringDataModelInputViewModel : DataModelInputViewModel<string>
|
|
{
|
|
public StringDataModelInputViewModel(DataModelPropertyAttribute description, string initialValue) : base(description, initialValue)
|
|
{
|
|
}
|
|
|
|
protected override void OnSubmit()
|
|
{
|
|
if (string.IsNullOrWhiteSpace(InputValue))
|
|
InputValue = null;
|
|
}
|
|
}
|
|
} |