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
valueCatalogFacetValueThe facet value and its totals.
labelstringThe label shown.
LibraryChoice(string, string, string)
Creates a choice.
public LibraryChoice(string value, string label, string detail)
Parameters
valuestringThe value passed back when it is chosen.
labelstringThe label shown.
detailstringA 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
HasMorePaths
True when MorePathsText is set.
public bool HasMorePaths { get; }
Property Value
HasNote
True when Note is set.
public bool HasNote { get; }
Property Value
HasPaths
True when the choice shows paths (a manifest group) rather than Detail.
public bool HasPaths { get; }
Property Value
IsMissing
True when some path of a manifest group does not exist on disk.
public bool IsMissing { get; init; }
Property Value
IsSelected
Whether the value is chosen.
public bool IsSelected { get; set; }
Property Value
Label
The display label.
public string Label { get; }
Property Value
MorePathsText
"+2" when a manifest group lists more paths than PathText; otherwise null.
public string? MorePathsText { get; init; }
Property Value
Note
A second line under the label (a regional forecast model's "Overlaps cbofs, dbofs"), if any.
public string? Note { get; init; }
Property Value
PathText
A collection-manifest group's first path, as written in the manifest; otherwise null.
public string? PathText { get; init; }
Property Value
PathsTooltip
Every path of a manifest group, one per line, for a tooltip.
public string? PathsTooltip { get; init; }
Property Value
Value
The value (state code, district or region number, river name, product, entry number, …).
public string Value { get; }
Property Value
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler? PropertyChanged