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 FilesLookupManager GetFilesLookupManager() { if (filesLookupManager == null) { filesLookupManager = new FilesLookupManager(); } return filesLookupManager; }