public void calculateTransferableFilesList()
 {
     if (TransferableFilesList != null)
     {
         TransferableNumbersList = TransferableFilesList.Select(sel => sel.Name.Number).Distinct().ToList();
     }
     else
     {
         TransferableNumbersList = null;
     }
 }
        public List <Task> CreateTasks()
        {
            List <Task> res      = new List <Task>();
            Task        lasttask = null;

            foreach (string Num in TransferableNumbersList)
            {
                List <FileInfoW> destlist  = DestinationFilesList.Where(w => w.Name.Number == Num).ToList();
                List <FileInfoW> translist = TransferableFilesList.Where(w => w.Name.Number == Num).ToList();
                Task             newtask   = tcreate(destlist, translist, lasttask);
                res.Add(newtask);
                lasttask = newtask;
            }
            return(res);
        }