예제 #1
0
        public async void Select(Gateway gateway)
        {
            await SelectedEventCallback.InvokeAsync(gateway);

            _input = null;
            StateHasChanged();
        }
예제 #2
0
    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();
    }
예제 #3
0
 public void Close()
 {
     _input = default !;
예제 #4
0
 public void Close()
 {
     _input = null;
     StateHasChanged();
 }