Exemple #1
0
        public FAssetDownload([NotNull, ItemNotNull] TreeListItem[] items, [CanBeNull] DownloadConfig downloadConfig)
        {
            InitializeComponent();
            RegisterEventHandlers();

            _items                  = items;
            _downloaded             = new bool[items.Length];
            _originalDownloadConfig = downloadConfig;
        }
Exemple #2
0
            public WorkerThread([NotNull] FAssetDownload form, [NotNull] DownloadConfig downloadConfig, [NotNull] string saveDir)
            {
                _form           = form;
                _downloadConfig = downloadConfig;
                _saveDir        = saveDir;

                _thread              = new Thread(DoWork);
                _thread.Name         = "Asset Download Worker";
                _thread.IsBackground = true;
            }
Exemple #3
0
        public FManifest([NotNull] AssetInfoList manifest, [NotNull] ManifestOpening opening, [CanBeNull] DownloadConfig downloadConfig)
        {
            Manifest            = manifest;
            _opening            = opening;
            _downloadConfig     = downloadConfig;
            _downloadPendingSet = new HashSet <TreeListItem>();

            InitializeComponent();
            RegisterEventHandlers();
            InitializeControls();
        }