Example #1
0
        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);
        }
Example #2
0
        // Method that enable the creation of a single instance of FilesManager
        public static FilesManager GetFileManager(MainForm mf)
        {
            if (filesManager == null)
            {

                filesManager = new FilesManager(ref mf);
            }
            return filesManager;
        }