Exemple #1
0
        private void MoreInfo(HowEnded howEnded)
        {
            DownloadInfoList r = null;

            switch (howEnded)
            {
            case HowEnded.SUCCESS:
                r = this.downloadForm.downloadPool.success;
                break;

            case HowEnded.FAIL:
                r = this.downloadForm.downloadPool.failWithoutRetry;
                break;

            case HowEnded.NOT_ENDED_YET:
                r = this.downloadForm.downloadPool.current;
                break;
            }

            if (r == null || r.GetCount() == 0)
            {
                if (StartupForm.IsItalian)
                {
                    MessageBox.Show("Nessun risultato!");
                }
                else
                {
                    MessageBox.Show("No results!");
                }
                return;
            }

            ResultsListForm resultsListForm = new ResultsListForm(r, howEnded);

            resultsListForm.Show();
        }
 public ResultsListForm(DownloadInfoList downloadInfoList, Enums.HowEnded howEnded)
 {
     this.downloadInfoList = downloadInfoList;
     this.howEnded         = howEnded;
     InitializeComponent();
 }