mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
18 lines
541 B
C#
18 lines
541 B
C#
using Artemis.Core.DataModelExpansions;
|
|
using Artemis.UI.Shared;
|
|
|
|
namespace Artemis.UI.DataModelVisualization.Input
|
|
{
|
|
public class StringDataModelInputViewModel : DataModelInputViewModel<string>
|
|
{
|
|
public StringDataModelInputViewModel(DataModelPropertyAttribute targetDescription, string initialValue) : base(targetDescription, initialValue)
|
|
{
|
|
}
|
|
|
|
protected override void OnSubmit()
|
|
{
|
|
if (string.IsNullOrWhiteSpace(InputValue))
|
|
InputValue = null;
|
|
}
|
|
}
|
|
} |