Skip to content

DevicePickItem

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

One device in the DevicePickerWindow: check box, address, model, and why it cannot be chosen.

public sealed class DevicePickItem : ObservableObject

Inherits ObservableObject

string Address { get; }

Its address.

bool CanExcept { get; }

Device group editor: “Except” is offered (a site or tag covers the device).

bool CanInclude { get; }

Device group editor: “Include” is offered (the device is excepted).

bool CanToggle { get; }

The check box can be clicked.

bool Chosen { get; set; }

The check box: chosen by itself or through a tag (a device of a chosen tag cannot be unchosen alone). In the device group editor an excepted device is never chosen; ticking it by itself takes it back into the group.

string? CoveredBy { get; internal set; }

The chosen tag that includes this device (“Tag Building A”; the group editor also “Site Building B”, “This server”), or null.

IDeviceInfo Device { get; }

The device.

IRelayCommand ExceptCommand { get; }

Gets an IRelayCommand instance wrapping DevicePickItem.Except.

Guid Id { get; }

Its id.

IRelayCommand IncludeCommand { get; }

Gets an IRelayCommand instance wrapping DevicePickItem.Include.

bool IsAvailable { get; }

It can be chosen.

bool IsChecked { get; set; }

Chosen by itself (not through a tag).

bool IsExcepted { get; private set; }

Device group editor: the device is excepted from the group (never in it, even when a site, a tag or its own tick covers it, like on the server). Shown while a site or tag covers the device (IsLeftOut); kept also when none does now, so the device stays out when one covers it again.

bool IsLeftOut { get; }

A site or tag covers the device and it is excepted.

string Model { get; }

Its model without “AXIS “.

string? Note { get; }

The text right of the model: why it cannot be chosen, the tag that includes it, or that it is excepted from it.

string? UnavailableReason { get; }

Why the device cannot be chosen (shown greyed with this text), or null.