advanced userinterface design

This commit is contained in:
Nitload
2026-04-01 22:20:49 +08:00
parent 24498c2717
commit aa7ece4ed0
42 changed files with 2876 additions and 463 deletions
@@ -0,0 +1,24 @@
using System;
namespace StgSharp.UserInterface
{
public abstract record StateChangeCommand
{
protected StateChangeCommand(
string statePath
)
{
StatePath = string.IsNullOrWhiteSpace(statePath) ?
throw new ArgumentException("Value cannot be null or whitespace.", nameof(statePath)) :
statePath;
}
public object? Value { get; init; }
public Guid CommandId { get; init; } = Guid.NewGuid();
public string StatePath { get; init; }
}
}