Пример #1
0
        private void getInfoFromGDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Voids Voids = new Voids();

            Voids.DownloadInfoAboutFileFromGD(false);

            if (!Voids.fileFind)
            {
                ShowStatus = new Thread(StripStatusWorker.ErrorCantFindDataTxt);
                ShowStatus.Start();
            }
            else
            {
                StripStatusWorker.GdFileSize = Voids.fileSize;
                ShowStatus = new Thread(StripStatusWorker.ShowStatusAboutFile);
                ShowStatus.Start();
            }
        }
Пример #2
0
        private void downloadFileFromGDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowStatus = new Thread(StripStatusWorker.FileDownloading);
            ShowStatus.Start();
            Voids Info = new Voids();

            Info.DownloadInfoAboutFileFromGD(true);

            if (!Info.fileFind)
            {
                ShowStatus = new Thread(StripStatusWorker.ErrorCantFindDataTxt);
                ShowStatus.Start();
            }
            else
            {
                ShowStatus = new Thread(StripStatusWorker.FileSuccesfullyDownloaded);
                ShowStatus.Start();
            }
        }