@* @using NBitcoin *@ @* @if (Destinations.Any()) *@ @* { *@ @*
*@ @* *@ @*
*@ @* *@ @* @if (SelectedDestinationId is not null && SelectedDestinationId != "null") *@ @* { *@ @* *@ @* } *@ @* } *@ @* *@ @* @code { *@ @* *@ @* [Parameter] *@ @* public Dictionary Destinations { get; set; } *@ @* *@ @* *@ @* public string? SelectedDestinationId { get; set; } *@ @* *@ @* public PrismDestination? SelectedDestination *@ @* { *@ @* get *@ @* { *@ @* if (SelectedDestinationId is null or "null") *@ @* return null; *@ @* Destinations.TryGetValue(SelectedDestinationId, out var res); *@ @* return res; *@ @* } *@ @* set *@ @* { *@ @* if (SelectedDestinationId is null) *@ @* return; *@ @* if (value is null) *@ @* { *@ @* Destinations.Remove(SelectedDestinationId); *@ @* SelectedDestinationId = null; *@ @* } *@ @* else *@ @* { *@ @* Destinations.AddOrReplace(SelectedDestinationId, value); *@ @* } *@ @* } *@ @* } *@ @* *@ @* } *@