Example #1
0
 public virtual void WriteTitle()
 {
     for (int i = 0; i < this.ListOptions.EntryInfo.Count; i++)
     {
         ListEntryOption opt = this.ListOptions.EntryInfo[i];
         this.Output.Append((i == 0 ? "" : " - ") + opt.Title);
     }
     this.Output.AppendLine();
 }
Example #2
0
        public virtual void WriteEntry(PackageFileEntry entry)
        {
            if (ListOptions.EntryInfo.Count == 0)
            {
                return;
            }

            this.Output.Append("\t");
            for (int i = 0; i < this.ListOptions.EntryInfo.Count; i++)
            {
                ListEntryOption opt = this.ListOptions.EntryInfo[i];
                this.Output.Append((i == 0 ? "" : " - ") + opt.StringFunc(Parent, entry));
            }
            this.Output.AppendLine();
        }
Example #3
0
 public ListOptions(CheckedListBox.CheckedItemCollection options)
 {
     EntryInfo  = new List <ListEntryOption>();
     BundleInfo = new List <ListBundleOption>();
     foreach (object obj in options)
     {
         ListEntryOption opt = (ListEntryOption)obj;
         if (opt is ListBundleOption)
         {
             BundleInfo.Add((ListBundleOption)opt);
         }
         else
         {
             EntryInfo.Add(opt);
         }
     }
 }
Example #4
0
        public override void WriteEntry(PackageFileEntry entry)
        {
            if (ListOptions.EntryInfo.Count == 0)
            {
                return;
            }

            if (this.WriteEmptyBundleColumns && this.ListOptions.BundleInfo.Count > 0)
            {
                for (int i = 0; i < this.ListOptions.BundleInfo.Count - 1; i++)
                {
                    this.Output.Append(",");
                }
            }

            for (int i = 0; i < this.ListOptions.EntryInfo.Count; i++)
            {
                ListEntryOption opt = this.ListOptions.EntryInfo[i];
                this.Output.Append((i == 0 && this.ListOptions.BundleInfo.Count == 0 ? "" : ",") + "\"" + opt.StringFunc(Parent, entry) + "\"");
            }
            this.Output.AppendLine();
            this.WriteEmptyBundleColumns = true;
        }