@page "/fundvelo/keydata/{FromRoute}" @inject NavigationManager NavigationManager @inject IStringLocalizer i18n @inject PageHistoryManager PageHistoryManager
@if ("Found".Equals(FromRoute)) {

@i18n["FoundBike"]

} else {

@i18n["MissingBike"]

}
@context?.Name
Mountain-Bike City-Bike Child-Bike
@i18n["Cancel"]
@i18n["Continue"]
@code { [Parameter] public string FromRoute { get; set; } string value; private ColorItem selectedColor; protected override void OnInitialized() { PageHistoryManager.AddPageToHistory(NavigationManager.Uri); base.OnInitialized(); } private void Next() { NavigationManager.NavigateTo("fundvelo/account/" + @FromRoute); } private void Cancel() { NavigationManager.NavigateTo("caritas_services"); } private ColorItem[] colorItems = new[] { new ColorItem(3, "Blue","0,0,255"), new ColorItem(14, "Brown", "165,42,42"), new ColorItem(4, "Yellow", "255, 255, 0"), }; private class ColorItem { public int Index { get; } public string Name { get; } public string RGB { get; } public ColorItem(int index, string name, string rgb) { Index = index; Name = name; RGB = rgb; } } private string getAddressLbl() { return i18n.GetString("Address") + " (" + getPlaceLbl() + ")"; } private string getPlaceLbl() { return @FromRoute == "Found" ? i18n.GetString("PlaceOfDiscovery") : i18n.GetString("PlaceOfLoss"); } }