Ah yes Sebastian; I forgot about the ICommand and it's RelayCommand brother. Thanks for reminder!
If we make our eventHandlers async, and put in code like this:
awaitTask.Run(()=>{varproc=Process.GetProcessById(id);proc.Kill();});// this won't run until await is done.this.RefreshView();
The GUI Will never freeze and the next statement after the await doesn't execute until the Task is done! Kind of like a built in state machine for the button and the view.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ah yes Sebastian; I forgot about the ICommand and it's RelayCommand brother. Thanks for reminder!
If we make our eventHandlers async, and put in code like this:
The GUI Will never freeze and the next statement after the await doesn't execute until the Task is done! Kind of like a built in state machine for the button and the view.