// ----------------------------------------------------------------------------- // file="State.AppState" // Project: StgSharp // Copyright (c) Nitload. // SPDX-License-Identifier: MIT // ----------------------------------------------------------------------------- using System; using System.Collections.Generic; namespace StgSharp.UserInterface { public abstract class AppState { protected AppState( string name ) { Name = string.IsNullOrWhiteSpace(name) ? throw new ArgumentException("Value cannot be null or whitespace.", nameof(name)) : name; } public IDictionary Panels { get; } = new Dictionary(StringComparer.Ordinal); public IDictionary SharedContext { get; } = new Dictionary(StringComparer.Ordinal); public string Name { get; } } }