コード例 #1
0
ファイル: frmMain.cs プロジェクト: profexorgeek/FlatRedBall
        private void DownloaderOnDownloadComplete(object sender, DownloaderCompleteEventArgs downloaderCompleteEventArgs)
        {
            bool successful = downloaderCompleteEventArgs.Successful;

            if (successful)
            {
                successful = ActionStarter.CleanAndZipAction(_settings.DirectoryToClear, _settings.SaveFile, _settings.ExtractionPath);
            }

            if (!successful)
            {
                Close();
                Messaging.AlertError("Clean and unzip failed", Settings.UserAppPath);
                Succeeded = false;
                return;
            }
            else
            {
                Succeeded = true;
                pbValue.BeginInvoke(new Action(HandleDownloadSucceeded));
            }
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: vchelaru/FlatRedBall
        private void DownloaderOnDownloadComplete(object sender, DownloaderCompleteEventArgs downloaderCompleteEventArgs)
        {
            bool successful = downloaderCompleteEventArgs.Successful;

            if (successful)
            {
                successful = ActionStarter.CleanAndZipAction(_settings.DirectoryToClear, _settings.SaveFile, _settings.ExtractionPath);
            }

            if (!successful)
            {
                Close();
                Messaging.AlertError("Clean and unzip failed", Settings.UserAppPath);
                Succeeded = false;
                return;
            }
            else
            {
                Succeeded = true;
                pbValue.BeginInvoke(new Action(HandleDownloadSucceeded));
            }
        }