public void downloadthread(string path)
 {
     if (ftp.DownloadFileFTP(path, tasknow.folder, selectedfilename))
     {
         MainWindow.queueNotify.Enqueue("'" + selectedfilename + "' for '" + bolayer.get_a_task_by_id(currentTaskid).title + "' has been downloaded successfully!");
     }
     else
     {
         MainWindow.queueNotify.Enqueue("Download Failed");
     }
 }