Hi guys
is there a best way to manage a form in WPF application which has asynchronous execution commands?
1) Suppose you have a form where user enters all his data and clicks on Ok button to save changes.
2) Your WPF app starts an asynchronous method to record those data.
3) Now suppose the database server is down, and the operation is taking about 15 seconds to get finished. At this time, user has already closed the WPF form (he did not wait for the transaction to be finished).
So that's my question: how could you control when to let user close or not the form?
thank you