Esempio n. 1
0
        private void FillPreview()
        {
            List <ProcessedEpisode> pel = new List <ProcessedEpisode>();

            if (this.mOriginalEps != null)
            {
                foreach (ProcessedEpisode pe in this.mOriginalEps)
                {
                    pel.Add(new ProcessedEpisode(pe));
                }

                TVDoc.ApplyRules(pel, this.WorkingRuleSet, this.mSI);
            }

            this.lbEpsPreview.BeginUpdate();
            this.lbEpsPreview.Items.Clear();
            foreach (ProcessedEpisode pe in pel)
            {
                this.lbEpsPreview.Items.Add(this.NameStyle.NameForExt(pe, null, 0));
            }
            this.lbEpsPreview.EndUpdate();
        }