I have a WPF MVVM prism application to Upload files.
Me listed filed from a directory into a datagrid and an Upload button to
upload the selected files from the datagrid.
For this i pass the Grid 'selecteditems' to the command parameter of the button.
I successfully implemented this in the synchronous way and Now wanted to extend
this functionality in asynchronous way.
using delegate
this is my asynchronous fuction call
asyncUpload.BeginInvoke(selectedFiles, out tt, new AsyncCallback(test), null);<br />
Here the selected files is the 'selecteditems' from the datagrid passed through the command parameter of the upload button.
The problem is that while executing the first thread for uploading,I'm selecting another set of files from datagrid to upload
that Will changes the first thread's selected files.
I cant keep the selected files in a variable.when the selection changed the variable value also changed.
How can I solve this.?
Thanks in advance...