Table of Contents

Class LibraryChoice

Namespace
EncDotNet.S100.Collections.Library
Assembly
EncDotNet.S100.Collections.dll

One value that can be chosen when adding a Library source (#792): a NOAA state, district or region, a USACE river, a feed's product, a community list's entry, a manifest group, a remote catalogue's area, a forecast model. Hosts bind to it directly; ticking it is what selects it.

public sealed class LibraryChoice : INotifyPropertyChanged
Inheritance
LibraryChoice
Implements
Inherited Members

Constructors

LibraryChoice(CatalogFacetValue, string)

Creates a choice for a catalogue facet, its detail "N cells · X MB".

public LibraryChoice(CatalogFacetValue value, string label)

Parameters

value CatalogFacetValue

The facet value and its totals.

label string

The label shown.

LibraryChoice(string, string, string)

Creates a choice.

public LibraryChoice(string value, string label, string detail)

Parameters

value string

The value passed back when it is chosen.

label string

The label shown.

detail string

A detail shown with it, e.g. a count and size; empty for none.

Properties

Detail

"N cells · X MB", or other detail (a community entry's publication date; a remote area's size once listed).

public string Detail { get; set; }

Property Value

string

HasMorePaths

True when MorePathsText is set.

public bool HasMorePaths { get; }

Property Value

bool

HasNote

True when Note is set.

public bool HasNote { get; }

Property Value

bool

HasPaths

True when the choice shows paths (a manifest group) rather than Detail.

public bool HasPaths { get; }

Property Value

bool

IsMissing

True when some path of a manifest group does not exist on disk.

public bool IsMissing { get; init; }

Property Value

bool

IsSelected

Whether the value is chosen.

public bool IsSelected { get; set; }

Property Value

bool

Label

The display label.

public string Label { get; }

Property Value

string

MorePathsText

"+2" when a manifest group lists more paths than PathText; otherwise null.

public string? MorePathsText { get; init; }

Property Value

string

Note

A second line under the label (a regional forecast model's "Overlaps cbofs, dbofs"), if any.

public string? Note { get; init; }

Property Value

string

PathText

A collection-manifest group's first path, as written in the manifest; otherwise null.

public string? PathText { get; init; }

Property Value

string

PathsTooltip

Every path of a manifest group, one per line, for a tooltip.

public string? PathsTooltip { get; init; }

Property Value

string

Value

The value (state code, district or region number, river name, product, entry number, …).

public string Value { get; }

Property Value

string

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler? PropertyChanged

Event Type

PropertyChangedEventHandler