예제 #1
0
        private void DesiredSkills_Load(object sender, EventArgs e)
        {
            this.Dock = DockStyle.Fill;

            // 3,4+n*33
            // 3,37
            // 3,70
            int cbNum     = 1;
            var classtags = databaseItemDao.GetValidClassItemTags();

            foreach (var tag in classtags)
            {
                // Filter out 4 digit classes (combos)
                var cleanTag = Regex.Replace(tag.Tag, @"[^\d]", "");
                if (cleanTag.Length > 3)
                {
                    continue;
                }


                var cb = new FirefoxCheckBox {
                    Size = new Size {
                        Height = 27, Width = 121
                    },
                    Tag      = $"iatag_ui_{tag.Name.ToLower()}",
                    Text     = tag.Name,
                    Location = new Point {
                        X = 3, Y = 3 + cbNum * 33
                    }
                };

                classes[tag.Tag] = cb;
                classesPanelBox.Controls.Add(cb);

                cbNum++;
            }

            classesPanelBox.Size = new Size {
                Height = 10 + cbNum * 33,
                Width  = 163
            };


            initControlsRecursive(this.Controls);
        }
예제 #2
0
 public IList <ItemTag> GetValidClassItemTags()
 {
     return(ThreadExecuter.Execute(
                () => repo.GetValidClassItemTags()
                ));
 }