public async void Select(Gateway gateway) { await SelectedEventCallback.InvokeAsync(gateway); _input = null; StateHasChanged(); }
public async Task ShowAsync(Gateway?selected) { _gateways = await GatewayListService.GetNetworkGateways(); var network = FindNetwork(selected); var list = FindGatewayList(network); _input = new SelectGatewayInput() { SelectedGateway = selected, SelectedNetwork = network, Networks = _gateways.Keys.OrderBy(n => n).ToArray(), Gateways = list }; StateHasChanged(); }
public void Close() { _input = default !;
public void Close() { _input = null; StateHasChanged(); }