private void CheckTempCallBack(IAsyncResult r)
{
try
{
//Error: It may throw an error when BeginInvoke before the end of the last one.
_tempDel.EndInvoke(r);
Dispatcher.Invoke(() =>
{
FolderCountLabel.Content = _listFolders.Count();
FileCountLabel.Content = _fileCount;
ClearTempButton.IsEnabled = true;
});
}
catch (Exception)
{ }
}