コード例 #1
0
ファイル: WebWorker.cs プロジェクト: ucshadow/language-tool
        private static void DownloadImageCompleted(object sender, DownloadDataCompletedEventArgs e)
        {
            var data = e.Result;

            _downloadedImgs++;

            _fileSaver.SaveImageFile(data, _active.Text, _downloadedImgs);

            WindowController.ChangeImage(_active.Text, _downloadedImgs);



            if (_downloadedImgs != 3)
            {
                return;
            }
            _downloadedImgs = 0;
            _c = new WebClient();
            Act();
        }