mirror of
https://github.com/MAKS-IT-COM/uscheduler.git
synced 2026-11-15 02:06:12 +01:00
22 lines
600 B
C#
22 lines
600 B
C#
namespace MaksIT.UScheduler.UI.Services;
|
|
|
|
/// <summary>Screens the snapshot tour can save. An empty request means every screen.</summary>
|
|
public static class SnapshotViews {
|
|
public static readonly string[] All = [
|
|
"scripts",
|
|
"launch",
|
|
"processes",
|
|
"logs",
|
|
"script-logs",
|
|
"settings",
|
|
"about",
|
|
"program-log"
|
|
];
|
|
|
|
public static IReadOnlyList<string> Resolve(IReadOnlyList<string> requested) =>
|
|
requested.Count == 0 ? All : requested;
|
|
|
|
public static bool IsKnown(string id) =>
|
|
All.Any(view => string.Equals(view, id, StringComparison.OrdinalIgnoreCase));
|
|
}
|