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 FilePublisher GetFilePublisher(FilesManager _filesManager) { if(filePublisher == null) { filePublisher = new FilePublisher(_filesManager); } return filePublisher; }
public static UploadManager GetUploadManager(FilePublisher _filePublisher) { if (uploadManager == null) { uploadManager = new UploadManager(_filePublisher); } return uploadManager; }
private UploadManager(FilePublisher _filePublisher) { filesPublisher = _filePublisher; uploadDic = new Dictionary<string, FilePublishingStatus>(); uploadServerStarted = false; }