internal void OnFileMetaTransfered() { if (Mode == StreamMode.GetHeader || Mode == StreamMode.GetFile) { parent.ThreadManager.Post(() => FileMetaReceived?.Invoke(this, null)); } var args = new FTProgressEventArgs(0, FileMeta.Length); parent.ThreadManager.Post(() => Progress?.Invoke(this, args)); }
internal void OnProgress() { var args = new FTProgressEventArgs(Stream.Position, FileMeta.Length); parent.ThreadManager.Post(() => Progress?.Invoke(this, args)); }