public string SetUpFolderSync(string strSourceFolder, string strDestinationFolder) { FolderSync folderSync = new FolderSync(); folderSync.DestinationFolder = strDestinationFolder; folderSync.SourceFolder = strSourceFolder; folderSync.ID = folderSync.SyncFolders(); AllSyncs.Add(folderSync); return(folderSync.ID); }
public Progress GetProgress(string id) { FolderSync sync = new FolderSync(); var prog = from tb in AllSyncs where tb.ID == id select tb; if (prog.Count() > 0) { return(prog.ToList()[0].CopyProgress); } return(null); }