Ejemplo n.º 1
0
        private void WebClient_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
        {
            Tuple <Label, Button, string> edt = e.UserState as Tuple <Label, Button, string>;

            edt.Item1.Enabled = true;
            edt.Item2.Enabled = true;

            string strDir = Path.GetDirectoryName(edt.Item3);

            TarFile.ExtractTarGz(edt.Item3, strDir);

            edtCifarDataFile1.Text = strDir + "\\cifar-10-batches-bin\\data_batch_1.bin";
            edtCifarDataFile2.Text = strDir + "\\cifar-10-batches-bin\\data_batch_2.bin";
            edtCifarDataFile3.Text = strDir + "\\cifar-10-batches-bin\\data_batch_3.bin";
            edtCifarDataFile4.Text = strDir + "\\cifar-10-batches-bin\\data_batch_4.bin";
            edtCifarDataFile5.Text = strDir + "\\cifar-10-batches-bin\\data_batch_5.bin";
            edtCifarDataFile6.Text = strDir + "\\cifar-10-batches-bin\\test_batch.bin";
        }