Esempio n. 1
0
 private Task ClearAsync()
 {
     return(Task.Run(() =>
     {
         FilePaths.ClearOnScheduler();
     }, CancellationToken));
 }
Esempio n. 2
0
        private Task TrushASync()
        {
            return(Task.Run(() =>
            {
                foreach (var path in FilePaths)
                {
                    if (!File.Exists(path))
                    {
                        continue;
                    }

                    FileSystem.DeleteFile(path, UIOption.OnlyErrorDialogs, RecycleOption.SendToRecycleBin);
                }

                FilePaths.ClearOnScheduler();
            }, CancellationToken));
        }