Skip to content

EventChoice

Record in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

An event of the shared event picker (EventPicker, EventTree): its id, its name, its folders top first (“Devices”, “Any device”), whether its plugin is on, and what it means. The event rule dialog’s options and a plugin’s own lists (Vision Center’s Device event node) derive from it or build it. Equal by its values (the folders by their names).

public record EventChoice(string Id, string Name, IReadOnlyList<string> Folders, bool Available = true, string Description = "")

Parameters

  • Id: The event type id.
  • Name: The event’s name in its folder.
  • Folders: Its folders, top first.
  • Available: Its plugin is on; an unavailable event shows dimmed.
  • Description: What it means (the bottom line of the picker); empty when the source gives nothing.
bool Available { get; init; }

Its plugin is on; an unavailable event shows dimmed.

string Description { get; init; }

What it means (the bottom line of the picker); empty when the source gives nothing.

IReadOnlyList<string> Folders { get; init; }

Its folders, top first.

string Id { get; init; }

The event type id.

string Name { get; init; }

The event’s name in its folder.