Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ObservablePickerField.cs
2using System.Linq;
3
5{
10 {
11 public override string? StringValue
12 {
13 get => this.SelectedOption?.Value;
14 set
15 {
16 if (string.IsNullOrWhiteSpace(value))
17 {
18 this.SelectedOption = null;
19 }
20 else
21 {
22 this.SelectedOption = this.Options.FirstOrDefault(o => o.Value == value);
23 }
24 }
25 }
26
27 public KycOption? SelectedOption
28 {
29 get => this.RawValue as KycOption;
30 set
31 {
32 if (value is not null)
33 this.RawValue = value;
34 }
35 }
36
37 public string Text => this.Label?.Text ?? "-";
38 }
39}
string Text
Gets the localized text for the current UI culture, or an appropriate fallback.
The base KYC field model. Use as-is for generic fields, or subclass for custom logic.
ObservableCollection< KycOption > Options
All possible options (for picker, country, checkbox, radio).