Beispiel #1
0
        public void ShowEncyclopediaGroup(EncyclopediaGroup group)
        {
            string str = HTML.EncyclopediaGroup(group, Session.Project.Encyclopedia, PlayerViewForm.DisplaySize, false, false);

            this.set_html(str);
            base.Show();
        }
Beispiel #2
0
        public void ShowEncyclopediaGroup(EncyclopediaGroup group)
        {
            string html = HTML.EncyclopediaGroup(group, Session.Project.Encyclopedia, Session.Preferences.PlayerViewTextSize, false, false);

            set_html(html);

            Show();
        }
 public EncyclopediaGroupForm(EncyclopediaGroup group)
 {
     this.InitializeComponent();
     this.fGroup        = group.Copy();
     this.TitleBox.Text = this.fGroup.Name;
     foreach (EncyclopediaEntry entry in Session.Project.Encyclopedia.Entries)
     {
         ListViewItem listViewItem = this.EntryList.Items.Add(entry.Name);
         listViewItem.Tag     = entry;
         listViewItem.Checked = this.fGroup.EntryIDs.Contains(entry.ID);
     }
     if (this.EntryList.Items.Count == 0)
     {
         ListViewItem grayText = this.EntryList.Items.Add("(no entries)");
         grayText.ForeColor        = SystemColors.GrayText;
         this.EntryList.CheckBoxes = false;
     }
 }
Beispiel #4
0
        public EncyclopediaGroupForm(EncyclopediaGroup group)
        {
            InitializeComponent();

            fGroup = group.Copy();

            TitleBox.Text = fGroup.Name;

            foreach (EncyclopediaEntry ee in Session.Project.Encyclopedia.Entries)
            {
                ListViewItem lvi = EntryList.Items.Add(ee.Name);
                lvi.Tag     = ee;
                lvi.Checked = fGroup.EntryIDs.Contains(ee.ID);
            }

            if (EntryList.Items.Count == 0)
            {
                ListViewItem lvi = EntryList.Items.Add("(no entries)");
                lvi.ForeColor = SystemColors.GrayText;

                EntryList.CheckBoxes = false;
            }
        }