示例#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);
        }
示例#2
0
 public static FilePublisher GetFilePublisher(FilesManager _filesManager)
 {
     if(filePublisher == null)
     {
         filePublisher = new FilePublisher(_filesManager);
     }
     return filePublisher;
 }
示例#3
0
        public static UploadManager GetUploadManager(FilePublisher _filePublisher)
        {
            if (uploadManager == null)
            {
                uploadManager = new UploadManager(_filePublisher);
            }

            return uploadManager;
        }
示例#4
0
 private UploadManager(FilePublisher _filePublisher)
 {
     filesPublisher = _filePublisher;
     uploadDic = new Dictionary<string, FilePublishingStatus>();
     uploadServerStarted = false;
 }