ea21406309
including copy to clipboard
24 lines
474 B
C#
24 lines
474 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace WebApp
|
|
{
|
|
public class StateContainer
|
|
{
|
|
private int[]? _scheduledTeams;
|
|
|
|
public int[] UserId
|
|
{
|
|
get => _scheduledTeams ?? [];
|
|
set
|
|
{
|
|
_scheduledTeams = value;
|
|
NotifyStateChanged();
|
|
}
|
|
}
|
|
|
|
public event Action? OnChange;
|
|
|
|
private void NotifyStateChanged() => OnChange?.Invoke();
|
|
}
|
|
}
|