Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this with parameter #1

Open
ronakshethia opened this issue May 19, 2020 · 3 comments
Open

How to use this with parameter #1

ronakshethia opened this issue May 19, 2020 · 3 comments

Comments

@ronakshethia
Copy link

can you please help me how can I use this with parameter ?

@johnthiriet
Copy link
Owner

Hello, can you be a little more specific please ?

@ronakshethia
Copy link
Author

ShowPickListCommand = new AsyncCommand(ExecuteShowPopupAsync(myparametertothisfunction), CanExecuteSubmit);

@RoyThePug
Copy link

RoyThePug commented Apr 22, 2021

Try this :
public AsyncCommand<TcpClientModel> RemoveClientCommand { get; }
in Constructor:
RemoveClientCommand = new AsyncCommand<TcpClientModel>(RemoveClientCommandHandler);

  private async Task RemoveClientCommandHandler(TcpClientModel client)
        {
            try
            {
                await _transmitDataService.RemoveClient(client.Id);
                Clients.Remove(client);
            }
            catch (TCPClientNotFoundException)
            {
                
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants