Beispiel #1
0
        private FilePublisher(FilesManager _filesManager)
        {
            publishingMethod = 1;
            filesManager = _filesManager;

            // Starting the upload server
            uploadManager = UploadManager.GetUploadManager(this);
            uploadManager.StartUploadServer();
        }
Beispiel #2
0
        public static DownloadManager GetDownloadManager(FilesManager _filesManager)
        {
            if (downloadManager == null)
            {
                downloadManager = new DownloadManager(ref _filesManager);
            }

            return downloadManager;
        }
Beispiel #3
0
 private DownloadManager(ref FilesManager _filesManager)
 {
     filesManager = _filesManager;
     downloadList = new List<string>();
 }
 public FileDownloadingThreadParam(FilesManager _fm, DownloadManager _downloadManager)
 {
     filesManager = _fm;
     downloadManager = _downloadManager;
 }
Beispiel #5
0
 public static FilePublisher GetFilePublisher(FilesManager _filesManager)
 {
     if(filePublisher == null)
     {
         filePublisher = new FilePublisher(_filesManager);
     }
     return filePublisher;
 }
Beispiel #6
0
 public MainForm()
 {
     InitializeComponent();
     filesManager = FilesManager.GetFileManager(this);
     textBoxFileName.Enabled = true;
 }
Beispiel #7
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;
        }
 public FilePublisherThreadParam(FilesManager _filesManager)
 {
     filesManager = _filesManager;
 }