Exemplo n.º 1
0
 private async Task OnClick(MouseEventArgs args)
 {
     if (Onclick.HasDelegate)
     {
         await Onclick.InvokeAsync(args);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Close Drawer and update publisher
        /// </summary>
        private async Task UpdatePublisherConfigAsync()
        {
            Publisher.TryUpdateData(InputData);
            await RegistryHelper.UpdatePublisherAsync(Publisher);

            await Onclick.InvokeAsync(null);
        }
        /// <summary>
        /// Close Drawer and update discovery
        /// </summary>
        private async Task UpdateDiscovererConfigAsync()
        {
            DiscovererData.TryUpdateData(InputData);
            await Onclick.InvokeAsync(DiscovererData);

            if (!DiscovererData.isAdHocDiscovery)
            {
                Status = await RegistryHelper.UpdateDiscovererAsync(DiscovererData);
            }
        }
Exemplo n.º 4
0
        protected async Task OnClick(MouseEventArgs args)
        {
            if (Link != null)
            {
                NavigationManger.NavigateTo(Link.Href);
            }

            if (Onclick.HasDelegate)
            {
                await Onclick.InvokeAsync(args);
            }
        }
 /// <summary>
 /// Close Drawer and update discovery
 /// </summary>
 /// <param name="discoverer"></param>
 private async Task UpdatePublishedNodeConfigAsync()
 {
     NodeData.TryUpdateData(InputData);
     await Onclick.InvokeAsync(NodeData);
 }