private FilesManager(ref MainForm mf) { mainFilesDic = new Dictionary<string, FileDetails>(); mainForm = mf; // Creation of managers downloadManager = DownloadManager.GetDownloadManager(this); lookupManager = FilesLookupManager.GetFilesLookupManager(); filePublisher = FilePublisher.GetFilePublisher(this); }
public static DownloadManager GetDownloadManager(FilesManager _filesManager) { if (downloadManager == null) { downloadManager = new DownloadManager(ref _filesManager); } return downloadManager; }
public FileDownloadingThreadParam(FilesManager _fm, DownloadManager _downloadManager) { filesManager = _fm; downloadManager = _downloadManager; }